- Home
- Tools
- Math
- Number Base Converter
- Binary to Decimal Converter
Binary to Decimal Converter
Type a binary number and read its decimal value. The working shows what every 1 and 0 counts for.
Type a binary number in the first field and read it in decimal in the second. It works the other way round as well. Whole numbers only; spaces, underscores and the prefixes 0b, 0o and 0x are fine.
Working
| Digit | Place value | Counts for |
|---|---|---|
| 1 | 32 | 32 |
| 0 | 16 | 0 |
| 1 | 8 | 8 |
| 1 | 4 | 4 |
| 0 | 2 | 0 |
| 1 | 1 | 1 |
32 + 8 + 4 + 1 = 45
Other bases
- Bit length
- 6 bits
- Fits in
- 1 byte
How to convert binary to decimal by hand
Every place in a binary number is worth twice the place to its right. Counted from the right-hand end, the places are worth 1, 2, 4, 8, 16, 32 and so on.
Write those values above the digits and add up the ones that stand above a 1. A 0 adds nothing. For 101101 the places are worth 32, 16, 8, 4, 2 and 1, and four of them hold a 1: 32 + 8 + 4 + 1 = 45.
A second way needs no list of powers. Start with 0 and go through the digits from left to right, each time doubling what you have and adding the digit. For 101101 that runs 1, 2, 5, 11, 22, 45.
The working under the two fields at the top of the page does this for whatever number you type.
Good to know
- The right-hand digit is worth 1, not 2. Starting the count at 2 is the most common slip, and it makes every answer twice too large.
- A binary number that ends in 1 is odd, and one that ends in 0 is even.
- A row of ones is one less than the next place value: 1111 is 15 and 11111111 is 255, the largest value of a byte.
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 |
| 1011 | 11 |
| 1100 | 12 |
| 1101 | 13 |
| 1110 | 14 |
| 1111 | 15 |
| 1 0000 | 16 |
| Binary | Decimal |
|---|---|
| 1 0100 | 20 |
| 10 0000 | 32 |
| 11 0010 | 50 |
| 100 0000 | 64 |
| 110 0100 | 100 |
| 111 1111 | 127 |
| 1000 0000 | 128 |
| 1100 1000 | 200 |
| 1111 1111 | 255 |
| 1 0000 0000 | 256 |
| 1 1111 0100 | 500 |
| 10 0000 0000 | 512 |
| 11 1110 1000 | 1000 |
| 100 0000 0000 | 1024 |
| 1 0000 0000 0000 | 4096 |
| 1111 1111 1111 1111 | 65535 |
The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.