Text · Converter

Base36 encoder and decoder.

Base36 writes numbers with 0 to 9 and A to Z. 255 is 73; 123456789 is 21I3V9. Convert numbers, or encode and decode text, with no size limit.

Runs in your browserNothing is uploaded

Advertisement

Input

Result

Enter a value to convert it.

Advertisement

How it works

Base36 uses the ten digits and the 26 letters, so each character carries 36 values. It is the densest case-insensitive alphanumeric number system, which is why URL shorteners, database IDs and session tokens use it. JavaScript's Number.prototype.toString(36) and parseInt(s, 36) are the same encoding; this page uses arbitrary-precision integers so it also works above 253, where those functions lose digits.

Numbers: to get 255 in base36, 255 = 7 × 36 + 3, so the digits are 7 and 3, giving 73. Digit values run 0 to 9 then A=10 through Z=35; letter case does not matter on input, and output is upper case (copy it lower case if your system expects that). Negative numbers keep a leading minus.

Text: base36 has no official text encoding, so this page defines one in the same way Base58 does. The UTF-8 bytes are read as a single big-endian number and written in base36, and any leading zero bytes are kept as leading 0 characters so the text round-trips exactly. That makes this page's text mode compatible with itself, not with every other implementation, so confirm both ends agree before you rely on it. For standardised text encodings, use Base64 or Base32 (both RFC 4648). To convert between any two bases from 2 to 36, use the number base converter.

Worked examples

Base36 examples
InputResult
25573
1000RS
12345678921I3V9
2^532GOSA7PA2GW
hello (text)5PZCSZU7

Related: hex to decimal, text to hex and the URL encoder.

Sources: ECMAScript Language Specification, Number.prototype.toString (radix 2 to 36); RFC 4648: The Base16, Base32, and Base64 Data Encodings (for the standardised alternatives) Retrieved November 2026.

Advertisement

Base36 encoder and decoder FAQ

What is base36?

A number system with 36 digits: 0 to 9 and A to Z. It is a compact way to write large numbers using only letters and digits.

How do I convert decimal to base36?

Divide by 36 repeatedly and write the remainders as digits (10 is A, 35 is Z), reading from the last remainder to the first. 255 gives 73.

Is base36 case sensitive?

No. 2GOSA7PA2GW and 2gosa7pa2gw are the same value. Output here is upper case.

Is there a standard way to encode text in base36?

No. This page treats the UTF-8 bytes as one big number and keeps leading zero bytes as leading 0 characters. It round-trips here but may not match other tools.

Why not just use parseInt(s, 36) in JavaScript?

It works for numbers up to 2^53 but silently loses precision above that. This converter uses arbitrary-precision integers.