Base36 Converter

Encode a whole number, or prefix text with t. to encode its bytes.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

Decode expects the same form.

Numbers use BigInt. Text mode is the UTF-8 bytes, not a display font.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Convert Base36.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

Digits take a different path than text

Two encode rules

The direction control defaults to encode. After trimming, a string that is only ASCII digits is treated as an integer: BigInt of that string, then base 36, lowercase. Leading zeros collapse, because the integer value does not remember them. “00” encodes as “0”. Any other string, including empty and including text that mixes letters, is not that integer path. The bytes of the UTF-8 text are read as one big integer and written in base 36 with a t. prefix. Empty text takes this second path and becomes t.0. The prefix is how the decoder later knows to rebuild bytes instead of printing a decimal integer.

Decode reverses those shapes. A value that starts with t. is parsed as base 36 and turned back into bytes, then UTF-8 text. Any other value is parsed as a base 36 integer and printed in decimal. The integer parser accepts digits and letters and rejects anything else with the message that base 36 uses digits and letters. The letter parser lowercases before it maps symbols.

Where the round trip loses information

A digit-only string round-trips as a number, not as a textual spelling. “10” encodes as a, and a decodes as 10. You get the number back and you lose nothing only because the input was already a canonical integer. “00” comes back as “0”. A textual “10” that you wanted preserved as characters is indistinguishable from the integer ten, so you cannot force the t. path without adding a non-digit. Text that uses the t. path round-trips, including an empty box. Decoding an integer result with the text expectation will not put the words back. The mode is chosen by the shape, not by a separate memory of what you meant.

Not a cipher and not base64

Base 36 is a positional spelling. There is no key and no authentication tag. It is not the base64 alphabet, and it is not base58. A checksum of the text would stay stable when you want to detect accidental edits. This representation changes whenever you change mode or lose leading zeros. Use encode when you want the prefixed form for arbitrary text or the short form for a whole number. Use decode when you already know which of those two shapes you are holding.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.