Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal
Enter a number above to convert between bases
Supports arbitrary precision using BigInt. Accepts 0x, 0b, 0o prefixes. All processing happens locally in your browser.
About Number Base Converter
Convert numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) representations. Number base conversion is a fundamental operation in programming, computer science, and digital electronics. Developers routinely convert between bases when working with bitwise operations, memory addresses, colour codes, file permissions, and low-level protocols. This tool uses BigInt for arbitrary-precision conversion, handling numbers of any size without rounding errors. All conversion runs locally in your browser.
How to Use Number Base Converter
- Enter a number in any supported base (binary, octal, decimal, or hex).
- Select the input base if it is not auto-detected.
- View the instant conversion to all other bases.
- Copy any output value using the copy button.
Number Base Converter FAQ
Which number bases are supported?
Binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) are supported for bidirectional conversion.
Does it support very large numbers?
Yes. The tool uses BigInt for arbitrary-precision arithmetic, so it handles numbers of any size without floating-point rounding errors.
Can I convert negative numbers?
The tool is designed for unsigned integer conversion. For signed representations, convert the absolute value and apply the sign or two's complement manually.
What are common uses for base conversion?
Base conversion is used for bitwise operations, reading memory addresses, setting Unix file permissions (octal), defining CSS colour codes (hex), and understanding binary data formats.
Is the conversion accurate for very large numbers?
Yes. BigInt provides exact integer arithmetic regardless of number size, unlike standard JavaScript numbers which lose precision beyond 53 bits.