Decimal to Binary
Divide the number by 2 again and again, writing down each remainder (0 or 1). Reading the remainders from the last to the first gives the binary number.
Binary
1101Octal
15Decimal
13Hexadecimal
DShow the working
| Divide | Quotient | Remainder (digit) |
|---|---|---|
| 13 ÷ 2 | 6 | 1 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
| Read the remainders from the bottom up: 1101 | ||
Decimal to binary table
| Decimal | Binary |
|---|---|
0 | 0 |
1 | 1 |
2 | 10 |
3 | 11 |
4 | 100 |
5 | 101 |
6 | 110 |
7 | 111 |
8 | 1000 |
9 | 1001 |
10 | 1010 |
15 | 1111 |
16 | 1 0000 |
32 | 10 0000 |
64 | 100 0000 |
100 | 110 0100 |
127 | 111 1111 |
128 | 1000 0000 |
255 | 1111 1111 |
256 | 1 0000 0000 |
512 | 10 0000 0000 |
1,000 | 11 1110 1000 |
1,024 | 100 0000 0000 |
How it works
- Divide by 2 and note the remainder; repeat with the quotient until it reaches 0.
- The first remainder is the rightmost bit, so read the remainders from bottom to top.
- Example: 13 ÷ 2 = 6 r 1, 6 ÷ 2 = 3 r 0, 3 ÷ 2 = 1 r 1, 1 ÷ 2 = 0 r 1, so 13 = 1101.
Frequently asked questions
What is 100 in binary?
1100100 (64 + 32 + 4).
Is there a shortcut for powers of two?
Yes: 2 to the power n is a 1 followed by n zeros, so 64 = 1000000 and 1024 = 10000000000.
Calculations run in your browser. Nothing you enter is sent anywhere or added to a searchable page address. How we calculate