Skip to content

Networking

IPv4 Address Converter

Transform IPv4 addresses into raw 32-bit decimal, binary octets, and hex notation.

32-bit Integer: 2886794753
Hexadecimal: 0xAC10FE01
Binary: 10101100.00010000.11111110.00000001

Dotted Decimal Is Just One Encoding of the Same 32 Bits

The address 192.168.1.1, the integer 3232235777, and the hex 0xC0A80101 are the same value — the converter proves it by re-encoding the identical 32 bits. That integer form is not a curiosity: ACL entries, some databases and logs, and a few configuration formats store IPv4 as a 32-bit number, and being unable to recognize it wastes a debugging session. Note that these forms carry no subnet mask; a bare integer like 3232235777 says nothing about whether it is /24 or /32.

One Address, Four Representations

The dotted form 192.168.1.1 is four 8-bit values. The same address is the single decimal number 3232235777, the hexadecimal C0A80101 and the binary 11000000.10101000.00000001.00000001. All four are the same value written differently.

The decimal form shows up in databases that store addresses as integers, which makes range lookups simple comparisons. It is also used in obfuscated links, so converting an unfamiliar number back to dotted form is a quick way to see where it points.

How the Network Math Works

  1. Computes: (A << 24) + (B << 16) + (C << 8) + D.
Formula & Technical Standard
Integer = (A * 256^3) + (B * 256^2) + (C * 256^1) + D

Worked Network Example

Google DNS
Input: 8.8.8.8
Output: Decimal: 134744072 | Hex: 0x08080808
Raw representations used by network sockets.

Common Questions

Can I ping a decimal IP?

Yes, network stacks accept 32-bit integers directly (e.g. ping 2130706433 for 127.0.0.1).

Where is the hexadecimal form used?

IPv4 hex form appears in packet captures, firewall rule logs, and configuration files. It is also handy when comparing addresses arithmetically without converting octets.