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:
| Division | Quotient | Remainder |
|---|---|---|
| 42 ÷ 2 | 21 | 0 |
| 21 ÷ 2 | 10 | 1 |
| 10 ÷ 2 | 5 | 0 |
| 5 ÷ 2 | 2 | 1 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
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:
- Divide your decimal integer by 2.
- Note the quotient (result without decimals) and the remainder (which will always be either 0 or 1).
- Repeat the division using the quotient as the new number.
- Continue this process until your quotient becomes 0.
- Write down the list of remainders in reverse order (from your last division to your first division).
For example, converting 13:
13 ÷ 2 = 6with remainder 16 ÷ 2 = 3with remainder 03 ÷ 2 = 1with remainder 11 ÷ 2 = 0with remainder 1
Writing remainders backward gives 1101.