Decimal to Binary Converter
Convert any decimal number to binary — the language of computers, where everything is 0s and 1s. Type a decimal number, and the binary answer appears instantly. Binary is how computers store numbers, text, photos and programs: each digit is one bit, and 8 bits make a byte.
How to use this converter
Type a decimal number (0–9 digits only) and pick binary as the target base. The binary result appears instantly. To convert the other way, use our binary to decimal converter.
Formula
Divide by 2 repeatedly and read the remainders backwards. Example: 10 = 1010, 255 = 11111111, 42 = 101010, 100 = 1100100. One byte (8 bits) holds 0–255 in decimal.
The method is simple: divide by 2 again and again, and read the remainders backwards. 10 ÷ 2 = 5 remainder 0, 5 ÷ 2 = 2 remainder 1, 2 ÷ 2 = 1 remainder 0, 1 ÷ 2 = 0 remainder 1 — reading the remainders backwards gives 1010. This converter does it for you, for numbers of any size.
Decimal to binary examples
| From | Equals |
|---|---|
| 10 | 1010 |
| 255 | 11111111 |
| 64 | 1000000 |
| 100 | 1100100 |
| 7 | 111 |
| 42 | 101010 |
| 1 | 1 |
| 0 | 0 |
Frequently asked questions
How do I convert decimal to binary?
Divide by 2 repeatedly and write down each remainder; then read the remainders backwards. For 10: remainders 0, 1, 0, 1 → backwards 1010.
What is binary?
The base-2 number system, using only 0 and 1. It is how computers store everything: each digit is one bit.
How many bits are in a byte?
8 bits. A byte holds decimal numbers from 0 to 255.
What is the largest number in 8 bits?
255 — binary 11111111. In 16 bits it is 65,535.