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.
8-Bit Binary Octet Breakdown
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: 192 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| Octet Value: 168 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 |
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 →What is My IP?
Find your public IP address, ISP details, geographic location, and user-agent string.
Subnet & CIDR Calculator
Calculate IPv4 subnet masks, CIDR notation, network address, broadcast address, and host ranges.
JWT Decoder
Decode JSON Web Tokens securely in your browser with header/payload highlighting and expiration check.