Calculateus

IP Address to Binary Converter

Convert an IPv4 address between dotted-decimal and binary notation.

Result

Binary
11000000.10101000.00000001.00000001
32-bit Decimal
3,232,235,777

Each octet of an IPv4 address is an 8-bit binary number (0-255). Concatenating all 4 octets' bits gives the full 32-bit value used internally for routing calculations.

About the IP to Binary

The IP Address to Binary Converter takes a standard IPv4 address written in dotted-decimal form and shows its binary representation, along with the single 32-bit decimal number that binary represents. It is aimed at networking students and IT staff who need to see the raw bits behind an address, for example when working through subnetting by hand.

How It Works

Enter an IPv4 address as four numbers separated by dots. The calculator splits the address into its four octets, checks that each one is a whole number between 0 and 255, and then converts each octet individually into an 8-bit binary string. Those four 8-bit groups are joined with dots to form the full binary address, and the same four octets are also combined arithmetically into one 32-bit decimal value.

For each octet, binary = octet converted to base 2, padded to 8 digits. 32-bit decimal = (((octet1 x 256) + octet2) x 256 + octet3) x 256 + octet4.

Examples

Private router address, 192.168.1.1

192.168.1.1 converts to the binary octets 11000000.10101000.00000001.00000001, and combining all 32 bits gives the decimal value 3,232,235,777.

First host on a 10.0.0.0 network

10.0.0.1 converts to 00001010.00000000.00000000.00000001 in binary, which equals 167,772,161 as a single 32-bit decimal number.

Advantages

  • Shows the octet-by-octet binary breakdown clearly, exactly the format needed for manual subnetting and CIDR calculations.
  • Validates the address format automatically, catching typos like an out-of-range octet before they lead to a wrong manual calculation.
  • Also outputs the single 32-bit decimal value, the same integer representation some network tools and databases store an IP address as internally.

Common Mistakes

  • Assuming each octet converts to binary independently of position, when the 32-bit decimal value actually depends on each octet's place in the full 4-byte number, not just its own value.
  • Entering more or fewer than four octets, such as a shorthand address, which this converter doesn't expand or infer.
  • Confusing the 32-bit decimal output with a subnet mask or broadcast address calculation, which requires additional CIDR/prefix information this tool doesn't take as input.

Edge Cases to Watch For

  • If the input isn't exactly four dot-separated numbers, or any of them falls outside 0 to 255, the calculator returns an error message instead of a result rather than guessing at a partial answer.
  • The tool only handles IPv4 addresses, not IPv6, since IPv6 uses a completely different 128-bit hexadecimal notation.
  • Leading zeros or stray characters in an octet are parsed as plain integers, so an address like 192.168.01.1 is treated the same as 192.168.1.1 rather than being flagged as non-standard formatting.

Common Use Cases

  • Networking students working through binary and subnetting exercises who want to check their manual bit conversions.
  • IT and network administrators troubleshooting routing or access-list rules that reference an address's binary structure.
  • Developers or database engineers who need to see or verify the 32-bit integer form an IP address is stored as.
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Why is an IPv4 address written as 4 numbers separated by dots?

An IPv4 address is a 32-bit number, but writing 32 binary digits is hard to read - splitting it into four 8-bit "octets" (each 0-255) and writing them in decimal, separated by dots, makes it far more human-readable while representing the exact same underlying value.

Conclusion

Binary is how routers and switches actually process an IP address, so seeing the conversion explicitly makes subnetting and addressing logic easier to follow. Because the calculator validates the format up front, it also doubles as a quick sanity check that an address is written correctly.