Converting denary to hexadecimal
Divide the denary number by 16 again and again. Read the remainders from last to first, writing 10 to 15 as A to F. Check by converting the hex back to denary.
Understanding Converting denary to hexadecimal in IGCSE Computer Science Paper 1
What it does: The last remainder (12 = C) is written first and the first remainder (8) is written last, giving C8. Multiplying each hex digit by its place value (16 and 1) and adding them should give the original denary number. Hexadecimal is base 16, so you divide by 16 each time. Dividing by 2 is for converting to binary. Remainders 10 to 15 are written as A to F, so 11 becomes B. Writing 11 would look like two separate digits. Keep dividing until the quotient reaches 0. Record the remainder from that last division too. To check, convert back to denary: the 16s digit is multiplied by 16 and A is worth 10. 3 × 16 + 10 = 58, which matches.
Common mistakes: The remainders must be read from last to first, not first to last. The last remainder is 13 (D) and the first is 12 (C), so the answer is DC. 10 is smaller than 16, so 10 / 16 = 0 remainder 10. The line should be 10 / 16 = 0 remainder 10, which gives the digit A.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 3–17) and word search (Modules 3–27).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
divide by 16Fill in the Blanks
Spot the Error
Student with a class code? Join your class →