IPv4 Address Converter

Convert an IPv4 address between dotted decimal, decimal integer, hexadecimal, octal, and binary notation.

Input data is processed in your browser
Data is never sent to a server

Tool

Enter dotted decimal (192.168.1.1), a decimal integer, a hex value starting with "0x", or a binary value starting with "0b".

What is the IPv4 Address Converter?

This tool converts an IPv4 address between all the notations you’ll encounter — from the familiar dotted decimal (192.168.1.1) to decimal integer, hexadecimal, octal, and binary — helping with network design and programming calculations.

Key Features

  • Automatic format detection and conversion between dotted decimal / decimal integer / hex / octal / 32-bit binary
  • A per-octet table showing decimal and binary values
  • Individual copy button for each output value
  • Your last input is saved to localStorage and restored on your next visit

When This Comes in Handy

  • Converting an IP address stored as an integer in a database back into a human-readable format
  • Calculating subnet masks or network addresses using bitwise operations
  • Quickly checking the hex or binary representation of an IPv4 address

How to Use

  1. Enter an IPv4 address (e.g. 192.168.1.1), a decimal integer, a hex value starting with "0x", or a binary value starting with "0b".
  2. Dotted decimal, decimal integer, hexadecimal, octal, and 32-bit binary notation are all calculated automatically.
  3. A table shows the decimal and binary value of each individual octet.
  4. Use the copy button next to any value to copy it to your clipboard.

FAQ

What is the decimal integer notation of an IPv4 address?

An IPv4 address is a 32-bit number, and its four 8-bit octets can be concatenated into a single unsigned 32-bit integer. For example, 192.168.1.1 becomes the integer 3232235777. This form is sometimes used for database storage or API exchange.

Why would I need hex or binary notation?

Hex and binary notation make it easier to work with subnet mask calculations, bitwise network design, and low-level network programming.

How does the tool detect the input format?

A dot-separated number (like 192.168.1.1) is treated as dotted decimal, a value starting with "0x" as hexadecimal, a value starting with "0b" as binary, and any other plain number as a decimal integer.

What counts as invalid input?

Input is considered invalid if any octet is outside 0-255, a decimal integer is outside 0-4294967295, a hex value exceeds 8 digits, or a binary value exceeds 32 digits.