Decimal to Binary Converter
Convert a whole number into binary, the base-2 form computers use.
Jump to toolWhat Is Decimal to Binary Conversion?
Decimal to binary conversion writes an ordinary number in base 2, the form computers use internally. One way to do it by hand is to divide by two repeatedly and read the remainders from bottom to top: 10 becomes 1010.
Enter a non-negative whole number and the tool returns its binary form.
How to Convert Decimal to Binary
- Enter a whole number, such as 45, under Enter decimal number.
- Read the result under Binary output: 101101 for this example.
- Select Copy binary or Download to keep it.
Worked Example: 45
Divide by two until you reach zero, then read the remainders from bottom to top: 101101.
| Divide by 2 | Remainder |
|---|---|
| 45 ÷ 2 = 22 | 1 |
| 22 ÷ 2 = 11 | 0 |
| 11 ÷ 2 = 5 | 1 |
| 5 ÷ 2 = 2 | 1 |
| 2 ÷ 2 = 1 | 0 |
| 1 ÷ 2 = 0 | 1 |
Common Values
| Decimal | Binary |
|---|---|
| 8 | 1000 |
| 10 | 1010 |
| 100 | 1100100 |
| 255 | 11111111 |
| 1024 | 10000000000 |
Where Binary Shows Up
Binary is used for subnet masks, file permissions, bit flags in programming and digital electronics. Each extra binary digit doubles the largest number you can write.
Decimal to Binary Converter FAQ
Convert binary back to decimal
Check your answer the other way round.
Related Tools
Tools that often come next after this one