Hexadecimal

Hexadecimal is a shorthand for binary that is much easier for humans to read and write.

Practise this lesson free (6 questions)

More tools

Base 16

Hex uses 16 digits: 0 to 9, then A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
One hex digit represents exactly 4 bits (a nibble).

Hex to denary

The left digit is worth 16s, the right digit is worth 1s.
B4 = (11 × 16) + 4 = 176 + 4 = 180
FF = (15 × 16) + 15 = 255

Hex and binary

Split binary into nibbles and convert each one.
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.
Worked example

Convert 2A from hex to denary.

  1. 2 is in the 16s column: 2 × 16 = 32.
  2. A = 10 is in the 1s column.
  3. 32 + 10 = 42

Answer: 42

Key idea

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.

Key words
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 →

Common mistakes
Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Convert the hex number 2A to denary.

    Show the answer

    Answer: 42

    (2 × 16) + (10 × 1) = 42

  2. 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.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

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? →

Related lessons