Hexadecimal
Hexadecimal is a shorthand for binary that is much easier for humans to read and write.
Base 16
One hex digit represents exactly 4 bits (a nibble).
Hex to denary
B4 = (11 × 16) + 4 = 176 + 4 = 180
FF = (15 × 16) + 15 = 255
Hex and binary
1011 0100 → 1011 = B, 0100 = 4 → B4
Hex is used for colour codes and memory addresses because it is shorter and less error-prone than binary.
Convert 2A from hex to denary.
- 2 is in the 16s column: 2 × 16 = 32.
- A = 10 is in the 1s column.
- 32 + 10 = 42
Answer: 42
Hex digits 0 to F, where A is 10 and F is 15. Left digit × 16 plus right digit. Each hex digit is one nibble of binary.
- Hexadecimal
- Base 16, using digits 0 to 9 and A to F. One hex digit represents 4 bits.
- Binary
- Base 2: the number system that uses only the digits 0 and 1.
- Nibble
- 4 bits.
All GCSE and International GCSE Computer Science key terms and definitions →
- Not “Computers store data in hex”. Computers always store data in binary. Hex is for humans.
Try two quick questions
See if it has sunk in. Answers are marked straight away.
2 more questions
Try each one, then tap to check.
Convert the hex number 2A to denary.
Show the answer
Answer: 42
(2 × 16) + (10 × 1) = 42
Convert 171 to hexadecimal.
Show the answer
Answer: AB
171 ÷ 16 = 10 remainder 11. 10 is A and 11 is B, so AB.
Check you have got it
Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.
- Pearson Edexcel GCSE Computer Science (1CP2) specification, topic 2.1.6
- Pearson Edexcel International GCSE Computer Science (4CP0) specification, topic 3.1.5
Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.
What do exam command words like explain and evaluate mean? →