Network Tools
IP address to binary.
Type an IPv4 address and get it in binary: four 8-bit octets, the unbroken 32-bit string, hex and the decimal integer. Runs in your browser; the address is never sent anywhere.
Input
Result
Enter a value, then press Calculate.
How to convert an IP address to binary
- An IPv4 address is 32 bits written as four 8-bit groups called octets, each shown as a number from 0 to 255.
- Convert each octet on its own. Use the place values 128, 64, 32, 16, 8, 4, 2, 1: put a 1 under every value you need and a 0 under the rest.
- Example, 192: 128 + 64 = 192, so the bits are
11000000. 168: 128 + 32 + 8 = 168, so10101000. - Join the four octets with dots for the readable form, or without dots for the 32-bit string.
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 |
The first row is 192 (11000000), the second is 168 (10101000).
Common addresses in binary
| Address | Binary | Hex |
|---|---|---|
192.168.1.1 | 11000000.10101000.00000001.00000001 | C0A80101 |
10.0.0.1 | 00001010.00000000.00000000.00000001 | 0A000001 |
172.16.0.1 | 10101100.00010000.00000000.00000001 | AC100001 |
127.0.0.1 | 01111111.00000000.00000000.00000001 | 7F000001 |
8.8.8.8 | 00001000.00001000.00001000.00001000 | 08080808 |
255.255.255.0 | 11111111.11111111.11111111.00000000 | FFFFFF00 |
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are the private ranges (RFC 1918). The tool treats leading zeros such as 010 as an error rather than guessing, because some software reads them as octal. Going the other way? Use Binary to IP Address. To convert masks see Subnet Mask to Binary, and for general number conversion the Binary Converter.
IPv4 only. For IPv6 see the IPv6 Address Validator.
FAQ
What is 192.168.1.1 in binary?
11000000.10101000.00000001.00000001. As a single 32-bit string it is 11000000101010000000000100000001.
How many bits are in an IPv4 address?
32 bits, split into four octets of 8 bits each (RFC 791).
How do I convert each octet to binary?
Write the place values 128, 64, 32, 16, 8, 4, 2, 1 and mark which ones add up to the octet. For 168: 128 + 32 + 8, so 10101000.
Why does the converter reject 192.168.01.1?
A leading zero is ambiguous: some systems read 010 as octal 8. Write 1 or 10 instead so the value cannot be misread.
Does this look up or contact the IP address?
No. It only converts the digits you type, in your browser. It does not check whether the address is in use or who owns it.
Sources
- RFC 791, Internet Protocol (an IPv4 address is 32 bits)
- RFC 1918, Address Allocation for Private Internets (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
- RFC 4632, Classless Inter-domain Routing (CIDR) (prefix notation; mask must be left contiguous)
Sources retrieved October 2026.