Binary to Decimal
Each binary digit (bit) is worth a power of 2: 1, 2, 4, 8, 16 and so on from the right. Add the values of the 1 bits to get the decimal number.
Binary
1101Octal
15Decimal
13Hexadecimal
DShow the working
| Digit | Value | Place value | Digit × place value |
|---|---|---|---|
| 1 | 1 | 23 | 8 |
| 1 | 1 | 22 | 4 |
| 0 | 0 | 21 | 0 |
| 1 | 1 | 20 | 1 |
| Add them up | 13 | ||
Binary to decimal table
| Binary | Decimal |
|---|---|
0 | 0 |
1 | 1 |
10 | 2 |
11 | 3 |
100 | 4 |
101 | 5 |
110 | 6 |
111 | 7 |
1000 | 8 |
1001 | 9 |
1010 | 10 |
1111 | 15 |
1 0000 | 16 |
10 0000 | 32 |
100 0000 | 64 |
111 1111 | 127 |
1000 0000 | 128 |
1111 1111 | 255 |
1 0000 0000 | 256 |
11 1111 1111 | 1,023 |
How it works
- Number the positions from the right starting at 0. A 1 in position n is worth 2 to the power n.
- Add up the values of the positions that hold a 1; positions with 0 add nothing.
- Example: 1101 = 8 + 4 + 0 + 1 = 13.
Frequently asked questions
What is 11111111 in decimal?
255: the sum 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1, the largest 8-bit value.
How many values can 8 bits hold?
2 to the power 8 = 256 values, from 0 to 255.
Calculations run in your browser. Nothing you enter is sent anywhere or added to a searchable page address. How we calculate