Number Bases — Conversion Trainer

click any bit to flip it
128
64
32
16
8
4
2
1
binary
10110010
hex
0xB2
decimal
178
octal
0o262
Nibble → Hex
1011=0xB·0010=0x2

Each group of 4 bits (a nibble) maps to exactly one hex digit — that's why hex is the natural shorthand for binary.