IP Binary Converter

Convert IP addresses between decimal (dotted-quad) and binary formats. Understand how IP addresses work at the bit level for subnetting and network analysis.

Decimal to Binary
Binary Result:
11000000.10101000.00000001.00000001
Binary to Decimal
Decimal Result:
192.168.1.1

Octet Breakdown

Octet Decimal Binary Bit Values (128-64-32-16-8-4-2-1)
119211000000128+64 = 192
216810101000128+32+8 = 168
31000000011 = 1
41000000011 = 1
32-bit Integer Value
Decimal (Unsigned): 3232235777
Hexadecimal: 0xC0A80101

Understanding IP Addresses in Binary

Every IPv4 address is a 32-bit number, typically displayed as four decimal numbers (0-255) separated by dots. However, computers process these addresses in binary form. Understanding the binary representation is essential for subnetting, network troubleshooting, and understanding how IP addressing actually works.

Each of the four octets (8-bit groups) can represent values from 0 (00000000) to 255 (11111111). When we subnet a network, we're essentially manipulating these bits to create network and host portions. Our subnet calculator uses these binary operations to determine network boundaries.

Binary Basics

Each bit position has a value: 128, 64, 32, 16, 8, 4, 2, 1 (from left to right). Add the values where there's a 1 to get the decimal. For example, 11000000 = 128+64 = 192.

How to Convert IP to Binary

To convert each octet to binary, divide repeatedly by 2 and track remainders, or use the positional method:

Converting 192 to Binary

Start with 192, check each bit position:

  • 128 ≤ 192? Yes → 1, remainder: 192-128=64
  • 64 ≤ 64? Yes → 1, remainder: 64-64=0
  • 32 ≤ 0? No → 0
  • 16 ≤ 0? No → 0
  • 8 ≤ 0? No → 0
  • 4 ≤ 0? No → 0
  • 2 ≤ 0? No → 0
  • 1 ≤ 0? No → 0

Result: 11000000

Binary and Subnetting

Understanding binary is crucial for subnetting because subnet masks work at the bit level. A /24 subnet mask (255.255.255.0) in binary is:

11111111.11111111.11111111.00000000

The 1s mark network bits, and 0s mark host bits. When ANDing an IP with this mask, you extract the network address. Our network address calculator shows this operation visually.

Common Octet Values

Decimal Binary Common Use
000000000Network address (host portion)
100000001First host, loopback
12810000000/25 subnet boundary
19211000000/26 subnet mask, Class C start
22411100000/27 subnet mask, Multicast start
24011110000/28 subnet mask
24811111000/29 subnet mask
25211111100/30 subnet mask
25511111111Broadcast (host portion), full mask octet

For subnet mask conversions, use our netmask to CIDR converter. To understand wildcard masks (inverse of subnet masks), see our wildcard mask calculator.

Bit Position Values
Each bit position value
128643216 8421
2⁷2⁶2⁵2⁴ 2⁰

Frequently Asked Questions

Eight bits (one byte) was a practical choice when IP was designed, allowing values 0-255 per octet. Four octets give 32 bits total, providing roughly 4.3 billion addresses. The byte-aligned structure also simplifies processing by computers, which typically work with byte-sized units.

Subnetting uses bitwise AND between an IP and subnet mask to find the network address. The mask's 1 bits preserve network bits while 0 bits zero out host bits. Understanding binary helps you visualize which bits define the network and which identify hosts within that network.

The 32-bit integer representation is how IP addresses are actually stored and compared in computer memory and network hardware. It's useful for range calculations (checking if IP is between two values), database storage, and programming where treating IPs as integers simplifies comparisons.

Related Network Tools

Looking to calculate subnets for your network? You can also validate IP address formats. For detailed analysis, convert dotted-decimal to prefix notation. Network administrators often need to find wildcard masks from subnet masks. Additionally, explore IPv6 subnet planning. Many users also find it helpful to work with CIDR notation and blocks. For comprehensive planning, create subnets of different sizes.