Decimal to binary
Type a value in dec to get it in bin instantly.
11111111bin
That's about the same as a byte. That needs 8 bits to store.
Convert the other way: bin to dec
What it means
How big is that?
Whole numbers only. Anything after the decimal point is rounded away.
The math
How to convert dec to bin
Base b: each digit is worth b times the one to its right. Gray code = n XOR (n ÷ 2); BCD writes each decimal digit as four bits.
Example: 255 dec = 11111111 bin.
Every unit
Your number in every base
Tables
dec to bin conversion table
| dec | bin |
|---|---|
| 1 dec | 1 bin |
| 2 dec | 10 bin |
| 4 dec | 100 bin |
| 8 dec | 1000 bin |
| 10 dec | 1010 bin |
| 15 dec | 1111 bin |
| 16 dec | 10000 bin |
| 31 dec | 11111 bin |
| 32 dec | 100000 bin |
| 64 dec | 1000000 bin |
| 100 dec | 1100100 bin |
| 128 dec | 10000000 bin |
| 255 dec | 11111111 bin |
| 256 dec | 100000000 bin |
| 512 dec | 1000000000 bin |
| 1,000 dec | 1111101000 bin |
| 1,024 dec | 10000000000 bin |
bin to dec conversion table
| bin | dec |
|---|---|
| 1 bin | 1 dec |
| 10 bin | 2 dec |
| 100 bin | 4 dec |
| 1000 bin | 8 dec |
| 1010 bin | 10 dec |
| 1111 bin | 15 dec |
| 10000 bin | 16 dec |
| 11111 bin | 31 dec |
| 100000 bin | 32 dec |
| 1000000 bin | 64 dec |
| 1100100 bin | 100 dec |
| 10000000 bin | 128 dec |
| 11111111 bin | 255 dec |
| 100000000 bin | 256 dec |
| 1000000000 bin | 512 dec |
| 1111101000 bin | 1,000 dec |
| 10000000000 bin | 1,024 dec |
Quick answers
Quick answers
- How many bin is 1 dec?
- 1 dec is 1 bin.
- How many bin is 10 dec?
- 10 dec is 1010 bin.
- How many bin is 255 dec?
- 255 dec is 11111111 bin.
The units
About these units
Decimal (dec)
Base ten, the everyday counting system, using digits 0 to 9.
Binary (bin)
Base two: only 0 and 1. Every digit is one bit, the smallest unit of computer memory.
Keep going