Convert integers between bases 2–36.
Numbers are interpreted in a given radix (base). Bases up to 36 use digits 0–9 and letters a–z to represent values 10–35.
parseInt(input, fromBase) converts the string to a JS Number; toString(toBase) emits in the new base.All conversion occurs locally.
Only handles integers that fit in JS Number (53-bit precision).
Looking for broader guides and best practices? Visit the ToolsAreUs Blog for indexes (like the full tool list) and articles (e.g. secure password generation).