Converters
Number Base Converter
Convert numbers between decimal, binary, hex, and octal bases.
Loading tool...
Related developer tools
Continue with URL Parser, Query String Parser, Timestamp Converter.
How to Use Number Base Converter
- Enter or paste your input in the text area above
- The tool will process your input automatically or click the action button
- Copy the result using the copy button
Frequently Asked Questions
What number bases are supported?
- This tool supports decimal (base-10), hexadecimal (base-16), octal (base-8), and binary (base-2).
How do I use prefixes?
- You can use prefixes like 0x for hex, 0o for octal, and 0b for binary. They are automatically handled.
Can it convert integers larger than Number.MAX_SAFE_INTEGER?
- Yes. Conversion uses BigInt and validates the entire input, so large whole integers are preserved instead of rounded. Inputs are limited to 10,000 digits to keep the browser responsive, and fractions are intentionally not supported.
Sources & references
Primary references: MDN: Number systems and numeric conversion.
Last reviewed: