Binary to Decimal
Tool processing runs in your browser — your pastes/files are not uploaded to our servers for processing. Ads (if shown) load separately and do not receive your tool inputs.Advertising · Details
Quick answer
To convert binary to decimal, add the place values (1, 2, 4, 8, 16 …) wherever the digit is 1 — for example 1010 = 10. TryDevSnip's converter does it instantly and exactly, even for long bit strings, all in your browser.
Binary to decimal chart
| Binary | Decimal |
|---|---|
| 1 | 1 |
| 10 | 2 |
| 100 | 4 |
| 1000 | 8 |
| 1010 | 10 |
| 1111 | 15 |
| 10000 | 16 |
| 100000 | 32 |
| 1100100 | 100 |
| 11111111 | 255 |
Reverse or related: decimal to binary · hex to decimal · decimal to hex · all bases
Worked example: 0b1011
Every positional number system works the same way — each digit is multiplied by the base raised to its position, counting from zero on the right. For 0b1011 in binary:
| Digit | Place | Weight | Contribution |
|---|---|---|---|
| 1 | 23 | 8 | 8 |
| 0 | 22 | 4 | 0 |
| 1 | 21 | 2 | 2 |
| 1 | 20 | 1 | 1 |
| Total (decimal) | 11 | ||
Written in decimal that is 11.
Quick reference
| Decimal | binary | decimal |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 4 | 100 | 4 |
| 8 | 1000 | 8 |
| 10 | 1010 | 10 |
| 16 | 10000 | 16 |
| 32 | 100000 | 32 |
| 64 | 1000000 | 64 |
| 100 | 1100100 | 100 |
| 128 | 10000000 | 128 |
| 255 | 11111111 | 255 |
| 256 | 100000000 | 256 |
Things that trip people up
- Prefixes are notation, not value.
0b1010,0o12,0xAand10can all denote the same quantity. Strip the prefix before parsing, or tell the parser which base you meant. - Leading zeros can change the base. In several languages a leading
0historically meant octal, so010parsed as 8 rather than 10. Passing an explicit radix avoids the whole class of bug. - Hex letters are case-insensitive.
0xffand0xFFare the same number; only presentation differs. - Grouping is for humans. Binary is usually read in nibbles of four (
1111 1111) because each nibble maps to exactly one hex digit — which is why hex is the usual shorthand for binary data.
Frequently asked questions
How do I convert binary to decimal?
Give each binary digit a place value that doubles from right (1, 2, 4, 8, 16 …) and add the values where the digit is 1. For example 1010 = 8 + 2 = 10. Or paste it into the converter and read the decimal instantly.
What is 11111111 in decimal?
11111111 (binary) is 255 in decimal — eight 1-bits, the maximum value of one byte.
Does it handle long binary strings?
Yes. The converter uses BigInt, so 64-bit and longer binary values convert to exact decimals with no rounding.
Is my input uploaded?
No. TryDevSnip converts locally in your browser. Nothing you type is uploaded to our servers for processing.