Encode or decode text using Base62 alphanumeric encoding

Convert bytes or integers to and from a case-sensitive Base62 token.

freeworks offlinenothing uploaded
ToolBase62 Encode/Decode
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Values are repeatedly divided by 62 and reassembled from a fixed 62-character alphabet; decoding multiplies an accumulator by 62 for each character. A separate convention is needed to preserve leading zero bytes.

  • Letters and digits avoid punctuation.
  • Alphabet order must remain fixed.

Worked example

Encode Text
Encode a string using Base62 for URL-friendly output
Input
											Hello
										
Output
												5TP3P3v
											

When to use this

Short URLs, compact identifiers, and storage tokens use Base62.

Edge cases

  • Lowercasing changes the token.
  • Leading zero bytes disappear without a length convention.
  • Duplicate alphabet characters make decoding ambiguous.