blog

SEAN K.H. LIAO

base N

We need character sets!

tldr: use base20 for no confusion and no accidental words

base64

dense

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
base64 url

change +/ to -_ to prevent url escaping

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_

base62

base64 without the special chars

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

base58

base64 without special chars, skips some confusing characters

123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz

base32

case insensitive, skips some confusing chars

ABCDEFGHIJKLMNOPQRSTUVWXYZ234567
base32 Crockford

case insensitive, skips some confusing chars

0123456789ABCDEFGHJKMNPQRSTVWXYZ
base32H

case insensitive, skips some confusing chars

0123456789ABCDEFGHJKLMNPQRTVWXYZ

base20 Open Location Code

case insensitive, no confusion, won't form words

23456789CFGHJMPQRVWX

base16 Hexadecimal

used more often as extended number/digit set

0123456789abcdef