Base62 Encoder Decoder
Convert text bytes with the 0–9 A–Z a–z alphabet
Choose encode or decode, paste text or a Base62 string, then convert it first; scenarios and fix hints are available in Advanced mode.
The full guide also includes pitfalls, worked examples, snippets, FAQs, and related tools for checking results or troubleshooting.
About this tool
This converter interprets UTF-8 text as a big-endian byte sequence and uses the alphabet 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz. It preserves leading zero bytes as leading 0 characters. Choose Encode or Decode manually; Advanced mode shows hex bytes and round-trip output. Non-UTF-8 decoded data is shown only as hex. This byte convention differs from decimal-integer Base62 used by many short-link systems, and other libraries may use a different alphabet order. Conversion is local without input drafts.
Production Snippets
Text bytes are different from decimal IDs
text
Alphabet: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
Encode text A (hex 41) → 13
Decode 0 → hex 00
Decode 47 → hex ff (not UTF-8 text)
Encoding text 123 is not converting the integer 123.Frequently Asked Questions
Can I shorten a decimal ID with this tool?
Encoding 123 encodes the three UTF-8 characters, not the integer 123. Use an integer converter when your system expects numeric Base62 IDs.
Why do other libraries give different results?
Base62 has differing alphabet orders and byte/number conventions. Confirm 0–9 then A–Z then a–z, big-endian bytes and leading-zero handling before comparing.
Does it choose the direction automatically?
No. Choose Encode or Decode. Plain alphanumeric text cannot reliably reveal which direction you intended.
Why can a valid Base62 string fail UTF-8 decoding?
Valid alphabet characters produce bytes, but those bytes need not be text. Hex remains visible in Advanced mode so the bytes are not lost.
Is Base62 encryption or compression?
Neither. It is a reversible representation using letters and digits. Text encoding can be longer than the source text.
Keep browsing