Binary to Decimal
101010 (binary) = 42 (decimal)
Result (decimal)
42
101010 in binary is 42 in decimal. Each binary digit is a power of 2, which is why computers, networking and digital electronics use it. For other values, use the Number Converter.
How it works
Decimal = sum of (digit × 2^position), counting positions from 0 on the right
Binary to decimal table
| Binary | Decimal |
|---|---|
| 1 | 1 |
| 10 | 2 |
| 101 | 5 |
| 1010 | 10 |
| 1111 | 15 |
| 10000 | 16 |
| 11111111 | 255 |
| 100000000 | 256 |
Frequently asked questions
What is 1111 in decimal?
1111 in binary is 15 (8 + 4 + 2 + 1).
How do I convert binary to decimal by hand?
Write the powers of 2 under the digits from the right (1, 2, 4, 8 …) and add the powers where the digit is 1.
What is 11111111 in decimal?
11111111 in binary is 255, the largest value one byte can hold.