Decimal to Binary Converter
Convert decimal to binary instantly — type on the left and the result appears on the right. Everything runs in your browser, nothing is uploaded.
How to convert decimal to binary
Every whole number can be written in binary as a sum of powers of two. The quickest method by hand is repeated division by 2, reading the remainders back to front.
Method: repeated division by 2, reading the remainders from last to first.
- Divide by 2 and note the remainderDivide the decimal number by 2 and write down the remainder.
- Repeat until you reach 0Keep dividing each quotient by 2, noting each remainder.
- Read the remainders in reverseRead the remainders from last to first — that is your binary number.
Examples 26 = 11010255 = 11111111
Decimal to Binary Table
Common decimal values with their binary equivalents.
| Decimal | Binary |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 10 |
| 3 | 11 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
| 8 | 1000 |
| 9 | 1001 |
| 10 | 1010 |
| 11 | 1011 |
| 12 | 1100 |
| 13 | 1101 |
| 14 | 1110 |
| 15 | 1111 |
| 16 | 10000 |
| 20 | 10100 |
| 32 | 100000 |
| 50 | 110010 |
| 64 | 1000000 |
| 100 | 1100100 |
| 128 | 10000000 |
| 255 | 11111111 |
| 256 | 100000000 |
| 512 | 1000000000 |
| 1000 | 1111101000 |
Related conversions
Frequently asked questions
How do you convert decimal to binary?
Divide the number by 2 and note the remainder, repeat with each quotient until you reach 0, then read the remainders from last to first. 13 gives 1101.
What is 10 in binary?
10 in decimal is 1010 in binary, because 8 + 2 = 10.
What is 255 in binary?
255 is 11111111 — eight ones, the biggest value in one byte.