Results

Cambridge November 2026 results: AS & A Level on 7 January 2027, IGCSE and O Level on 14 January 2027.

Source: Cambridge International

Binary, Decimal and Hex Converter With Working

Type a number in binary, decimal (also called denary) or hexadecimal and see the other two forms with the working, up to 32 bits. It is built for IGCSE, GCSE and O Level Computer Science practice, and everything runs in your browser.

The tool needs JavaScript. The instructions, method and limitations below remain available even when JavaScript is disabled.

Convert a number

Choose the number system you are typing in, enter a whole number from 0 up to 32 bits, and see the other two forms with the working.

Tool inputs

Enter a number, then choose “Convert with working”.

How to use the converter

  1. Choose the number system you are typing in: binary, decimal or hexadecimal.
  2. Type a whole number. You can include a 0b or 0x prefix, and spaces are ignored.
  3. Choose “Convert with working” to see all three forms and the steps.

How the conversions work

  • Decimal to binary: divide by 2 again and again, writing down each remainder, then read the remainders from the bottom up.
  • Binary to decimal: write the place values (…, 8, 4, 2, 1) above the bits and add up the place values where the bit is 1.
  • Binary and hexadecimal: split the binary number into groups of 4 bits from the right. Each group is one hex digit, and A to F stand for 10 to 15.
  • Hexadecimal to decimal: multiply each digit by its power of 16 (…, 256, 16, 1) and add the results.

Worked example: 45

  1. Divide by 2: 45 ÷ 2 = 22 r1, 22 ÷ 2 = 11 r0, 11 ÷ 2 = 5 r1, 5 ÷ 2 = 2 r1, 2 ÷ 2 = 1 r0, 1 ÷ 2 = 0 r1.
  2. Read the remainders from the bottom up: 101101. In 8 bits that is 00101101.
  3. Check with place values: 32 + 8 + 4 + 1 = 45.
  4. Group in fours: 0010 1101. 0010 is 2 and 1101 is 13, which is D, so the hexadecimal is 2D.
  5. Check the hex: 2 × 16 + 13 = 45.

Common mistakes

  • Reading the remainders from the top down instead of the bottom up.
  • Leaving out leading zeros when a question asks for 8 bits.
  • Forgetting that hexadecimal letters A to F stand for 10 to 15.
  • Mixing up the place values by starting from the wrong end of the number.

Common questions

Does it handle negative numbers?

No. It converts whole numbers from 0 upwards (unsigned). Negative numbers in binary, such as two's complement, are a separate topic.

What is the largest number it can convert?

4,294,967,295, which is 32 ones in binary and FFFFFFFF in hexadecimal.

Does it convert fractions?

No. It converts whole numbers only.

Is decimal the same as denary?

Yes. Some courses say denary instead of decimal. They mean base 10.

Is what I type saved or sent anywhere?

No. The conversion happens in your browser and nothing you enter is stored or sent to us.

Limitations and privacy

The converter handles unsigned whole numbers up to 32 bits. It does not cover negative numbers, fractions, binary addition or character encodings.

No input is sent to a server, an analytics service or an email provider. Nothing you enter is saved: refreshing the page clears it.

Sources and method

Conversions use standard base-2, base-10 and base-16 arithmetic. The unit tests convert thousands of random numbers in all three directions and check known examples such as 45, 255 and 4,294,967,295. Calculation version: calculation-v1. No syllabus, date, grade boundary or tariff dataset has been imported. Maintained by Mehar Ahmad. This tool has not had a tutor or academic review.

Related study guides

Want help with this topic?

If number systems are a weak spot, you can request a free 30-minute demo to practise them with a tutor.

Request a free 30-minute demo
Book free demoWhatsApp us