IP Address Binary & Decimal Converter

Transform any IPv4 address into 32-bit binary octets, decimal integers, hexadecimal values, and reverse DNS lookup records with instant bidirectional calculation.

Range: 0 to 4,294,967,295
Classification:Class CPrivate (RFC 1918)

8-Bit Binary Octet Breakdown

Octet 1
192
11000000
Octet 2
168
10101000
Octet 3
1
00000001
Octet 4
1
00000001
32-Bit Binary (Dotted)
11000000.10101000.00000001.00000001
32-Bit Binary (Raw Continuous)
11000000101010000000000100000001
Hexadecimal (32-Bit Hex)
0xC0A80101
IPv6-Mapped IPv4 Representation
::ffff:192.168.1.1
Reverse DNS (PTR Record String)
1.1.168.192.in-addr.arpa

Understanding IPv4 Binary & Integer Math

An IPv4 address is fundamentally a single 32-bit unsigned binary integer. Because humans struggle to remember numbers like 3232235777 or strings like 11000000101010000000000100000001, network engineers created dot-decimal notation.

Bit Position (MSB → LSB)2⁷ (128)2⁶ (64)2⁵ (32)2⁴ (16)2³ (8)2² (4)2¹ (2)2⁰ (1)
Octet Value: 19211000000
Octet Value: 16810101000

RFC 1918 Private Address Spaces

  • 10.0.0.0/8: 10.0.0.0 – 10.255.255.255 (16,777,216 addresses)
  • 172.16.0.0/12: 172.16.0.0 – 172.31.255.255 (1,048,576 addresses)
  • 192.168.0.0/16: 192.168.0.0 – 192.168.255.255 (65,536 addresses)

Frequently Asked Questions

How do you convert an IPv4 address to a 32-bit decimal integer?

An IPv4 address consists of 4 octets (bytes A.B.C.D). To convert to a 32-bit decimal integer, calculate: (A × 256³) + (B × 256²) + (C × 256) + D, or evaluate ((A << 24) + (B << 16) + (C << 8) + D) as an unsigned 32-bit integer.

Why do routers and databases store IP addresses as integers or hex?

Storing an IPv4 address as a 32-bit unsigned integer requires only 4 bytes of storage rather than up to 15 bytes as text (VARCHAR). Furthermore, CPU bitwise operations (AND, OR, bit shifts) on integers allow line-rate routing table lookups and rapid binary indexing.

What is an IPv6-mapped IPv4 address?

An IPv6-mapped address allows dual-stack network sockets to represent an IPv4 address within the 128-bit IPv6 address format. It prefixes the 32-bit IPv4 address with 80 zero bits followed by 16 one bits (::ffff:A.B.C.D or ::ffff:XXXX:XXXX in hex).

⚡ Related Developer Tools

View All 35+ Tools →