Binary to Decimal Converter
Convert a binary number to decimal.
Updated
This tool runs in your browser. No account or signup is required.
Common Binary to Decimal tasks
Developers typically reach for this page when they need to convert binary to decimal online; turn 1010 into decimal; convert a base 2 number. The tool is built for quick, practical work rather than a generic demo.
What matters in a binary to decimal workflow
When developers compare online tools for this job, the useful capabilities tend to center on worked positional steps, bit values, related bases. This page keeps those practical needs in mind while linking to related tools when a different workflow is a better fit.
What is Binary to Decimal?
Binary to Decimal converts a whole number from one base to another using the From and To base selectors. Letters in the result are uppercase.
What problem does it solve?
Bit masks, memory addresses, color codes and permissions all show up in different bases, and converting by hand is slow and error-prone.
How to use Binary to Decimal
- Set the From and To bases.
- Type your number.
- Copy the converted value.
Example
Input
1010 (from base 2 to base 10)
Output
10
What you can do with Binary to Decimal
- Binary to decimal
- Convert binary online
- What is 1010 in decimal?
Common use cases
- Reading bit flags and masks
- Converting hex values from a debugger or a spec
- Learning how number bases relate
Related developer tasks
- Binary to decimal
- Convert binary online
- What is 1010 in decimal?
How to convert binary to decimal
Each binary digit is a power of 2, counted from the right starting at 0. Add up the powers where the digit is 1.
1010 = 1x8 + 0x4 + 1x2 + 0x1 = 10 1101 = 1x8 + 1x4 + 0x2 + 1x1 = 13
Binary to decimal in this tool
- Set From to Binary (2) and To to Decimal (10), then type the binary number.
- Only 0 and 1 belong in a binary number. A value that starts with another digit shows Invalid number for base 2, but otherwise the tool stops reading at the first bad digit, so 1021 is read as 10. Check your digits.
Related: Decimal to Binary, Number Base Converter, Hex to Decimal
Binary to Decimal FAQ
What if I see "Invalid number for base"?
The input has a character that does not exist in the From base, for example a 2 in a binary number.
Are fractions supported?
The tool works on whole numbers. Anything after a decimal point is ignored.
Why does the tool open with Decimal to Binary selected?
The number base tool starts at From Decimal, To Binary on every page. Change the two selectors to Binary and Decimal.
Related Developer Tools
- Decimal to Binary Text & Data
- Number Base Converter Text & Data
- HEX to Decimal Text & Data
- Decimal to HEX Text & Data
- Timestamp Converter Web Tools
Looking for something else? Browse all developer tools.

