Decimal to Binary Calculator
Enter a decimal integer to convert it to binary.
How to Convert Decimal to Binary
Method: repeated division by 2
- Divide the number by 2. Note the remainder (0 or 1).
- Repeat with the quotient until it reaches 0.
- Read remainders from bottom to top — that is the binary result.
Example: 42 → 21 R0 → 10 R1 → 5 R0 → 2 R1 → 1 R0 → 0 R1 → 101010
Quick reference
| Decimal | Binary | Hex |
|---|---|---|
| 1 | 1 | 1 |
| 8 | 1000 | 8 |
| 10 | 1010 | A |
| 16 | 10000 | 10 |
| 255 | 11111111 | FF |
