Convert binary to decimal (base 2 → base 10)
Use this converter when you have binary integers (base 2) and need the decimal value (base 10).
This page is a focused Binary → Decimal variant built for speed:
- Batch mode is enabled by default (one value per line)
- Controls are intentionally hidden to keep this variant fast and distraction-free
Need other bases (octal/hex), swapping, or formatting options? Open the full Number Base Converter.
How to use it
- Paste your binary values into the input (left).
- Use one number per line.
- Copy the decimal results from the output (right).
Signed values are supported:
-1001→-9+1010→10
Input rules (binary)
Allowed characters
Binary input may contain only:
0and1- an optional leading
+or-
Examples:
01101010-101010
Optional 0b prefix
You may paste values like:
0b11110000-0b1011
Separators are ignored
Spaces and underscores are ignored, so these are valid:
1111_00000b1111 0000
Output format (decimal)
- Output is a base-10 integer
- Negative values keep a leading
-
Examples:
1010→1011111111→25510000000000→1024-1001→-9
Batch example (one per line)
Input (binary):
1010
11111111
-1001
0b1111 0000
2
Output (decimal):
10
255
-9
240
!ERROR: Binary input may contain only 0 and 1
One invalid line won’t break the rest.
Common use cases
Bitmasks and flags
Binary is ideal for understanding which bits are set. Converting to decimal helps match what a UI, API, or database stores.
Debugging and logs
Some tools print binary strings, while others print decimal numbers. This converter helps you move between them quickly.
Learning fundamentals
Binary → decimal conversion is a core skill in computer science, embedded systems, and digital electronics.
Troubleshooting
“Binary input may contain only 0 and 1”
A line includes an invalid character (like 2, 8, A, or .).
Fix it by removing invalid characters or switching to the full tool if your input is actually hex/octal/decimal.
Notes
- This is number base conversion for integers, not text/byte encoding.
- Everything runs locally in your browser — nothing is uploaded.