Binary ↔ hexadecimal
One hexadecimal digit corresponds exactly to 4 bits. This lets us convert quickly without going through decimal every time.
1. The essential table
↕
0
↕
1
↕
2
↕
3
↕
4
↕
5
↕
6
↕
7
↕
8
↕
9
↕
A
↕
B
↕
C
↕
D
↕
E
↕
F
2. Example
Binary → hexadecimal: 101011112
1010 → A1111 → F
Therefore 101011112 = AF16.
Hexadecimal → binary: replace each digit with its 4-bit group:
A → 1010F → 1111
3. Practice
Choose the direction:
Binary → hexadecimal | Hexadecimal → binary
Guided practice — progress 0 / 5, correct 0.
Convert 100111002 to hexadecimal.
Guide: start from the right, split the number into groups of 4 bits and use the table. If the first group is short, pad it with leading zeros.
4. What you learned
Group bits correctly in sets of four and convert directly between base 2 and base 16 without using decimal as an intermediate step.