##
Binary · Decimal · Hex
Every IP octet is 8 bits. Master the place values and conversion becomes instant. Click any bit below to flip it.
// live octet converter
dec
hex 0xAC
bin 10101100
// powers of 2
20
1
21
2
22
4
23
8
24
16
25
32
26
64
27
128
28
256
29
512
210
1,024
211
2,048
212
4,096
213
8,192
214
16,384
215
32,768
216
65,536
// quick conversions
192 = 11000000
168 = 10101000
255 = 11111111
10 = 00001010
0xFF = 255
168 = 10101000
255 = 11111111
10 = 00001010
0xFF = 255
// decimal → binary, by hand
- Write the 8 place values: 128 64 32 16 8 4 2 1
- Go left→right: does the place value fit in what remains?
- If yes write 1 and subtract it; if no write 0
- Stop at 0 — the bit string is your binary
- Hex: split the 8 bits into two nibbles, map each 0–F
// a full IP in binary — 192.168.10.1
192.168.10.1 = 11000000.10101000.00001010.00000001
32 bits = four 8-bit octets. The same value in hex is C0.A8.0A.01.