Binary to decimal formula
For a binary number with digits bn … b1 b0:
decimal = bn×2n + … + b1×21 + b0×20
Because every digit is 0 or 1, you just add the place values wherever there is a 1.
| Place | 2⁷ | 2⁶ | 2⁵ | 2⁴ | 2³ | 2² | 2¹ | 2⁰ |
|---|---|---|---|---|---|---|---|---|
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Worked examples
| Binary | Working | Decimal |
|---|---|---|
10 | 2 | 2 |
11 | 2 + 1 | 3 |
100 | 4 | 4 |
101 | 4 + 1 | 5 |
1001 | 8 + 1 | 9 |
1010 | 8 + 2 | 10 |
1101 | 8 + 4 + 1 | 13 |
0110 | 4 + 2 | 6 |
11111111 | 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 | 255 |
Need more? See the full binary numbers table 0–255.
Shortcut: the doubling method
Read left to right. Start at 0; for each digit, double your total and add the digit.
1101: 0×2+1 = 1 → 1×2+1 = 3 → 3×2+0 = 6 → 6×2+1 = 13.
This is the method most programmers use in their heads, and it works for any length without memorising powers of two.
Frequently asked questions
What is 1010 in decimal?
1010 in binary is 10 in decimal: 1×8 + 0×4 + 1×2 + 0×1 = 10.
What is 11111111 in decimal?
255. It is the largest number one byte (8 bits) can hold: 128+64+32+16+8+4+2+1.
How do you convert binary to decimal by hand?
Write the place values 1, 2, 4, 8, 16 … under the digits from right to left, then add up the place values that sit under a 1.
Can it convert very long binary numbers?
Yes. The converter uses arbitrary-precision integers, so 64-bit, 128-bit or longer binary numbers convert exactly.
Keep going
Last reviewed 28 November 2026. Conversions run entirely in your browser.