Binary to Decimal Converter
The binary to decimal converter adds the power of 2 for every digit that is 1: 1010 = 8 + 0 + 2 + 0 = 10. It also converts between binary, octal, decimal and hexadecimal in any direction.
Sources: Wikipedia Updated
Digits allowed in each base
- Binary: Uses digits 0-1 (e.g., 1010)
- Octal: Uses digits 0-7 (e.g., 377)
- Decimal: Uses digits 0-9 (e.g., 255)
- Hexadecimal: Uses digits 0-9 and letters A-F (e.g., FF or ff)
How binary to decimal conversion works
Each binary digit stands for a power of 2, starting at 2⁰ = 1 on the right and doubling to the left: 1, 2, 4, 8, 16 and so on. A 1 means that power counts and a 0 means it does not, so the decimal value is the sum of the powers under the 1s.
The converter handles four bases, not only binary to decimal. It reads your input in the "from" base, turns it into a decimal number and writes that number in the "to" base.
How to convert binary to decimal
Set "From" to Binary and "To" to Decimal, then enter 1010.
- Write the place values over the digits from the right: 8, 4, 2, 1.
- Multiply each digit by its place value: 1×8, 0×4, 1×2, 0×1.
- Add the results: 8 + 0 + 2 + 0 = 10.
The tool shows this as 1010 (base 2) → 10 (decimal) → 10 (base 10). The middle number is always the decimal value it passed through, which here is also the answer.
Converting decimal back to binary
To go from 10 back to binary, divide by 2 and keep the remainders: 10 ÷ 2 = 5 r 0, 5 ÷ 2 = 2 r 1, 2 ÷ 2 = 1 r 0, 1 ÷ 2 = 0 r 1. Read upward, the remainders give 1010 again.
The decimal to binary converter writes out each division and also converts fractions such as 10.625.
Binary to decimal chart, 0 to 15
Four bits cover 0 to 15, which is also one hexadecimal digit. The binary to hex converter uses this table one group of four bits at a time.
| Binary | Decimal | Hex | Binary | Decimal | Hex |
|---|---|---|---|---|---|
| 0000 | 0 | 0 | 1000 | 8 | 8 |
| 0001 | 1 | 1 | 1001 | 9 | 9 |
| 0010 | 2 | 2 | 1010 | 10 | A |
| 0011 | 3 | 3 | 1011 | 11 | B |
| 0100 | 4 | 4 | 1100 | 12 | C |
| 0101 | 5 | 5 | 1101 | 13 | D |
| 0110 | 6 | 6 | 1110 | 14 | E |
| 0111 | 7 | 7 | 1111 | 15 | F |
Digits allowed and what the converter does not do
Each base accepts only its own digits: binary 0 and 1, octal 0 to 7, decimal 0 to 9 and hexadecimal 0 to 9 and A to F in either case. A digit outside the set, such as a 2 in binary, gives an error instead of a wrong answer.
The converter works with whole numbers. It has no fractional binary and no two's complement for negative numbers. For hexadecimal input, the hex to decimal converter shows the powers of 16 the same way, and the number system converters page lists every conversion.
Binary to Decimal Converter: FAQ
What is 11111111 in decimal?
255. The eight place values 128, 64, 32, 16, 8, 4, 2 and 1 add up to 255, the largest number one byte can hold.
How many decimal values can n bits hold?
2 to the power n, from 0 to 2ⁿ − 1. Four bits hold 0 to 15, eight bits hold 0 to 255.
Does it handle negative or fractional binary numbers?
No. It converts whole numbers only, without two's complement. For a fraction in the other direction, the decimal to binary converter converts the part after the point.
Sources
- Wikipedia: Binary number — place values as powers of 2 and conversion to and from decimal (checked October 16, 2026)