Binary to Decimal Converter
Convert any binary number to decimal. Binary is the 0-and-1 language of computers, and decimal is the everyday number system — this converter translates between them. Type a binary number (only 0s and 1s) and the decimal answer appears instantly.
How to use this converter
Type a binary number using only 0 and 1, with decimal as the target base. The decimal result appears instantly. For decimal to binary, use our decimal to binary converter.
Formula
Add the place values of the 1s: 1010 = 8 + 0 + 2 + 0 = 10. Place values from the right: 1, 2, 4, 8, 16, 32, 64, 128. Example: 11111111 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255.
The method: add the place values of the 1s. In 1010, the 1s sit in the 8s place and the 2s place, so 8 + 2 = 10. Each place is double the one before it: 1, 2, 4, 8, 16, 32, 64, 128, and so on. This converter shows the result for binary numbers of any length.
Binary to decimal examples
| From | Equals |
|---|---|
| 1010 | 10 |
| 11111111 | 255 |
| 1000000 | 64 |
| 1100100 | 100 |
| 111 | 7 |
| 101010 | 42 |
| 1 | 1 |
| 0 | 0 |
Frequently asked questions
How do I convert binary to decimal?
Add the place values of the 1s, from the right: 1, 2, 4, 8, 16… For 1010, the 1s are in the 8s and 2s places, so 8 + 2 = 10.
What is a bit?
A single binary digit — 0 or 1. It is the smallest unit of computer data. Eight bits make a byte.
Why do computers use binary?
Because a switch can only be on or off — two states, 0 and 1. Binary maps directly onto transistors, which is why all computer data is binary at the lowest level.
How many binary digits make a byte?
8. A byte holds 0–255 in decimal, or 00–FF in hexadecimal.