Binary to Decimal: How to Convert, With Chart and Examples
Convert binary to decimal by adding the place values (1, 2, 4, 8, 16...) wherever a 1 appears. Step-by-step method, a doubling shortcut and a 0 to 15 chart.
Updated
To convert binary to decimal, give each binary digit a place value that doubles from right to left (1, 2, 4, 8, 16 and so on), then add the place values wherever the digit is 1. For example, 1011 is 8 + 0 + 2 + 1, which equals 11. The same method works for a binary number of any length.
How binary place values work
Decimal is base 10. Each position is worth ten times the one to its right: ones, tens, hundreds. Binary is base 2, so each position is worth twice the one to its right: ones, twos, fours, eights.
In decimal, 3,052 means 3 thousands, 0 hundreds, 5 tens and 2 ones. In binary, 1011 means 1 eight, 0 fours, 1 two and 1 one. Because a binary digit (a bit) can only be 0 or 1, there is no multiplying to do. Each place value is either counted or skipped.
The positional method, step by step
- Write the binary number down.
- Under the rightmost digit write 1. Moving left, double each time: 2, 4, 8, 16, 32, 64, 128.
- Cross out every place value that sits under a 0.
- Add the place values that are left.
Worked example: convert 11010110.
| Bit | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Place value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| Counted | 128 | 64 | 0 | 16 | 0 | 4 | 2 | 0 |
Add the bottom row: 128 + 64 + 16 + 4 + 2 = 214. So 11010110 in binary is 214 in decimal.
As a formula, the value is the sum of each bit multiplied by 2 raised to its position, counting positions from 0 on the right. For 1011 that is 1×2^3 + 0×2^2 + 1×2^1 + 1×2^0, which gives 8 + 0 + 2 + 1 = 11.
The doubling shortcut
For long numbers there is a method that needs no place value table. Read the bits from left to right, keeping a running total that starts at 0. For each bit, double the total and add the bit.
For 1011:
- Start with 0. Double it and add the first bit, 1: total is 1.
- Double to 2 and add the next bit, 0: total is 2.
- Double to 4 and add the next bit, 1: total is 5.
- Double to 10 and add the last bit, 1: total is 11.
Same answer, and you never need to know what the 2 to the power 11 column is worth. This is also how most programs parse a binary string.
Binary to decimal chart
The sixteen values that fit in four bits are worth memorizing, because long binary numbers are usually read in groups of four.
| Binary | Decimal | Binary | Decimal |
|---|---|---|---|
0000 | 0 | 1000 | 8 |
0001 | 1 | 1001 | 9 |
0010 | 2 | 1010 | 10 |
0011 | 3 | 1011 | 11 |
0100 | 4 | 1100 | 12 |
0101 | 5 | 1101 | 13 |
0110 | 6 | 1110 | 14 |
0111 | 7 | 1111 | 15 |
A few larger landmarks:
| Binary | Decimal |
|---|---|
10000 | 16 |
100000 | 32 |
1000000 | 64 |
1100100 | 100 |
10000000 | 128 |
11111111 | 255 |
100000000 | 256 |
1111101000 | 1,000 |
10000000000 | 1,024 |
Two patterns help when checking your work. A 1 followed only by zeros is always a power of two. A run made only of ones is always one less than the next power of two, so 1111 is 15 and 11111111 is 255. And any binary number ending in 1 is odd.
Signed binary numbers
The method above treats the number as unsigned, meaning zero or positive. Computers also store negative numbers, most often in two's complement. In that scheme the leftmost bit of a fixed-width value carries a negative weight.
For an 8-bit value, the leftmost bit is worth -128 instead of 128. Take 11010110 again. Unsigned, it is 214. As a signed 8-bit number it is -128 + 64 + 16 + 4 + 2, which equals -42. A shortcut: if the top bit is 1, work out the unsigned value and subtract 256 (for 8 bits), 65,536 (for 16 bits) or 4,294,967,296 (for 32 bits).
Which reading is right depends entirely on how the program that stored the bits declared them. The bits themselves do not say.
Binary fractions
Bits to the right of a binary point continue the pattern downward: one half, one quarter, one eighth, one sixteenth. So 0.101 is 0.5 + 0.125 = 0.625, and 110.11 is 4 + 2 + 0.5 + 0.25 = 6.75.
Using the converter
The Number Base Converter has four linked fields: binary, octal, decimal and hexadecimal. Type a binary number into the binary field and the decimal value appears as you type, along with the octal and hex forms. Spaces between groups are fine, so you can paste 1101 0110 as is.
A side panel shows the bit length, the unsigned and signed 32-bit readings, and the value padded out to 8, 16 and 32 bits. The converter works with whole numbers up to 32 bits, which means a maximum of 4,294,967,295. It does not take binary fractions, so use the halves and quarters method above for those.
Related guides
Going the other way uses division instead of addition: see Decimal to Binary. If you want to turn binary into letters instead of numbers, How to Read Binary covers bytes and ASCII text. And because every four bits map to one hex digit, What Is Hexadecimal shows the shorter way programmers write the same values.
Try it
Paste 11010110 into the binary field of the Number Base Converter and check that the decimal field reads 214. Then edit one bit at a time and watch the decimal value jump by that bit's place value. It is the fastest way to make the doubling pattern stick.