Binary Converter
Convert binary to decimal and decimal to binary, with hex and octal too. Type in any box, see the others update, and follow the working step by step.
- Bits needed
- 6
- Bytes
- 1
0010 1010
How binary becomes decimal
Multiply each digit by 2 to the power of its place, then add them up.
- 1 × 2⁵32
- 0 × 2⁴0
- 1 × 2³8
- 0 × 2²0
- 1 × 2¹2
- 0 × 2⁰0
Total42
Launch it on BetterLaunch for free and get it in front of thousands of makers and early adopters.
How to use the binary converter
- Binary to decimal: type 0s and 1s in the Binary box. The decimal value appears below, with the working on the right.
- Decimal to binary: type a normal number in the Decimal box. The binary updates as you type, with the division steps.
- Hex and octal update at the same time. Turn on Group digits to split binary into groups of 4, which makes long numbers easier to read.
How binary works
Decimal has ten digits and each place is worth ten times the one to its right: ones, tens, hundreds. Binary has only two digits, 0 and 1, and each place is worth twice the one to its right: 1, 2, 4, 8, 16 and so on. To read a binary number, add up the places that have a 1.
So 101010 is 32 + 8 + 2 = 42. Each digit is a bit, and 8 bits make a byte, which can hold any number from 0 (00000000) to 255 (11111111).
| Power | Decimal | Binary |
|---|---|---|
| 2^0 | 1 | 1 |
| 2^1 | 2 | 10 |
| 2^2 | 4 | 100 |
| 2^3 | 8 | 1000 |
| 2^4 | 16 | 10000 |
| 2^5 | 32 | 100000 |
| 2^6 | 64 | 1000000 |
| 2^7 | 128 | 10000000 |
| 2^8 | 256 | 100000000 |
| 2^9 | 512 | 1000000000 |
| 2^10 | 1,024 | 10000000000 |
Binary, decimal and hex chart
| Decimal | Binary | Hex |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 5 | 101 | 5 |
| 8 | 1000 | 8 |
| 10 | 1010 | A |
| 15 | 1111 | F |
| 16 | 10000 | 10 |
| 32 | 100000 | 20 |
| 64 | 1000000 | 40 |
| 100 | 1100100 | 64 |
| 128 | 10000000 | 80 |
| 255 | 11111111 | FF |
Want to turn words into binary instead of numbers? Use the binary translator.