Binary foundations
Binary Converter
Practice how decimal octets become binary bits and why each bit position matters.
Practice workspace
Convert one octet at a time, then inspect the four octets inside an IPv4 address.
Enter values
Use values from 0 to 255, the range of one IPv4 octet.
Decimal number to binary bits
Each bit represents a power of two. Add the active bit values to get the decimal number.
Decimal to binary
172 = 10101100
Network prefixHost space
Octet 1
1
0
1
0
1
1
0
0
Binary to decimal
10101100 = 172
IPv4 octets
Octet 1172 → 10101100
Octet 216 → 00010000
Octet 34 → 00000100
Octet 49 → 00001001
Quick practice
Try converting 192, 168, 1, and 1. Which bits are active in each octet?