IP to Binary Converter
Enter an IPv4 address, a binary string, a hex value, or a 32-bit integer. You get all four forms plus the per-octet breakdown — the view that turns subnetting from arithmetic into something you can see.
Read as dotted decimal
| Octet | Decimal | Binary |
|---|---|---|
| 1 | 192 | 11000000 |
| 2 | 168 | 10101000 |
| 3 | 1 | 00000001 |
| 4 | 1 | 00000001 |
- Dotted decimal
- 192.168.1.1
- Binary
- 11000000.10101000.00000001.00000001
- Hexadecimal
- 0xC0A80101
- 32-bit integer
- 3232235777
Binary explains why a wrong mask fails; the lab shows you where. Configure two PCs with mismatched masks and watch the ARP request go unanswered because one host thinks the other is off-net.
Open the labThe eight place values worth memorizing
Every octet is eight bits, and each position has a fixed value: 128 64 32 16 8 4 2 1. Converting is just deciding which of those add up to your number. 192 is 128 + 64, so the top two bits are set and the rest are clear: 11000000. 255 is all eight, which is why a full mask octet is 255 and not 256.
This is also the whole explanation for subnet block sizes. A /26 means 26 network bits, so the boundary lands two bits into the final octet, leaving six host bits — and six bits count to 64. That is why /26 subnets start at 0, 64, 128, and 192. Nothing is being memorized there; you are reading the binary.
The same trick answers "is this host in my subnet?" instantly. Line up the address and the mask in binary, compare only the bits the mask marks as network, and if they match the hosts are local to each other. If they do not, the packet goes to the default gateway.
IP binary conversion FAQ
How do I convert an IP address to binary?
Convert each octet separately to 8 bits, then join them. 192 becomes 11000000, 168 becomes 10101000, so 192.168.1.1 is 11000000.10101000.00000001.00000001. The dots are only for readability — the address is one continuous 32-bit number.
Why does subnetting require binary?
Because a subnet mask splits the address at a bit boundary, not a decimal one. A /26 puts the split six bits into the last octet, which is invisible in decimal but obvious in binary. Once you can see 192 as 11000000, the reason /26 gives blocks of 64 stops being a rule to memorize.
What is the 32-bit integer form of an IP address?
The same 32 bits read as a single number rather than four octets. 192.168.1.1 is 3232235777. Databases and APIs often store addresses this way because integer comparison makes range checks and sorting trivial.
How do I convert binary back to a decimal IP?
Split the 32 bits into four groups of 8 and convert each group. Positions carry values 128, 64, 32, 16, 8, 4, 2, 1, so 11000000 is 128 + 64 = 192. This tool accepts binary in either dotted or unbroken form and does the arithmetic for you.
What is an IP address in hexadecimal used for?
Hex shows up in packet captures and debug output, where each octet is two hex digits — 192.168.1.1 is C0A80101. It is a compact way to read raw header bytes, which is exactly what you are looking at when you inspect a frame.
More free tools: Subnet Calculator · CIDR Converter · MAC Address Lookup · All tools