Number Base Converter
Convert numbers between any bases from 2 to 36 β binary, octal, decimal, hex, and beyond.
Programmers regularly encounter numbers in bases other than 10: memory addresses in hexadecimal, file permissions in octal, network masks in binary, and custom encoding schemes in unusual bases. Mentally converting between them is slow and error-prone. A reliable base converter removes that friction, letting you focus on what the number means rather than its representation.
This tool converts any integer between base 2 and base 36, covering every base used in practice β binary, octal, decimal, hexadecimal, base32, base36, and everything in between. Paste a value, select its source base, and see the result in all common bases simultaneously. Useful for embedded development, cryptography, colour manipulation, and understanding compiler or assembler output.
How to Convert Number Bases Online
- 1
Enter a Number and Source Base
Type a number and select its base (2β36). Binary, octal, decimal, and hex are the common presets.
- 2
See All Representations
Binary, octal, decimal, and hexadecimal outputs update simultaneously. Enter a custom target base for any other conversion.
- 3
Handle Large Numbers
The tool uses JavaScript BigInt for arbitrary-precision integers. 64-bit values and larger convert without precision loss.
How Base Conversion Works
Every positional numeral system represents an integer as a sum of digit values multiplied by powers of the base. The digits used for bases above 10 are the lowercase letters aβz, so base 16 uses 0β9 and aβf, and base 36 uses 0β9 and aβz β giving 36 distinct symbols. To convert from any base to another, the standard algorithm first converts the input string to a native integer by accumulating `digit * base^position` for each digit, then repeatedly divides that integer by the target base, collecting remainders as the output digits from least significant to most significant.
For large numbers, arbitrary-precision arithmetic is required β JavaScript's native numbers lose precision beyond 2^53, so this tool uses BigInt internally to handle arbitrarily large integers without rounding errors.
Why Use FileCrank Number Base Converter?
- β Converts between any two bases from 2 to 36.
- β Shows binary, octal, decimal, and hex simultaneously.
- β BigInt support for arbitrary-precision large integers.
- β Runs entirely in your browser β no data sent to any server.
Features & Specs
Frequently Asked Questions
What bases can this converter handle?
Any integer base from 2 to 36. Base 2 is binary, base 8 is octal, base 10 is decimal, base 16 is hexadecimal. Bases 11β36 use letters AβZ for digits above 9.
Can this converter handle large numbers without losing precision?
Yes. The tool uses JavaScript BigInt for all calculations, which supports integers of arbitrary size. Standard JavaScript Number loses precision above 2^53 β 1 (about 9 quadrillion).
Why does entering 'G' in hexadecimal input cause an error?
Valid hexadecimal digits are 0β9 and AβF (case-insensitive). 'G' is not a valid hex digit. The tool highlights the invalid character inline.
What is the difference between this tool and the binary, hex, and octal converters?
The number base converter focuses on pure numeric base conversion between any two bases. The binary, hex, and octal converters also show text (character) representations of the input β they operate on strings of characters, not just numeric values.
Browser Converter vs. Python int() vs. Programmer Calculator
Python's `int('ff', 16)` and `bin()` / `hex()` / `oct()` functions handle common bases elegantly, but require a REPL and only cover bases 2, 8, 10, and 16 natively. The Windows Programmer Calculator covers binary, octal, decimal, and hex but caps at 64-bit integers and is not available on every platform. A browser-based converter supports all bases 2β36, works on any OS, and shows all representations at once for quick cross-reference.
Related Tools
Binary Converter
Convert binary to text, decimal, and hex β or encode text to binary β with real-time output.
Hex Converter
Convert hex strings to text, decimal, and binary β or encode text to hex β in your browser.
Octal Converter
Convert octal numbers to decimal, binary, and hex β or enter decimal to get octal. Ideal for Unix file permissions.
FileCrank Number Base Converter converts integers between any bases from 2 to 36 with BigInt precision, showing binary, octal, decimal, and hex simultaneously, in your browser.
Advertisement