Hexadecimal

GCSE Computer Science · Data Representation

What hex is

Hexadecimal (hex) is base 16 — a human-friendly shorthand for binary.

DenaryBinaryHex
101010A
111011B
121100C
131101D
141110E
151111F

The key idea

One hex digit = exactly 4 bits (one nibble). One byte = two hex digits.

Binary → hex

Split into nibbles, convert each:

1111 1010  →  F   A   →  FA

Hex → binary

Convert each digit to 4 bits:

2 D  →  0010 1101

Hex → denary

Multiply the first digit by 16, add the second.

2D = (2 × 16) + 13 = 45

Why it's used

  • Shorter and less error-prone than long binary strings.
  • Colour codes (#FF0000 = red), memory addresses, MAC addresses.

Exam tip

Memorise A=10 … F=15. Most hex questions are two separate nibble conversions joined together.

Don't understand a part?

Sign in and ask our AI tutor to explain any passage in plain English.

Try AI explanations →

More on Data Representation

Binary and Denary Binary Arithmetic and Shifts Characters, Images and Sound Compression

← All GCSE Computer Science notes