Binary to IP Converter
Convert binary to IPv4 addresses and IP addresses to binary.
Binary to IP Converter
Convert 32-bit binary numbers to dotted-decimal IPv4 addresses and IP addresses to binary. Enter one value per line: 11000000.10101000.00000000.00000001 becomes 192.168.0.1, and 255.255.255.0 becomes 11111111.11111111.11111111.00000000. The tool is especially useful for learning and checking subnetting.
IPv4 addresses are 32 bits
Every IPv4 address is a 32-bit number. For readability it is split into four 8-bit octets, and each octet is written in decimal from 0 to 255. Converting an address to binary means writing each octet as eight bits:
- 192 =
11000000 - 168 =
10101000 - 0 =
00000000 - 1 =
00000001
The octet place values are 128, 64, 32, 16, 8, 4, 2, 1. To convert an octet to decimal, add the place values of the bits that are 1: 10101000 = 128 + 32 + 8 = 168.
Why network engineers use binary
Subnet masks, CIDR prefixes, and routing decisions all happen at the bit level. Writing an address and its mask in binary shows exactly where the network part ends and the host part begins:
192.168.10.77=11000000.10101000.00001010.01001101255.255.255.192=11111111.11111111.11111111.11000000(/26)
The first 26 bits identify the network, the last 6 bits the host. Our CIDR Calculator computes the network, broadcast, and host range for you; this converter helps you understand and verify the bits behind it. It is also a standard exercise for CCNA, CompTIA Network+, and university networking courses.
Accepted input formats
- Dotted octets:
11000000.10101000.00000000.00000001(leading zeros may be omitted, e.g.1010.0.0.1). - Octets separated by spaces, colons, or dashes.
- A continuous 32-bit string, optionally with a
0bprefix; shorter strings are padded on the left.
In IP-to-binary mode switch off Dotted octets to get one continuous 32-bit string. See also Hex to IP and Decimal to IP.
Frequently Asked Questions
How do I convert an IP address to binary?
Convert each of the four numbers to an 8-bit binary value, padding with leading zeros, and join them with dots. 10.0.0.1 becomes 00001010.00000000.00000000.00000001.
What is 255.255.255.0 in binary?
11111111.11111111.11111111.00000000 – 24 ones followed by 8 zeros, which is why this mask is written as /24.
Can I paste 32 bits without dots?
Yes. A continuous string of up to 32 bits is accepted and split into octets automatically.