English

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.

Binary1101
Octal15
Decimal13
HexadecimalD
Show the working
DivideQuotientRemainder (digit)
13 ÷ 261
6 ÷ 230
3 ÷ 211
1 ÷ 201
Read the remainders from the bottom up: 1101

Decimal to binary table

DecimalBinary
00
11
210
311
4100
5101
6110
7111
81000
91001
101010
151111
161 0000
3210 0000
64100 0000
100110 0100
127111 1111
1281000 0000
2551111 1111
2561 0000 0000
51210 0000 0000
1,00011 1110 1000
1,024100 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