Norbert Hartl developed a package that contains util classes to en-/decode values into/from Base62/Base36.

Base62/Base36 encode numbers in short strings. These are used e.g. by url shortener services from google, etc. 

Base36 uses lowercase letters and numbers to encode, Base62 uses all characters from Base36 plus all uppercase letters. Base62 produces smaller strings while Base36 produces case insensitive ones.


Base62 fromNumber: 100000 -> 'q0U‘ 

Base36 fromNumber: 100000 -> ‚255s'

The package is available on SmalltalkHub.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: