Decimal to Binary Converter

Type a whole number to get it in binary, with the divide-by-two working you would do on paper.

Binary
1001 1100
Base 21001 1100
Base 8234
Base 10156
Base 169C

Working

DivideQuotientRemainder
156 ÷ 2780
78 ÷ 2390
39 ÷ 2191
19 ÷ 291
9 ÷ 241
4 ÷ 220
2 ÷ 210
1 ÷ 201

Read the remainders from bottom to top: 10011100

The method

Divide by 2 and write down the remainder. Keep dividing the quotient until it reaches 0. The remainders read from bottom to top are the binary number.

Place value: the idea behind every base

In any base, a digit’s worth depends on its column. Each column is worth the base times the column to its right. Tap a digit to change it and watch the total.

253232
24160
2388
2244
2120
2011

1×32 + 1×8 + 1×4 + 1×1 = 45 in decimal

Decimal is the same system with ten digits: 347 is 3×100 + 4×10 + 7×1. Nothing about base 10 is special apart from our ten fingers.

Decimal to binary table

DecimalBinary
11
210
311
4100
5101
81000
101010
1610000
32100000
50110010
641000000
1001100100
1271111111
12810000000
25511111111
10001111101000

Need another base, such as base 3 or base 36? Use the number system converter.

Questions people ask

How do you convert decimal to binary?

Repeatedly divide by 2, noting each remainder (0 or 1), until the quotient is 0. Reading the remainders from last to first gives the answer. 13 → 6 r1 → 3 r0 → 1 r1 → 0 r1, so 13 = 1101.

How are negative numbers written in binary?

Computers use two’s complement: invert every bit of the positive number and add 1. −5 in 8 bits is 11111011. The table under the result shows 8, 16 and 32-bit forms.

What is 100 in binary?

100 in decimal is 1100100 in binary (64 + 32 + 4).

Related tools