Convert decimal to binary
Decimal (base 10) to binary (base 2). Type a value below, or use the reference table further down.
Divide repeatedly by 2 and read the remainders from last to first. 255 in base 2 is 11111111.
How to convert decimal to binary
Divide repeatedly by 2 and read the remainders from last to first. 255 in base 2 is 11111111.
Conversions here use arbitrary-precision integers, so values beyond 64 bits convert exactly rather than being rounded.
decimal to binary conversion table
Use this decimal to binary chart for quick reference.
| Decimal (base 10) | Binary (base 2) |
|---|---|
| 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 |
| 32 | 100000 |
| 64 | 1000000 |
| 100 | 1100100 |
| 127 | 1111111 |
| 128 | 10000000 |
| 255 | 11111111 |
| 256 | 100000000 |
| 512 | 1000000000 |
| 1000 | 1111101000 |
| 1023 | 1111111111 |
| 1024 | 10000000000 |
| 4095 | 111111111111 |
| 4096 | 1000000000000 |
| 65535 | 1111111111111111 |
| 65536 | 10000000000000000 |
Common decimal to binary values
123456789101112131415162024253032506410012820025525651210001024
What is decimal?
Decimal is base 10, the everyday number system, using the digits 0 to 9. Each place is worth ten times the one to its right.
What is binary?
Binary is base 2, using only 0 and 1. It is how every digital computer physically stores and manipulates data, with each digit representing one bit.
Frequently asked questions
How do you convert decimal to binary?
Divide repeatedly by 2 and read the remainders from last to first. 255 in base 2 is 11111111.
What is 255 decimal in binary?
255 in decimal is 11111111 in binary. In plain decimal that value is 255.
What digits does decimal use?
Decimal is base 10 and uses 0-9. Decimal is base 10, the everyday number system, using the digits 0 to 9. Each place is worth ten times the one to its right.