Free · No signup · Runs in your browser
Binary to Decimal Converter
Paste a binary number and get its decimal value. Handles very long numbers, fractions and 0b prefixes, and shows each power of 2.
This tool needs JavaScript. Please enable it in your browser to use it.
- Instant results as you type
- Step-by-step working
- Private: input stays in your browser
- Free, no signup
To convert binary to decimal, multiply each bit by its power of 2 (1, 2, 4, 8, 16 and so on, from the right) and add the results. For 1011, that is 8 + 0 + 2 + 1 = 11.
How to use the binary to decimal converter
- Enter a binary number such as
101010or1101.101. Spaces and a 0b prefix are ignored. - The decimal value appears instantly, with hex and octal for whole numbers.
- Open Show the steps to see every bit multiplied by its place value.
Examples
| Binary | Decimal |
|---|---|
| 1 | 1 |
| 101 | 5 |
| 1010 | 10 |
| 101010 | 42 |
| 11111111 | 255 |
| 100000000 | 256 |
| 1111101000 | 1000 |
The place-value method
Each position in a binary number is worth twice the one to its right. Take 10110101:
| Position | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 |
| Place value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| Adds | 128 | 0 | 32 | 16 | 0 | 4 | 0 | 1 |
Add the contributions: 128 + 32 + 16 + 4 + 1 = 181. So 10110101 in binary is 181 in decimal.
Binary fractions
After the point, the place values are halves: 1/2, 1/4, 1/8 and so on. 101.101 is 4 + 1 + 0.5 + 0.125 = 5.625. The tool computes these exactly, without rounding errors.
Quick reference: powers of 2
| Power | Value | Binary |
|---|---|---|
| 2^0 | 1 | 1 |
| 2^1 | 2 | 10 |
| 2^2 | 4 | 100 |
| 2^3 | 8 | 1000 |
| 2^4 | 16 | 10000 |
| 2^5 | 32 | 100000 |
| 2^6 | 64 | 1000000 |
| 2^7 | 128 | 10000000 |
| 2^8 | 256 | 100000000 |
| 2^9 | 512 | 1000000000 |
| 2^10 | 1024 | 10000000000 |
| 2^16 | 65536 | 10000000000000000 |
Signed binary
This tool reads the input as an unsigned number. If your binary is a signed value in two’s complement (for example 11111011 meaning -5), use the two’s complement calculator, which lets you pick the bit width.
To go from decimal back to binary, use the decimal to binary converter.
Binary to decimal converter FAQ
What is 1010 in decimal?
1010 in binary is 10 in decimal (8 + 2).
What is 11111111 in decimal?
Eight ones in binary equal 255, the largest value of one byte.
How do I convert a long binary number?
Paste it as is. The tool uses arbitrary-precision arithmetic, so there is no 32- or 64-bit limit.
Why does my binary show an error?
Binary only contains 0 and 1. If you see a 2 to 9 or a letter, the number is in another base; for example hexadecimal can be checked with the hex to binary converter.
Does the order of bits matter?
Yes. The leftmost bit is the most significant. Reversing the string gives a different number.
