StartupAI Tools
Back to Tools

Decimal to Binary Converter

Convert base-10 decimal integers to binary numbers (Base 2) with a step-by-step division trace.

Decimal to Binary Calculator

Binary Value (Base 2)

101010

Repeated Division-by-2 Trace

To convert a decimal integer, divide it repeatedly by 2 and track the remainders. Read remainders from bottom to top:

DivisionQuotientRemainder
42 ÷ 2210
21 ÷ 2101
10 ÷ 250
5 ÷ 221
2 ÷ 210
1 ÷ 201
Binary string (reverse remainders order): 101010

How to convert decimal to binary manually

Converting decimal values to binary is historically done using the **repeated division-by-2** method:

  1. Divide your decimal integer by 2.
  2. Note the quotient (result without decimals) and the remainder (which will always be either 0 or 1).
  3. Repeat the division using the quotient as the new number.
  4. Continue this process until your quotient becomes 0.
  5. Write down the list of remainders in reverse order (from your last division to your first division).

For example, converting 13:

  • 13 ÷ 2 = 6 with remainder 1
  • 6 ÷ 2 = 3 with remainder 0
  • 3 ÷ 2 = 1 with remainder 1
  • 1 ÷ 2 = 0 with remainder 1

Writing remainders backward gives 1101.