Binary Representation of IP Addresses

Convert IPv4 addresses to binary representation. Understand how 192.168.1.1 becomes a 32-bit binary number and why this matters for subnetting and routing.

Dotted Decimal (IPv4)Binary (32-bit)Networking

Detailed Explanation

Every IPv4 address is fundamentally a 32-bit binary number, displayed in dotted-decimal notation for human readability. Understanding the binary form is essential for subnetting, routing, and network troubleshooting.

Step-by-step example — converting 192.168.1.100 to binary:

Convert each octet (0-255) independently:

  • 192 = 11000000
  • 168 = 10101000
  • 1 = 00000001
  • 100 = 01100100

Full 32-bit binary: 11000000.10101000.00000001.01100100

Why binary IP addresses matter:

When you apply a subnet mask, you perform a bitwise AND operation between the IP address and the mask in binary. This determines which bits represent the network and which represent the host.

Example — finding the network address:

IP:     11000000.10101000.00000001.01100100  (192.168.1.100)
Mask:   11111111.11111111.11111111.00000000  (255.255.255.0)
AND:    11000000.10101000.00000001.00000000  (192.168.1.0)

The network address is 192.168.1.0, and the host portion is the last 8 bits.

CIDR notation and binary:

CIDR notation like /24 means the first 24 bits are the network portion. In binary, a /24 mask is 24 ones followed by 8 zeros: 11111111.11111111.11111111.00000000. A /26 mask is: 11111111.11111111.11111111.11000000 = 255.255.255.192, dividing the last octet into a 2-bit network part and a 6-bit host part (62 usable hosts).

Special addresses in binary:

  • Broadcast: All host bits set to 1
  • Network address: All host bits set to 0
  • Loopback (127.0.0.1): 01111111.00000000.00000000.00000001

Fluency in binary IP addresses is a core networking skill tested in certifications like CCNA, CompTIA Network+, and AWS Solutions Architect.

Use Case

Network engineers convert IP addresses to binary to perform subnetting calculations, determine broadcast addresses, and design efficient IP allocation schemes for enterprise networks.

Try It — Number Base Converter

Open full tool