Step-by-step conversion
Enter a decimal number to see the division-by-two steps.
Base-10 to base-2
Enter a whole decimal number and convert it to binary with a readable remainder-by-remainder breakdown.
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.
| Decimal | Binary | Hex |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 10 | 1010 | A |
| 16 | 10000 | 10 |
| 42 | 101010 | 2A |
| 255 | 11111111 | FF |