Positional notation is the single most useful idea in number systems, and binary shows it in its purest form: a number whose digits are only 0 and 1, where each position doubles the weight of the one to its right. This tool converts any binary number to decimal live as you type, supporting integers far beyond what a handheld calculator can hold, and it runs entirely in your browser so nothing you paste goes anywhere.
The tool treats your input as one number, not text. That distinction matters: the binary string 1100001 is evaluated as the single value 97, whereas a text-oriented converter reading the eight separate bytes 00110001 00110000 00110000 00110000 00110001 would be decoding the characters of the string itself. If your goal is decoding byte streams into characters, use the binary-to-text tool; if your goal is evaluating a binary number, this is the right page.
Input is forgiving about whitespace: 1101 0110 is accepted and evaluated as one number, 11010110, which is 214. Invalid characters, such as a 2 or a letter, produce a named error rather than a guessed value, because a silent wrong answer in homework or a netmask calculation is worse than a loud refusal.
What Is Positional Notation?
Every number system you have used since childhood is positional: the digit 5 in 555 means fifty, five, or five-hundred depending on where it sits. Binary works the same way with base 2. Each position carries a weight, and moving left doubles it. The first eight positions, right to left, are 1, 2, 4, 8, 16, 32, 64, and 128. To evaluate a binary number, add up the weights of the positions where a 1 appears; positions with 0 contribute nothing.
The weights form the table worth memorizing, because it turns every conversion into addition:
| Bit position (from right) | Weight | Cumulative max (all 1s so far) |
|---|---|---|
| 1st | 1 | 1 |
| 2nd | 2 | 3 |
| 3rd | 4 | 7 |
| 4th | 8 | 15 |
| 5th | 16 | 31 |
| 6th | 32 | 63 |
| 7th | 64 | 127 |
| 8th | 128 | 255 |
| 10th | 512 | 1023 |
| 16th | 32768 | 65535 |
The right column has a clean rule: an N-bit number filled with 1s equals 2 to the N minus 1. Eight set bits equal 255, ten equal 1023, sixteen equal 65535. Spotting that pattern instantly tells you the maximum value of any register width, which is why the numbers 255, 1023, 4095, and 65535 recur constantly in hardware documentation.
How to Use This Tool (Step by Step)
- Type or paste your binary number. Spaces between bit groups are tolerated and stripped; a 0x prefix is not needed here.
- The decimal value updates live on every keystroke, so you can watch it grow as you add digits.
- If the input contains anything besides 0 and 1, an error message identifies the invalid character; fix it and the conversion resumes.
- Copy the result with one click, or verify with a round trip through the decimal-to-binary tool.
Worked Examples
One full evaluation, spelled out. Take 11011010. Reading the weights left to right: the first bit contributes 128, the second 64, then skip two zeros, contribute 16, then 8, skip the next, contribute 2, and the final 0 adds nothing. The sum is 128 plus 64 plus 16 plus 8 plus 2, which equals 218. That is the entire method, and the tool applies it identically whether the number is 4 bits or 400.
| Binary input | Set-position weights | Decimal |
|---|---|---|
| 1010 | 8 + 2 | 10 |
| 11111111 | 128+64+32+16+8+4+2+1 | 255 |
| 10000000 | 128 | 128 |
| 111111111111 | 2048 down to 1, all twelve | 4095 |
| 0000001 0000000 (with space) | treated as 10000001 | 129 |
The last row shows the whitespace rule in action: spaces are formatting, not separators of separate values, so spaced groups are concatenated before evaluation.
How the Conversion Works Internally
Conceptually the tool performs the weighted sum described above. Internally, for long inputs it uses the doubling walk: start with an accumulator at 0, and for each bit from left to right, double the accumulator and add the bit. For 1101: start 0, double to 0 plus 1 is 1; double to 2 plus 1 is 3; double to 6 plus 0 is 6; double to 12 plus 1 is 13. Same answer as the weighted sum, but the doubling form needs no precomputed table and extends naturally to arbitrary precision.
Arbitrary precision is what makes large inputs exact. JavaScript's BigInt arithmetic represents numbers as flexible digit arrays rather than fixed-width registers, so a 60-bit binary input evaluates to its true value, around 1.15 quintillion, without silently wrapping the way 32-bit arithmetic would. Overflow bugs of exactly that kind have caused real outages in production systems; a converter that refuses to approximate is the right tool for checking such values.
Common Use Cases
- Subnetting practice: certification exams drill netmask conversion relentlessly; evaluating 11111111 11111111 11111000 00000000 as 2147483648 plus its lower set bits, or simply recognizing the mask's structure, is daily work for network engineers.
- DNS and addressing trivia: IPv4 addresses are 32-bit numbers; converting an octet's bits to decimal is how you connect a binary mask like 11111111 to its dotted notation 255.
- Coursework verification: number-system homework lives and dies by this conversion, and checking your weighted sums takes seconds.
- Reading hardware docs: register descriptions list bit positions; converting candidate patterns to decimal gives you the constants to write in code.
- Understanding sensor ranges: a 10-bit ADC spans 0 to 1023 and a 12-bit one spans 0 to 4095; those limits come directly from the all-1s rule in the table above.
Binary-to-Decimal Versus Binary-to-Hex
Both tools start from the same bits but serve different habits. Decimal gives you the value in the notation you think in, which is right for arithmetic, spreadsheet checks, and comparing against constants in code. Hex compresses the bits for bit-level work, since every 4 bits become one character with no arithmetic at all. A useful discipline when learning: convert one number both ways and verify consistency, for example 11010110 is decimal 214 and hex D6, and indeed 13 times 16 plus 6 is 214. The two tools agree because they must, and watching them agree builds the intuition that all bases are just names for the same quantity.
Tips and Best Practices
- Count bits before comparing: values that fit in 8, 16, 32, or 64 bits have different ceilings; a result above 255 cannot live in one byte no matter how it is stored.
- Use the all-1s shortcut for validation: an N-bit string of all 1s must evaluate to 2 to the N minus 1; any other result means a miscount.
- Watch leading zeros: they do not change the value but they do change the implied width, which matters in fixed-register contexts.
- Round-trip anything critical: paste the decimal result back into the decimal-to-binary tool; exact bit-for-bit recovery is the cheapest possible correctness proof.
- Keep the doubling walk in your pocket: for numbers up to 8 bits it is faster than a table lookup and works anywhere, including exams without calculators.