How do I convert binary to decimal?
Read the binary digits from left to right. Start with a total of zero, double the total for each digit, and add the digit (0 or 1). The final total is the decimal value.
Convert a binary number (base 2) into its decimal (base 10) equivalent. Get an instant result, validate your input, and follow the calculation one bit at a time.
Choose an example to fill the calculator, then select “Convert to decimal.”
0
1
1011
11001010
11111111
100000000
Binary uses place values that are powers of two. To convert a whole binary number to decimal, you can multiply each bit by its corresponding power of two and add the products. For long numbers, the doubling method gives the same result without having to write every power explicitly.
| Bit | Position | Place value | Contribution |
|---|---|---|---|
| 1 | 3 | 23 = 8 | 1 × 8 = 8 |
| 1 | 2 | 22 = 4 | 1 × 4 = 4 |
| 0 | 1 | 21 = 2 | 0 × 2 = 0 |
| 1 | 0 | 20 = 1 | 1 × 1 = 1 |
| Sum of contributions | 8 + 4 + 0 + 1 = 13 | ||
Continue working with binary numbers using these related Binarios.org tools.
Read the binary digits from left to right. Start with a total of zero, double the total for each digit, and add the digit (0 or 1). The final total is the decimal value.
1011₂ equals 11₁₀ because (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰) = 8 + 0 + 2 + 1 = 11.
Yes. This converter accepts up to 512 binary digits and uses decimal-string arithmetic, so the result is not limited to the usual PHP integer range.
Yes. Spaces, line breaks, underscores, and an optional leading 0b prefix are removed before validation. All remaining characters must be 0 or 1.
This tool treats the input as an unsigned binary integer. For signed two’s-complement interpretation, the bit width must be known and the sign bit must be interpreted accordingly.