How to convert binary to decimal
Multiply each digit by its place value (powers of 2) and add them up. For 1011110011:
1 × 2^9 + 0 × 2^8 + 1 × 2^7 + 1 × 2^6 + 1 × 2^5 + 1 × 2^4 + 0 × 2^3 + 0 × 2^2 + 1 × 2^1 + 1 × 2^0 = 512 + 0 + 128 + 64 + 32 + 16 + 0 + 0 + 2 + 1 = 755
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 |
10000 | 16 |
100000 | 32 |
1000000 | 64 |
1100100 | 100 |
1111111 | 127 |
10000000 | 128 |
11111111 | 255 |
100000000 | 256 |
10000000000 | 1024 |
1000000000000 | 4096 |
1111111111111111 | 65535 |
FAQ
How are negative numbers converted?
Without a bit width, the sign is kept: −255 becomes −FF. Choose a bit width and turn on Signed to use two's complement, the way computers store negative numbers: −1 in 8 bits is FF.
Is there a size limit?
No practical one. Arbitrary-precision integers (BigInt) convert even 100-digit numbers exactly. Fractions aren't supported.
Can I paste 0x, 0b or 0o prefixes, spaces or underscores?
Yes. Prefixes are recognized, and spaces or underscores between digits (like 1111_0000) are ignored. Put several numbers on separate lines to convert them all at once.
Is my data uploaded?
No. Everything is converted in your browser. Privacy