Conversion
Binary to IPv4
Convert 32 bits (with or without dots) into a dotted-decimal IPv4 address, with a byte-by-byte breakdown in decimal and hexadecimal.
How it works
Converting binary to IPv4 means grouping the 32 bits into packets of 8 and converting each packet to decimal. 11000000 = 192, 10101000 = 168: the reverse operation of the IPv4 to binary converter.
Classic exercise: determine whether an address belongs to a private range by looking at the first bits — 10xxxxxx = 10.0.0.0/8, 1101xxxx… and so on.
Examples
Frequently asked questions
How do you convert a binary octet to decimal?
Add the values of the bits set to 1: 128, 64, 32, 16, 8, 4, 2, 1.
What happens if the input is not 32 bits?
The tool refuses the conversion: an IPv4 address must be exactly 32 bits.