Convert between binary and decimal numbers.
Binary Number Converter
Turn decimal numbers into binary and binary numbers into decimal, with the working shown step by step.
🔒 Privacy: this tool runs entirely in your browser. Your files and text never leave your device — nothing is uploaded to any server.
How it works
- Type a decimal number (0 to 255) and press “Convert to Binary”.
- Read the step-by-step working, which shows the number as a sum of powers of two and as repeated division by 2.
- Type a binary number (only 0s and 1s) and press “Convert to Decimal” to go the other way.
- The working shows each binary digit and the value it adds.
Frequently asked questions
What is a binary number?
A number written with only the digits 0 and 1. Computers use binary because their circuits are either on (1) or off (0).
How do I read 13 in binary?
13 is 1101 in binary, because 13 = 8 + 4 + 1. The 1s sit under 8, 4 and 1, and the 0 sits under 2.
Why does the tool only take numbers from 0 to 255?
255 is the biggest number that fits in 8 binary digits, which is one byte — the size computers use for a single character.
What is the Binary Number Converter?
The Binary Number Converter turns decimal numbers into binary and binary numbers back into decimal, and it shows the working step by step. Type a decimal number from 0 to 255 and press Convert to Binary, or type a binary number made only of 0s and 1s and press Convert to Decimal. Either way, the tool does not just give the answer — it shows how the answer is worked out, so you can follow the method and use it yourself next time.
It is made for pupils learning how computers store numbers, usually in upper primary and secondary computing lessons. A binary number uses only the digits 0 and 1, because a computer’s circuits are either on (1) or off (0). That idea is simple to say but hard to picture, so seeing a number broken down into powers of two — for example, 13 as 8 + 4 + 1, which is 1101 in binary — makes the system click in a way that memorising answers never does.
What you can use it for
Here are some ways to use the converter in a computing lesson.
- Checking homework answers: work out a conversion on paper first, then type the same number into the tool and compare the step-by-step working with your own to find where you went wrong.
- Teaching place value: convert 13, then 14, then 15, and watch how the binary digits change, so pupils see that each place is worth double the one before it — 1, 2, 4, 8, 16 and so on.
- Explaining what a byte is: show that 255 is the biggest number that fits in 8 binary digits, which is one byte — the size computers use for a single character — and ask pupils what happens when you try 256.
- A quick class quiz: put a decimal number on the board, give pupils thirty seconds to write the binary answer, then use the tool to reveal the answer and the working for the whole class to check.
Good to know
- The tool only takes decimal numbers from 0 to 255, because that is the range that fits in 8 binary digits, or one byte.
- When you convert to binary, the working shows the number as a sum of powers of two and as repeated division by 2, so you can learn whichever method your teacher uses.
- When you convert to decimal, the working shows each binary digit and the value it adds, so you can see why a 1 in the 8s place is worth eight and a 0 there is worth nothing.
- Binary numbers can only contain 0s and 1s, so if you type a 2 or any other digit the tool cannot convert it — check your number and try again.
Why do computers use binary at all?
Because a computer is built from millions of tiny switches, and each switch can only be on or off — there is no in-between. Binary matches that exactly: 1 means on and 0 means off. By grouping those on and off switches in sets of eight, called bytes, a computer can stand for every letter, number and colour on the screen. If you want to test what else lives inside a computer, the Computer Parts Quiz Generator covers the CPU, memory and hard drive, and the Computer Science Worksheet Generator has a binary topic with eight random questions and an answer key.
