Free Online Decimal to Binary Converter

Convert decimal to binary instantly, with the step-by-step method, a worked example and a table of common values.

Converter

Binary, Octal, Decimal, Hex & Every Base In Between

Convert any value between base 2 and base 60

B10
—

Results are provided for informational purposes only and may contain errors. Please verify important information independently. Use of this tool is at your own risk.

How to convert decimal to binary

Convert decimal numbers to binary instantly: type a value and the binary result appears as you type. Below the converter you'll find the method to do it by hand, a worked example and a table of common values.

  1. Type or paste a decimal number into the box above. Negative numbers and fractions work too.
  2. The From and To bases are already set to decimal and binary, so the result appears right away: 156 becomes 10011100.
  3. Copy the result, or choose any other base from 2 to 60 to convert the same value.

Converting decimal to binary by hand

Divide the number by 2 and write down the remainder. Keep dividing the result by 2 until it reaches 0. The remainders, read from the last one to the first, are the binary digits. To check the answer, multiply each digit by its place value and add them up:

10011100₂ = 1·2⁷ + 0·2⁶ + 0·2⁵ + 1·2⁴ + 1·2³ + 1·2² + 0·2¹ + 0·2⁰
= 128 + 0 + 0 + 16 + 8 + 4 + 0 + 0 = 156₁₀

Decimal to binary table

DecimalBinary
00
11
210
7111
81000
101010
151111
1610000
42101010
641000000
1001100100
1271111111
25511111111
256100000000
10001111101000
102410000000000

Decimal and binary explained

Decimal is base 10, the everyday number system with the digits 0 to 9. Each position is worth ten times the one to its right.

Binary is base 2: it uses only the digits 0 and 1, and each position is worth twice the one to its right. It is how computers store every number, character and pixel.

Frequently asked questions

Can I convert negative numbers and fractions?

Yes. Put a minus sign in front of a negative number and use a point for the fraction, for example -12.5. A fraction that never ends in binary is cut off after 32 digits.

How large can the number be?

There is no practical limit. The converter uses exact whole-number arithmetic, so even numbers with hundreds of digits are converted without rounding.

Do uppercase and lowercase letters matter?

Not up to base 36: FF and ff are the same hexadecimal number. From base 37 upward, uppercase and lowercase letters are different digits.

Is this tool free?

Yes, it's free to use. No signup, no email required. Get results on this page.

How do I get my result?

Use the tool on this page. Your result appears here; no email delivery is required.