Free online math practice

Binary and hexadecimal conversions Practice

Converting numbers between binary, decimal, and hexadecimal.

Start practicingBinary and hexadecimal conversions

  • Free to practice.
  • No account required.
  • Progress stays on this device.

What you’ll practice

Each place is a power of the base. Binary uses two digits and hexadecimal uses sixteen, so the same written digits can represent different values.

Where this helps

Understanding how computers store numbers, colors, and data.

Before you start

Try the examples to see what you’ll practice. Check the answer form and any stated conditions.

Explainers

Add the binary place values

Binary 1011 means: 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1 = 11.

From right to left, binary places are 1, 2, 4, 8, 16, and so on. Each place is twice the one before it. Add only the places marked 1. Give the total as an ordinary decimal number.

Build the binary digits

To write 14 in binary, use the places 8, 4, 2, 1. 14 = 8 + 4 + 2 + 0, so the digits are 1110.

Start with the largest power of 2 that fits. Write 1 when you use a place and 0 when you skip it. Keep every place down to 1, including zero digits. The number 0 is written 0.

Read hexadecimal places

Hexadecimal 2B means 2 × 16 + 11 = 43.

The digits A, B, C, D, E, F stand for 10, 11, 12, 13, 14, 15. From right to left, the place values are 1, 16, 256, and so on. Multiply each digit’s value by its place, then add. A single digit has no sixteens to add.

Group into sixteens

45 = 2 × 16 + 13, so 45 in hexadecimal is 2D.

Divide by 16 to find the sixteens and the remainder. Remainders 10, 11, 12, 13, 14, 15 use A, B, C, D, E, F. For values below 16, use one digit. For values through 255, at most two digits are needed. The number 0 is written 0.

Try a few examples

Real practice. Real progress.

Example 1 of 4

Grades and courses that include this topic

Related practice

Start practicingBinary and hexadecimal conversions

  • Free to practice.
  • No account required.
  • Progress stays on this device.