How to use the IPv4 binary Calculator tool
- Type a dotted-decimal address such as 192.0.2.1 in the IPv4 address field.
- Select Convert. Select Example if you want to see the sample address converted first.
- Read the four dot-separated groups in the Result box. Each group is one octet, most significant bit first.
- Select Copy to paste the binary form into your notes, or Clear to enter another address.
How an IPv4 address becomes binary
An IPv4 address is a single 32-bit number. Dotted-decimal notation cuts it into four bytes and prints each one in base 10, which is easy to read but hides the bit boundaries that routing actually uses. Converting back means writing each octet as eight binary digits with the place values 128, 64, 32, 16, 8, 4, 2 and 1.
Take 192. It contains 128, leaving 64, which contains 64, leaving 0. So the first two bits are 1 and the rest are 0: 11000000. The tool always pads to eight digits, so 2 is printed as 00000010 and never as 10.
Worked example: IPv4 to binary for 203.0.113.77
The last octet, 77, is 64 + 8 + 4 + 1, or 01001101. With a /26 prefix the first 26 bits are the network, which covers the first three octets and the top two bits of the fourth. Those two bits are 01, worth 64, so the address sits in 203.0.113.64/26. The remaining six bits, 001101, are host number 13.
203.0.113.77 -> 11001011.00000000.01110001.01001101
192.0.2.1 -> 11000000.00000000.00000010.00000001What the leading bits tell you
The first few bits of the first group identify the historical address class and some special ranges. Classes no longer control routing, since CIDR replaced them, but the patterns still appear in documentation and exams.
- 0 as the first bit: 0.0.0.0 to 127.255.255.255, the former class A space.
- 10: 128.0.0.0 to 191.255.255.255, former class B.
- 110: 192.0.0.0 to 223.255.255.255, former class C.
- 1110: 224.0.0.0 to 239.255.255.255, multicast.
- 1111: 240.0.0.0 and above, reserved, with 255.255.255.255 as the limited broadcast address.
Input rules of this converter
The address must have exactly four parts separated by dots. Each part is one to three decimal digits with a value from 0 to 255. Spaces around the address are ignored, and the conversion runs in your browser. Anything else, such as 256.1.1.1, 1.2.3, a /24 suffix, a port number, hex octets or an IPv6 address, returns the message Enter a dotted IPv4 address.
Leading zeros are allowed and read as decimal, so 010.1.1.1 converts as 10.1.1.1. Be careful when moving such addresses to other software: some network utilities treat a leading zero as octal and would read 010 as 8.
Frequently asked questions
What is 192.168.1.1 in binary?
It is 11000000.10101000.00000001.00000001. The octet 168 is 128 + 32 + 8, which gives 10101000, and each 1 is padded with seven leading zeros.
How do I convert an IP address to binary by hand?
Work on one octet at a time. Subtract 128, 64, 32, 16, 8, 4, 2 and 1 in order. Write 1 when the place value fits into what is left and 0 when it does not. Repeat for all four octets.
Can I enter an address with a CIDR prefix such as 10.0.0.1/8?
No. Remove the slash and prefix length first. To see the mask for a prefix in binary, use the Subnet mask binary Calculator, then line its output up under the address bits.
How do I find the network address from the binary form?
Write the subnet mask in binary under the address and apply AND to each column: a bit stays 1 only when both rows have 1. Converting the resulting 32 bits back to decimal gives the network address.
What is the address as a single 32-bit integer?
Remove the dots from the binary output and read the 32 digits as one number. For 192.0.2.1 that is 3221225985. This tool prints the grouped bits only, not the integer.
Does the converter support IPv6?
No. IPv6 addresses are 128 bits long and written in hexadecimal groups separated by colons, which this form rejects. It handles the four-octet dotted-decimal IPv4 notation only.