Skip to main content

Number Base Converter

Convert numbers between any bases from 2 to 36 β€” binary, octal, decimal, hex, and beyond.

Input
Input base:
0 chars | 0 bytes
Output
Decimal
Binary
Octal
Hexadecimal

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. 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. 2

    See All Representations

    Binary, octal, decimal, and hexadecimal outputs update simultaneously. Enter a custom target base for any other conversion.

  3. 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

Max File Size
Up to 100 MB
Privacy
Files deleted after about an hour
Price
Free, no signup
Processing
100% client-side
Your data never leaves your browser β€” all processing is local.No account or signup required.Free with no usage limits.

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.

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

Ad