IP Address Converter

Convert IPv4 addresses between dotted-decimal, binary, hexadecimal, and 32-bit integer representations. Enter any format and all others update instantly.

Enter dotted-decimal, dotted-binary, hex (C0:A8:01:01), or a 32-bit integer

Dotted decimal192.168.1.1
Binary11000000.10101000.00000001.00000001
HexadecimalC0:A8:01:01
32-bit integer3,232,235,777

Bit breakdown

Octet 1
11000000
192
Octet 2
10101000
168
Octet 3
00000001
1
Octet 4
00000001
1

How IPv4 addresses are represented

An IPv4 address is a 32-bit unsigned integer. The human-readable forms are all different ways of writing the same underlying number:

Converting manually

To convert a decimal octet to binary, successively subtract powers of 2 starting from 128:

Bit value1286432168421
Octet 192 11000000
Octet 168 10101000

192 = 128 + 64. 168 = 128 + 32 + 8. Each 1-bit means that power of 2 is included in the sum; each 0-bit means it is not.

Why binary matters for subnetting

Subnet masks work by bitwise AND with the IP address. The network address is the IP AND the mask — all host bits set to zero. The broadcast address sets all host bits to one. Understanding the binary representation lets you verify subnet boundaries without a calculator and catch common errors like non-contiguous masks.

Hexadecimal in network engineering

Hex appears in Cisco IOS debug output (debug ip packet), packet captures (Wireshark shows IP addresses in hex in the raw bytes view), MAC addresses, and IPv6 addresses. Being able to mentally convert a hex pair like C0 to 192 or FF to 255 is a useful skill for reading diagnostic output quickly.