Base62 encode and decode
Base62 writes data using only the digits 0 to 9 and the letters A to Z and a to z.
What Base62 encode and decode does
Base62 writes data using only the digits 0 to 9 and the letters A to Z and a to z. That makes it handy for short IDs, link codes and keys that must sit inside a URL or a file name without any symbols.
Switch between Encode and Decode. Tick 'Treat input as a whole number' to turn a number such as 1000000 into a short code like 4C92, or to turn the code back into the number. Without that tick, your text is encoded as UTF-8 bytes, so Hindi or Tamil text works too. Input is capped at 20 KB, because Base62 suits short strings.
How to use Base62 encode and decode
- Pick a direction
Choose Encode to make Base62, or Decode to turn Base62 back into text or a number.
- Paste your input
Type or paste the text, number or Base62 code into the box.
- Set the number option
Tick the whole-number box when your input is a plain number, such as a database ID.
- Convert and copy
Press Convert, then copy the result or download it as a text file.
Questions about Base62 encode and decode
What is the difference between Base62 and Base64?
Base64 adds +, / and = to its alphabet, and those symbols can break inside links. Base62 drops them, so the output is letters and digits only. Base64 is still the better choice for long text or files.
Why does my Base62 code not match another website?
Tools encode text in different ways, and some use another letter order. Whole numbers here follow the common 0-9, A-Z, a-z order, but text codes made elsewhere may not decode the same way.
Is there a size limit?
Yes. Input over 20 KB is refused, with a message suggesting Base64 instead.
Is my text sent anywhere?
No. The conversion happens in your browser and the text is not uploaded.