How to convert Binary to Decimal
Binary is a positional system with place values that are powers of 2. To convert to decimal, multiply each digit by its place value — 2⁰ for the rightmost digit, 2¹ for the next, and so on — then add everything up.
Worked example
Convert 101101 (binary) to decimal:
- Write out the place values:
101101= 1×32 + 0×16 + 1×8 + 1×4 + 0×2 + 1×1 - Add them up:
45
So 101101 in binary is 45 in decimal.
Binary to Decimal conversion 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 |
Frequently asked questions
- Can this handle numbers larger than 64 bits?
- Yes. Conversion runs on arbitrary-precision integers, so numbers of any length convert exactly. Many online converters silently lose precision above 2⁵³ (about 16 decimal digits) — this one doesn't.
- How do I convert negative numbers?
- A leading minus sign works in every base. For the bit-pattern view programmers usually want, switch the mode to two's complement at 8, 16, 32, or 64 bits — then binary, octal, and hex show the bit pattern while decimal shows the signed value.
- Can I convert the other way, or to other bases?
- Use the Decimal to Binary converter, or just change the From/To dropdowns above — every common base is shown at once anyway, and a Text mode converts ASCII to bytes and back.
Need arithmetic rather than conversion — adding hex numbers, shifting bits, masking? Use the programmer's calculator.