Number base converter

Convert an integer between bases 2–36 with BigInt precision, without floating-point conversion.

Processing is local with no automatic storage. Worker deadline: 5 seconds; complete result including details: 2 MiB. Preview is bounded; copy and download are complete.

Bases 2–36 and exact integers up to 4,096 digits. ASCII digits and case-insensitive a–z, with optional + or -. No spaces or fractions; no automatic prefix or exponent interpretation: 1e3 in base 16 is 483; 0x10 is invalid in base 16 but equals 42804 in base 36. Canonical output uses lowercase, removes leading zeros and converts negative zero to 0; up to 24,576 digits.

How to use

Enter the integer, select its source base and choose the target base explicitly; a prefix does not select it automatically. Do not include whitespace. Process, review the result, then copy or download it as text.

Try an example

ff in base 16 becomes 255 in base 10 and 11111111 in base 2. The value -0010 in base 2 becomes -2 in base 10.

Support & limits

Supported digits are 0–9 followed by a–z, read case-insensitively. Base prefixes and exponents are not interpreted automatically; x and e are digits when the selected base permits them: 0x10 in base 36 equals 42804, and 1e3 in base 16 equals 483. Fractions, grouping separators and localized digits are not accepted. Computation uses BigInt; output is lowercase without leading zeroes, and negative zero becomes 0. Invalid input is rejected completely, not parsed only up to its first invalid character.

Common questions

Does this interpret signed bytes using two’s complement?

No; the sign represents a mathematical integer, without a fixed bit width or wraparound. For example, ff in base 16 means 255, not -1.

Related tools