How to use Binary to Decimal
- Type or paste your binary number, for example 1010 or 1111 0000.
- Read the decimal value in the result box.
- Check the table for the same number in octal and hexadecimal.
- Click Copy to copy the decimal value.
Features
- Accepts spaces, underscores and a 0b prefix
- Exact for long binary numbers, even beyond 64 bits
- Also shows the value in octal and hexadecimal
- Clear message when a digit is not 0 or 1
- Runs in your browser, so nothing is uploaded
Supported formats and limits
- Maximum input: 10,000,000 characters
Examples
| Input | Result |
|---|---|
| 1010 | 10 |
| 11111111 | 255 |
| 1 0000 0000 | 256 — Spaces are ignored. |
| 102 | Error: "2" is not a valid digit in base 2. |
Limitations
- Only whole binary numbers are supported, with no binary point.
- Negative values need a minus sign; two’s complement notation is not interpreted.
- Input is limited to 5,000 digits.
Learn more
Binary is the base-2 number system, which uses only the digits 0 and 1. Each position is worth a power of two: from the right, 1, 2, 4, 8, 16 and so on. The decimal value of a binary number is the sum of the powers of two where there is a 1.
For example, 1101 has ones in the 8, 4 and 1 positions, so its value is 8 + 4 + 1 = 13. Eight bits make a byte and can represent the values 0 to 255, which is why 11111111 converts to 255.
Computers use binary because electronic circuits can reliably be in one of two states. People more often read values in decimal, or in hexadecimal as a compact form of binary, so converting between them is a routine task in programming, networking and electronics.
Frequently asked questions
How do I convert binary to decimal by hand?
Multiply each bit by 2 raised to its position, counting from 0 on the right, and add the results. For 1010 that is 1×8 + 0×4 + 1×2 + 0×1 = 10.
Can I include spaces?
Yes. Spaces and underscores are ignored, so you can paste 1111 0000 or 1111_0000.
What is the largest binary number it accepts?
Up to 5,000 digits. Values are exact, with no 64-bit limit.
Is my input uploaded?
No. The conversion runs in your browser.
Sources
Last reviewed: September 30, 2026