Converting between hexadecimal and binary
Since 16 = 2⁴, each hex digit is exactly four bits. No detour through decimal is needed.
Rules
- Four bits = one hex digit
- Split into groups of four from the right
- Octal likewise with groups of three
Your turn
Three problems on this topic. Spaces don’t matter.
- 1 · Hex and binary
- 2
- 3
Write the binary number in hexadecimal.
0111 1001 0010 0010
Hexadecimal
Worked example
Write the binary number in hexadecimal.
1011 0011 1111 0000
Worked solution
- 1Each hex digit is exactly four bits:
- 2B = 1011 · 3 = 0011 · F = 1111 · 0 = 0000
Typical mistake: Split the binary number into groups of four from the right, not from the left.
Common questions
Do I have to go through decimal?
No, the conversion works directly, digit by digit.
