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:

StepNumber ÷ 2QuotientRemainder
142 ÷ 2210
221 ÷ 2101
310 ÷ 250
45 ÷ 221
52 ÷ 210
61 ÷ 201

Reading remainders from bottom to top: 101010

Common Conversions

10

= 1010

100

= 1100100

255

= 11111111

1000

= 1111101000