🔢

Base Converter

Convert between base 2/8/10/16/36, arbitrary-precision integers via BigInt.
Base Convert 📂 Encode 👤 ToolWorld 🏷️ v1.1.12
Loading...
Result
—
Arbitrary-precision integers via BigInt; decimal fractions are not supported yet.

How to Use

📖 Tool Introduction


The Base Converter is a free online number-system calculator that moves numbers freely between binary, octal, decimal, hexadecimal and base-36. Converting between bases is a daily chore when you debug bitwise code, inspect memory addresses, read assembly, or design short-link identifiers. This tool performs every step with JavaScript BigInt arbitrary-precision integers, so no matter how long your number is you will never hit the silent trailing-precision loss that ordinary floating point causes. Pick a source base and a target base, type a number, and it converts immediately; the result area also shows the same number as cards across all five bases at once, so you can cross-check at a glance. Base 36 uses the 36 symbols 0 through 9 and a through z, a compact alphabet popular for short URLs and random invitation codes. A leading plus or minus sign is accepted, and each digit is validated against the chosen source base, so typing a 2 into binary mode raises a clear error. One important scope note: this release handles integers only; decimal fractions are not yet supported, and any input containing a dot gets a friendly message instead of a wrong answer. Every calculation happens locally in the browser, which keeps the tool fast and private even on slow or restricted networks. Students preparing for exams love the five reference cards, because they can convert a single number and immediately see how it looks in every common base instead of opening five separate calculators. Platform engineers generating next-record identifiers, and reverse engineers decoding a register value pasted out of a debugger, both benefit from the same exact arithmetic: a number with forty digits behaves exactly the same as the literal 1, with no rounding and no scientific notation sneaking in at the end of the string. Teachers use the same cards in class to show how a single value looks across the bases, and students can reuse them to verify homework without touching a calculator. The swap button is the fastest way to go from decimal to hex and back again, which saves re-picking the two dropdowns by hand.

✨ Key Features


  • Five bases: 2/8/10/16/36 in any pairwise combination
  • Arbitrary precision: BigInt math, huge integers stay exact
  • Five-way reference: result cards show all bases at once
  • One-click swap: the middle button exchanges source and target
  • Strict validation: illegal digits and fractions error clearly
  • Fully local: computed in the browser, private

📝 How to Use


  1. Pick the source base from the left dropdown
  2. Type the number to convert (optional leading sign)
  3. Pick the target base from the right dropdown
  4. Click Convert and read the large result and the five reference cards
  5. Use the middle swap button to exchange the two bases

⚠️ Notes


  • Integers only: fractions are not supported, a dot triggers a hint
  • Legal digits: every digit must be below the base, binary accepts only 0/1
  • Case: a-z and A-Z are equivalent, hex may mix them
  • Huge numbers: copy long results rather than squinting digit by digit
  • Leading sign: plus and minus are allowed, stray spaces are ignored

Related

⏫︎