Track progress, take quizzes and save notes on this lesson.

Free forever · no card needed

Start free
Intermediate

Hexadecimal Representation

3.3.1 Number bases·3.3.2 Converting between number bases

Aligned to the AQA 8525 specification

Level
Intermediate
Reading time
6 min
Published
2 June 2026
Updated
1 July 2026
On this page
  1. 1.What Is Hexadecimal?
  2. 2.Hex Digit Values
  3. 3.Converting Hex to Denary
  4. 4.Converting Denary to Hex
  5. 5.Converting Binary to Hex
  6. 6.Converting Hex to Binary
  7. 7.Common Exam Mistakes

Key takeaways

  • Hexadecimal is a base-16 number system using the digits 0-9 followed by A-F, where A-F represent the denary values 10 to 15 in a single character.
  • Hex is used in computing because every 4 binary bits map exactly to one hex digit, making binary-to-hex conversion lossless with no rounding.
  • A is the first letter after the digits and equals 10, not 11; each later letter adds one, so B=11, C=12, D=13, E=14, and F=15.
  • To convert denary to hex, divide repeatedly by 16, recording remainders, then read the remainders bottom to top, replacing any 10-15 with its letter.
  • When converting binary to hex, always pad each group to a full 4-bit nibble, because writing 3 bits instead of 4 shifts every digit and gives a wrong result.

What Is Hexadecimal?

Hexadecimal (hex) is a base-16 number system. Where binary uses two digits (0–1) and denary uses ten (0–9), hexadecimal uses sixteen: 0–9 followed by A–F to represent the values ten through fifteen in a single character.

Computers store everything in binary, but long binary strings — for example, a 32-bit memory address — are difficult to read and prone to transcription error. Hexadecimal solves this by providing a compact notation: every 4 binary bits map exactly to a single hex digit, making the conversion lossless.

Where hex appearsExample
Web colour codes#FF5733
Memory addresses0x1A2F
MAC addressesA8:5E:45:6B:3C:71
Error codes0x000000ED

Hex is used in computing not because it is intuitive, but because 4 bits = 1 hex digit. Binary-to-hex conversion is exact, with no rounding or information loss.

Hex Digit Values

The sixteen hex digits and their denary equivalents must be memorised. Digits 0–9 behave identically to denary; A–F replace the two-digit denary values 10–15 with a single character.

HexDenary4-bit binary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
A101010
B111011
C121100
D131101
E141110
F151111

The most common error here is treating A as 11 rather than 10. A is the first letter after the digits, and 10 is the first value after 9. Each subsequent letter adds one: B = 11, C = 12, D = 13, E = 14, F = 15.

Converting Hex to Denary

Each hex digit represents a power of 16, starting from at the rightmost position. Multiply each digit by its place value, substituting the denary equivalent for any letter, then sum the results.

For a 2-digit hex number:

PositionPlace value
Left digit
Right digit

Worked example 1 — convert 2A to denary:

  • 2 × 16 = 32
  • A (= 10) × 1 = 10
  • Total: 32 + 10 = 42

Worked example 2 — convert B7 to denary:

  • B (= 11) × 16 = 176
  • 7 × 1 = 7
  • Total: 176 + 7 = 183

Substitute the denary value for each letter before multiplying. Multiplying "A" directly is a common source of arithmetic errors.

Converting Denary to Hex

Use the division-by-16 method: divide the number by 16 repeatedly, recording the remainder after each step. Read the remainders bottom to top, replacing any remainder of 10–15 with its letter.

Worked example 1 — convert 174 to hex:

DivisionQuotientRemainderHex digit
174 ÷ 161014E
10 ÷ 16010A

Reading bottom to top: AE

Check: (10 × 16) + 14 = 160 + 14 = 174 ✓

Worked example 2 — convert 255 to hex:

DivisionQuotientRemainderHex digit
255 ÷ 161515F
15 ÷ 16015F

Result: FF — the maximum value of an 8-bit byte.

Check: (15 × 16) + 15 = 240 + 15 = 255 ✓

How much of this have you taken in?

Quiz yourself on this section, free, no card needed.

Test myself

Converting Binary to Hex

Four binary bits correspond exactly to one hex digit — this is the reason hex is used in computing. The nibble-split method exploits this relationship directly.

Method: starting from the right, divide the binary number into groups of 4 bits (nibbles). Pad the leftmost group with leading zeros if it has fewer than 4 bits. Convert each nibble to its hex digit using the place values 8, 4, 2, 1.

Worked example 1 — convert 10110101 to hex:

Split from right: 1011 | 0101

NibbleBit valuesDenaryHex
Left1×8 + 0×4 + 1×2 + 1×111B
Right0×8 + 1×4 + 0×2 + 1×155

Result: B5

Check: (11 × 16) + 5 = 176 + 5 = 181; 10110101 = 128 + 32 + 16 + 4 + 1 = 181 ✓

Worked example 2 — convert 00001111 to hex:

Split: 0000 | 1111 → 0 and 15 → 0F

Converting Hex to Binary

Hex-to-binary is the reverse of the nibble-split method: replace each hex digit with its 4-bit nibble. Always write all 4 bits, even when the value is small.

Worked example 1 — convert 3C to binary:

Hex digitDenary4-bit nibble
330011
C121100

Result: 00111100

Check: 32 + 16 + 8 + 4 = 60; (3 × 16) + 12 = 48 + 12 = 60 ✓

Worked example 2 — convert 7F to binary:

  • 7 → 0111
  • F (= 15) → 1111
  • Result: 01111111 = 64 + 32 + 16 + 8 + 4 + 2 + 1 = 127; (7 × 16) + 15 = 112 + 15 = 127 ✓

Never write 3 bits for a nibble. The digit 3 in hex is 0011, not 011. Dropping the leading zero shifts every nibble left and produces a completely wrong result.

Common Exam Mistakes

1. Off-by-one on A–F

A = 10, not 11. The letters start where the single digits end: after 9 comes A, and A = 10. Each subsequent letter adds one — B = 11, C = 12, D = 13, E = 14, F = 15.

2. Not padding nibbles to 4 bits

When converting binary to hex, 101 is not a valid nibble — write it as 0101. Unpadded nibbles cause all subsequent hex digits to be wrong.

3. Reading division remainders top to bottom

In the division-by-16 method, the first remainder you write becomes the rightmost hex digit. Remainders are read bottom to top, not top to bottom.

4. Writing two denary digits instead of a letter

174 in hex is AE, not 1014. Once a remainder reaches 10 or above, convert it to a letter before writing the result.

5. Using denary place values for hex

Hex place values are 1, 16, 256 — not 1, 10, 100. Mixing these up on multi-digit conversions produces a subtly wrong answer that is hard to spot without a check step.

Always verify your answer by converting back: if hex AE gives denary 174, confirm (10 × 16) + 14 = 174 before moving on.

Key terms

Hexadecimal
A base-16 number system using the sixteen digits 0-9 and A-F.
Base-16
A number system with sixteen possible digits, where each place value is a power of 16.
Nibble
A group of 4 binary bits, which corresponds exactly to one hexadecimal digit.
Division-by-16 method
Converting denary to hex by repeatedly dividing by 16 and reading the remainders bottom to top.
Nibble-split method
Converting binary to hex by splitting the binary into 4-bit groups from the right and converting each group to a hex digit.
Place value
The weight of a digit's position; in hex the place values are 1, 16, 256, each a power of 16.

Frequently asked questions

Because every 4 binary bits map exactly to one hex digit, so hex is a compact, lossless shorthand for long binary strings. A 32-bit memory address is hard to read and error-prone in binary, but short and clear in hex, with no rounding or information loss.

A equals 10 in denary, not 11. The letters begin where the single digits end: after 9 comes A=10, then B=11, C=12, D=13, E=14, and F=15. Treating A as 11 is the most common error.

Use the division-by-16 method: divide the number by 16 repeatedly, recording the remainder each time, then read the remainders bottom to top. Replace any remainder of 10 to 15 with its letter. For example, 174 gives remainders 14 (E) then 10 (A), reading bottom to top as AE.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

Binary Numbers and Denary Conversion

Next

Units of Information: Bits, Bytes and Beyond

Related lessons

Top students don’t revise more. They revise what counts.

Start revising free

Free to start. No card needed.