Number Base Converter
Convert binary to decimal
What it does
All Four Bases at Once
Enter one value and see binary, octal, decimal, and hexadecimal side by side, each with a copy button.
Exact for Huge Numbers
Uses BigInt, so values beyond Number.MAX_SAFE_INTEGER (2^53) are converted without rounding.
Negative Numbers and Prefixes
Supports a minus sign and the 0b, 0o, and 0x prefixes, but rejects a prefix that conflicts with the chosen base.
Strict Digit Checking
A digit outside the base (like 2 in binary or 8 in octal) is reported, never partly parsed.
Frequently asked questions
Is my input sent to a server?
No. Everything is computed in your browser. The page does download the code needed to run the tool.
How large can the numbers be?
Up to 10,000 digits. Values are exact because BigInt is used instead of floating-point numbers.
Are fractions supported?
No. Only whole numbers (integers), positive or negative, are converted.
What happens if the prefix and the base disagree?
It is an error. For example, 0x10 with the input base set to decimal is rejected instead of being silently reinterpreted. Change the input base or remove the prefix.