Base-10 to base-2

Decimal to Binary Converter

Enter a whole decimal number and convert it to binary with a readable remainder-by-remainder breakdown.

Binary-
Hex-
Bits-

Step-by-step conversion

Enter a decimal number to see the division-by-two steps.

Decimal to binary method

Decimal is base-10, while binary is base-2. To convert a decimal number to binary, repeatedly divide the number by 2 and record the remainder from each division. When the quotient reaches zero, read the remainders in reverse order to get the binary value.

For example, decimal 42 produces the remainders that form 101010. The same value can also be checked from the other direction by adding active powers of two: 32 + 8 + 2 = 42.

DecimalBinaryHex
111
2102
101010A
161000010
421010102A
25511111111FF

Related converters