8-bit binary · 2-digit hexadecimal · denary 0–255 · Refresh the page for new questions
Converting between denary (base 10), binary (base 2) and hexadecimal (base 16) appears on every GCSE and A-Level Computer Science paper, usually without a calculator. The marks are very reliable once your method is secure.
This quiz gives you five questions in each direction: denary ↔ binary, denary ↔ hex and binary ↔ hex, all using 8-bit values from 0 to 255. Check your answers, review any you got wrong, then refresh for a brand new set.
For binary to hex, split the byte into two nibbles (4 bits each) and convert each one to a single hex digit. It's faster and less error-prone than going via denary.
Data representation, OCR J277, AQA 8525, OCR H446 and AQA 7517.
Browse all free Computer Science resources →
Want one-to-one help with this topic? I'm Damian Biasone, a qualified Computer Science teacher with 20 years' experience, tutoring GCSE and A-Level students online.
OCR GCSE (J277) tuitionAQA GCSE (8525) tuition