IP to Binary

Converts an IPv4 address to binary, octet by octet and as one string, plus hexadecimal. You can paste a whole column of addresses.

Enter an IPv4 address and you get four representations: binary split by octets, binary as one continuous number, hexadecimal by octet, and hexadecimal as a single value. Paste a column of addresses and you get a table.

Why 192.168.010.1 is rejected

A leading zero makes the number octal: "010" is read as 8, so the address actually points to 192.168.8.1. The tool does not convert such notation, but it shows where it leads. The same happens with the short form: "192.168.1" is read as 192.168.0.1, because the last part occupies 16 bits instead of eight.

Why the binary form helps

It shows where the network bits end and the host bits begin. For masks and subnetting, use the subnet calculator; for IPv6, use the IPv6 converter, which also shows the binary notation.

Rate this tool

Help us get better

Other tools