Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

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

Knowledge/A Level/H446/01 Computer systems/Data Types/Convert positive integers between binary…

Convert positive integers between binary, hexadecimal and denary

Convert positive integers between binary hexadecimal and denary

1.4.1 Data Types

Practise exam questions

Data Types — Note 6 of 10

Candidates should be able to convert denary numbers to hexadecimal and vice-versa and from binary to hexadecimal and vice-versa

What you need to know

You need to convert confidently between binary, hexadecimal and denary in any direction. Binary and hex convert directly using nibbles; denary conversions use place values.

What to know

  • Binary to hex: split into nibbles from the RIGHT, padding with leading zeros, and convert each nibble. 10111101 = 1011 1101 = BD.
  • Hex to binary: convert each hex digit into a 4-bit nibble. 3F = 0011 1111.
  • Hex to denary: multiply each digit by its place value. BD = 11 × 16 + 13 = 189.
  • Denary to hex: divide by 16; the whole-number result is the first digit and the remainder is the second. 189 ÷ 16 = 11 remainder 13, so BD. This gives two digits, so it works for values up to 255.
  • Alternatively, convert denary to binary first, then binary to hex.
  • For values of 256 or more, use three digits with place values 256 16 1: 500 = 1 × 256 + 15 × 16 + 4 = 1F4.

Exam technique

  • Tip:Check your answer by converting it back the other way.
  • Mistake:Splitting binary into nibbles from the LEFT when the number of bits is not a multiple of 4.
  • Mistake:Giving the answer in the wrong base, e.g. stopping at the binary working when the question asked for denary. Read the question again before writing your final answer.

Past exam questions

  • June 2026Paper 1Q5(c)1mark
  • June 2026Paper 1Q5(d)1mark
  • June 2025Paper 1Q3(a)(ii)1mark
  • June 2025Paper 1Q3(a)(iii)1mark
  • June 2024Paper 1Q4(b)2marks
  • June 2023Paper 1Q3(a)(i)1mark
  • June 2023Paper 1Q3(a)(ii)1mark
  • June 2022Paper 1Q3(a)(i)1mark
  • November 2021Paper 1Q2(a)(ii)1mark
  • November 2020Paper 1Q3(a)(ii)1mark
  • November 2020Paper 1Q3(a)(iii)1mark
  • November 2020Paper 1Q3(a)(iv)2marks
  • June 2019Paper 1Q10(a)1mark
  • June 2019Paper 1Q10(b)2marks
  • June 2018Paper 1Q9(c)2marks
  • June 2017Paper 1Q6(a)(ii)1mark

Ready to test yourself?

Practise 1.4.1 questions
← Previous noteRepresent positive integers in hexadecimal1.4.1 Data TypesNext note →Representation and normalisation of floating point numbers in binary1.4.1 Data Types

Back to Data Types

Data Types

Note 6 of 10

  1. 1Primitive data types: integer, real/floating point, character, string and Boolean
  2. 2Represent positive integers in binary
  3. 3Sign and magnitude and two's complement to represent negative numbers
  4. 4Addition and subtraction of binary integers
  5. 5Represent positive integers in hexadecimal
  6. 6Convert positive integers between binary, hexadecimal and denary
  7. 7Representation and normalisation of floating point numbers in binary
  8. 8Floating point arithmetic: addition and subtraction
  9. 9Bitwise manipulation and masks: shifts, combining with AND, OR and XOR
  10. 10How character sets (ASCII and UNICODE) are used to represent text
Topic overview