Base62 Encode/Decode

Input
Length: 0
Output
Length: 0

How Base62 works

  • Alphabet: 62 symbols 0โ€“9, Aโ€“Z, aโ€“z (total 62 distinct characters).
  • Encoding: interpret input bytes as a big baseโ€‘256 integer and convert to baseโ€‘62 via repeated division.
  • Decoding: accumulate baseโ€‘62 digits back into baseโ€‘256 bytes (reverse process).
  • Variants: some implementations reorder the alphabet; ensure both sides use the same set.
  • Note: Base62 is a textual representation for compact IDs/short links, not encryption.