Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Paper 1/Data Storage: Numbers

How to convert binary integers to their hexadecimal equivalents and vice versa

Numbers: How to convert binary integers to their hexadecimal equivalents and vice versa

1.2.4a Data Storage: Numbers

Practise exam questions

Data Storage: Numbers — Note 4 of 5

What you need to know

Converting between binary and hexadecimal is straightforward because each hex digit maps directly to a 4-bit nibble. This makes hex a convenient shorthand for binary.

What to know

  • To convert binary to hex: split the binary number into NIBBLES (groups of 4 bits from the right). Convert each nibble to its hex equivalent.
  • To convert hex to binary: convert each hex digit to its 4-bit binary equivalent. Combine the nibbles.
  • Example: binary 10110010 = nibbles 1011 and 0010 = hex B2.
  • If the binary number does not divide evenly into nibbles, pad with leading zeros on the LEFT.

Exam technique

  • Tip:Always split into groups of 4 FROM THE RIGHT. 11010 becomes 0001 1010 (padded), not 1101 0.
  • Mistake:Dropping the trailing zero in hex. Binary 10110000 = B0, NOT just B. The 0 is significant.
  • Tip:Check your answer by converting BACK. If you got hex B for 10110000, convert B back to binary = 1011, which is NOT 10110000. This tells you the answer is wrong (it should be B0).

Ready to test yourself?

Practise 1.2.4a questions
← Previous noteHow to convert positive denary whole numbers into 2-digit hexadecimal numbers and vice versa1.2.4a Data Storage: NumbersNext note →Binary shifts1.2.4a Data Storage: Numbers

Back to Data Storage: Numbers

Revise another OCR GCSE topic: Units, Data Storage: Characters

Data Storage: Numbers

Note 4 of 5

  1. 1How to convert positive denary whole numbers to binary numbers (up to and including 8 bits) and vice versa
  2. 2How to add two binary integers together (up to and including 8 bits) and explain overflow errors which may occur
  3. 3How to convert positive denary whole numbers into 2-digit hexadecimal numbers and vice versa
  4. 4How to convert binary integers to their hexadecimal equivalents and vice versa
  5. 5Binary shifts
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).