Base-16 — the shorthand that every programmer, designer, and network engineer uses daily
The colour of every pixel on your screen right now is stored as a hex code. The deep black background of this page is #080808. The gold you see in every heading is #C9973A. Every website, every graphic, every game texture uses hex colour codes because they are compact, precise, and human-readable. When security researchers analyse malware, they read hex dumps of memory. When network engineers configure devices, they read MAC addresses like A4:83:E7:2B:1C:FF. When a Windows machine crashes with the Blue Screen of Death, the error code is written in hex — 0x0000007E. Hexadecimal is the everyday language of every computing professional. Today you learn exactly why it exists and exactly how it works.
Hexadecimal is a base-16 number system. It uses 16 different digits — the familiar 0–9, plus the letters A through F to represent values 10–15. A single hex digit can represent any value from 0 to 15.
This is the key insight: because 16 = 2⁴, any 4-bit pattern maps to exactly one hex digit. No overlaps, no gaps.
Binary is what computers use internally. Denary is what humans understand. Hex sits perfectly in the middle:
Compact: A full byte (8 bits) is just 2 hex digits. The same byte in binary is 8 digits. Hex is 4× shorter.
Easy to convert: Converting between binary and hex is trivial — just split into nibbles of 4. No division needed.
Human-readable: Memory addresses, colour codes, and error codes are far easier to read and type in hex than in binary.
Just as denary uses powers of 10 and binary uses powers of 2, hex uses powers of 16:
Forgetting that A–F represent values 10–15 — treating A as 1 or 10 as two separate digits. In hex, A is a single digit with the value 10.
Converting denary to hex digit-by-digit — you cannot convert each denary digit separately. 25 in hex is 19, not 25.
Mixing up nibble order — when converting a byte to hex, the left nibble (bits 7–4) is the first hex digit, and the right nibble (bits 3–0) is the second.
A two-part question — exactly as Cambridge sets them. Work through each step first.
Show digit-by-digit working in every conversion question.
Hex digits, nibbles, conversions, and real-world uses. Complete all 5 to save your progress!