Number bases

Decimal to Binary Converter

Convert decimal numbers to binary instantly, with the step-by-step method and a reference table.

11111111

Whole numbers of any size are supported (exact big-integer arithmetic).

How to convert decimal to binary

Divide the decimal number by 2 repeatedly, writing down each remainder. Read the remainders from the last to the first.

Converting 156 to binary
DivisionQuotientRemainder
156 ÷ 2780
78 ÷ 2390
39 ÷ 2191
19 ÷ 291
9 ÷ 241
4 ÷ 220
2 ÷ 210
1 ÷ 201

Reading the remainders upward gives 156₁₀ = 10011100₍2₎.

About the number systems

Decimal

Base 10 is the everyday number system with digits 0–9; each position is worth ten times the one to its right.

Binary

Base 2 uses only the digits 0 and 1. Every value in a computer is ultimately stored as binary; each binary digit is a bit.

Decimal to binary table

Decimal to binary
DecimalBinary
00
11
210
311
4100
5101
6110
7111
81000
91001
101010
111011
121100
131101
141110
151111
1610000
3111111
32100000
63111111
641000000
1001100100
1271111111
12810000000
25511111111
256100000000
10001111101000
102410000000000
40961000000000000
655351111111111111111

Frequently asked questions

How do I convert decimal to binary?

Divide the decimal number by 2 repeatedly, writing down each remainder. Read the remainders from the last to the first. Converting 156 to binary Division Quotient Remainder 156 ÷ 2 78 0 78 ÷ 2 39 0 39 ÷ 2 19 1 19 ÷ 2 9 1 9 ÷ 2 4 1 4 ÷ 2 2 0 2 ÷ 2 1 0 1 ÷ 2 0 1 Reading the remainders upward gives 156₁₀ = 10011100 ₍2₎.

What is 255 in binary?

255 (decimal) = 11111111 in binary.

Can I convert very large numbers?

Yes. The converter uses exact big-integer arithmetic, so there is no rounding even for long inputs.

Try “psi to bar”, “cups”, “binary” or “5 ft in cm”.