Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    Can you explain where a Base53 or Base62 encoding could be of any use? Commented Jul 16, 2010 at 12:55
  • 4
    By the way Base62 encoding is great if you want to convert byte array into string without any '/' and '+' similar symbols, just a-z, A-Z, 0-9.
    – Paya
    Commented Jul 16, 2010 at 13:28
  • 5 base 62 digits can encode a lot more than 2 bytes! Commented Nov 23, 2011 at 5:00
  • If you're still interested in this and it doesn't have to be universally mathematically portable, I'd suggest considering chunking. I've implemented the numeric div/mod work on uint64 arithmetic, converting 8 bytes at a time (produces 11 chars for base62, would need 10.75 chars, 2.3% overhead). Not as space-efficient, but almost, and way faster (have no comparison but there's no slow arbitrary-length integer involved).
    – ygoe
    Commented Nov 9, 2020 at 22:21