Decimal to Binary Converter
Convert decimal numbers to binary. See step-by-step conversion process.
Decimal: 42
101010
Binary
All Conversions
101010
Binary
52
Octal
0x2A
Hexadecimal
Conversion Steps
Divide by 2 repeatedly, collect remainders from bottom to top:
| Step | Number ÷ 2 | Quotient | Remainder |
|---|---|---|---|
| 1 | 42 ÷ 2 | 21 | 0 |
| 2 | 21 ÷ 2 | 10 | 1 |
| 3 | 10 ÷ 2 | 5 | 0 |
| 4 | 5 ÷ 2 | 2 | 1 |
| 5 | 2 ÷ 2 | 1 | 0 |
| 6 | 1 ÷ 2 | 0 | 1 |
Reading remainders from bottom to top: 101010
Common Conversions
10
= 1010
100
= 1100100
255
= 11111111
1000
= 1111101000