Skip to main content
EnglandComputer ScienceSyllabus dot point

Why is hexadecimal used, and how do you convert between hexadecimal and binary?

Understand why hexadecimal notation is used and convert between hexadecimal and binary.

A focused answer to Edexcel GCSE Computer Science 2.1.6, covering why hexadecimal notation is used as a shorthand for binary and how to convert between hexadecimal, binary and denary.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Why hexadecimal is used
  3. The hex-binary relationship
  4. Converting binary to hexadecimal
  5. Converting to and from denary
  6. Try this

What this dot point is asking

Edexcel wants you to explain why hexadecimal (base 16) is used in computing, and to convert between hexadecimal and binary (and to and from denary) confidently, using the fact that one hex digit equals exactly four bits.

Why hexadecimal is used

The single biggest reason Edexcel rewards is readability with fewer errors. Compare the binary 1111101011111010 with its hex form FA\text{FA}: eight characters become two, so the hex is far quicker to read and far easier to copy without slipping a digit. A single mistyped bit in a long binary string is easy to miss, whereas a two-character hex value is checked at a glance, which is why technical documentation and tools display values in hex.

Hexadecimal is common wherever raw binary would be unwieldy. Colour codes in web design use it (for example #FF8800, where each pair of hex digits is the red, green and blue intensity from 0 to 255). Memory addresses are written in hex because they are long binary values. Machine-code and error dumps are shown in hex so a programmer can read them. In every case it is not that the computer uses hex internally (it still stores binary); hex is purely a convenient notation for people.

The hex-binary relationship

The conversion table for one nibble is worth knowing by heart: 0000=00000=0, 0001=10001=1, ..., 1001=91001=9, 1010=A1010=\text{A}, 1011=B1011=\text{B}, 1100=C1100=\text{C}, 1101=D1101=\text{D}, 1110=E1110=\text{E}, 1111=F1111=\text{F}.

Converting binary to hexadecimal

Converting to and from denary

To convert hex to denary, multiply the left digit by 16 and add the right digit (for two-digit hex): 2C=2×16+12=44\text{2C} = 2 \times 16 + 12 = 44. To convert denary to hex, the easiest route at GCSE is via binary: write the denary number in binary, then group into nibbles. For example 44=0010110044 = 00101100, which splits into 0010=20010 = 2 and 1100=C1100 = \text{C}, giving 2C\text{2C}. Going through binary avoids errors and uses the four-bits-per-digit rule you already know.

Try this

Q1. Convert the hexadecimal value A3\text{A}3 to denary. [2 marks]

  • Cue. 10×16+3=16310 \times 16 + 3 = 163.

Q2. Convert the binary number 0110100101101001 to hexadecimal. [2 marks]

  • Cue. 0110=60110 = 6 and 1001=91001 = 9, so 6969.

Exam-style practice questions

Practice questions written in the style of Pearson Edexcel exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Edexcel 20232 marksConvert the binary number 11010110 into hexadecimal. Show your working.
Show worked answer →

Split the 8-bit number into two 4-bit nibbles and convert each to a hex digit.

1101=13=D1101 = 13 = \text{D} and 0110=60110 = 6. So 11010110=D611010110 = \text{D6} in hexadecimal.

Markers reward splitting into nibbles, converting each nibble correctly (1101 to D, 0110 to 6), and writing the two hex digits in the right order. The denary check is 214=13×16+6214 = 13 \times 16 + 6.

Edexcel 20223 marksExplain one reason why hexadecimal is used to represent binary values, and convert the hexadecimal value 2F into binary.
Show worked answer →

Hexadecimal is used because it is a shorter, more readable shorthand for binary: one hex digit represents exactly four bits, so a long binary string becomes far fewer characters, which is easier for people to read and write and less error-prone.

To convert 2F: 2=00102 = 0010 and F=15=1111\text{F} = 15 = 1111, so 2F=00101111\text{2F} = 00101111.

Markers reward a valid reason (more compact or readable, fewer errors than long binary), and converting each hex digit to its 4-bit group in the correct order.

Related dot points

Sources & how we know this