IP to Binary, Hex & Decimal Converter
Convert any IPv4 address to binary, hexadecimal and decimal (integer) form and back. See each octet's bits — useful for learning subnetting.
Why convert an IP to binary?
Every IPv4 address is really a 32-bit number — the dotted form is just for humans. Seeing the binary makes subnetting click: a /26 mask means "the first 26 bits are network," and comparing the bits of an address and mask shows instantly which subnet it lands in. The decimal (integer) form is what you'll find in databases and logs that store IPs as numbers, and the hex form appears in packet captures.
Practice with the subnet calculator, or read what a subnet mask actually does.
Frequently asked questions
Why does an IP fit in one number?
IPv4 addresses are 32 bits, so any address maps to an integer from 0 to 4,294,967,295. http://3232235777 in some browsers even resolves to 192.168.1.1 — same number, different notation.