Number bases & conversions (binary/hex/decimal)
Math · Pre-algebra
Question 1 of 10
0What is 10111 (binary) in decimal?
Decimals (0.75 or 0,75), fractions (3/4) and mixed numbers (1 1/2) are accepted. Do not use thousands separators.
How to type your answer
- Fractions: 3/4. Mixed numbers: 1 1/2.
- Decimals with a point or a comma: 0.75 or 0,75.
- Negative numbers start with a minus: -3/4.
- Percentages need the % sign: 75%.
Stuck? Read the explanation
Unlocks at a streak of 5 correct answers in a row.
Embed this practice on your site or class page
Paste this HTML into your page. Students practise right there; it is free and needs no account.
Number bases & conversions (binary/hex/decimal) explained
A number base is how many different digits a system uses before it moves to the next place. Decimal (base 10) uses the digits 0 to 9, binary (base 2) uses only 0 and 1, and hexadecimal (base 16) uses 0 to 9 followed by A to F, where A stands for 10 and F for 15. Each place is worth a power of the base, so the place values in binary are 1, 2, 4, 8 and so on.
To convert a binary number to decimal, multiply each digit by its place value and add the results. To convert decimal to binary, repeatedly divide by 2, write down each remainder, and read the remainders from the last one to the first. Hexadecimal is convenient because one hex digit stands for exactly four binary digits.
Worked example
Convert 45 to binary and to hexadecimal.
- remainder 1, remainder 0, remainder 1, remainder 1, remainder 0, remainder 1.
- Reading the remainders upwards gives .
- Check: .
- For hexadecimal, , and 13 is written D, so .
A common mistake is reading a binary number as a decimal one. The binary number 1011 is not one thousand and eleven. Its value is .
What you will practise
New numbers every time you practise. Levels: Easy, Medium, Hard. Each answer is followed by a worked explanation.
Example questions
Easy
What is 11110 (binary) in decimal?
Medium
What is 18 (hexadecimal) in decimal?
Hard
What is 52 in hexadecimal?
- 34
- 10
- 12
- 22