Base32: a slower, longer Base64 that people can actually type
Base32 and Base64 solve the same problem in different ways. Both take bytes, which can hold any value, and write them using only a small set of characters that every system can carry. Base64 uses 64 characters, upper and lower case letters, digits, + and /, so each character carries 6 bits. Base32 uses 32 characters, so each carries only 5 bits, and the result is longer. What Base32 gets in return is an alphabet that a person can read, type and say aloud without mistakes, and that survives systems that do not keep upper and lower case apart.
The alphabet, defined in RFC 4648, is A to Z for the values 0 to 25 and then the digits 2 to 7 for 26 to 31. The digits 0, 1, 8 and 9 are left out on purpose, because they look like O, I, B and g in many fonts. Lower case is not used at all, so "mzxw6" and "MZXW6" mean the same thing, which is why the decoder here accepts either. That is the reason authenticator apps show their setup keys in Base32: you may have to type a key from a screen into a phone, and an alphabet without look-alikes makes that much safer.
Here is a worked example. The word "café" is five bytes in UTF-8: 63 61 66 c3 a9. Five bytes are exactly 40 bits, which split cleanly into eight groups of five: 01100 01101 10000 10110 01101 10000 11101 01001. Those are the numbers 12, 13, 16, 22, 13, 16, 29 and 9, which in the Base32 alphabet are M, N, Q, W, N, Q, 5 and J. So "café" is MNQWNQ5J, and you can check it in the box above. Because 5 bytes fill one block of 8 characters exactly, there is no padding. Two bytes, such as "fo", fill only 16 bits, which is four characters (MZXQ) with four = signs to finish the block: MZXQ====.
The cost is size. Every 5 bytes become 8 characters, so Base32 is 60% bigger than the data it encodes, against 33% for Base64. For a 16 byte key that hardly matters. For a file it does, which is why Base32 is used where people meet the data, such as one-time password secrets, some file names and identifiers, and DNS records, and Base64 is used where only machines do. Like Base64, Base32 is not encryption. It hides nothing; anyone with this page or one line of Python can read it.
One limit to know about: many Base32 strings in the wild are not text. A TOTP secret, for example, is a run of random bytes, and decoding it gives bytes that do not form valid UTF-8. This tool decodes to text, so in that case it says the result is not UTF-8 text rather than showing garbage. Also note that "Base32" is used loosely. Crockford’s Base32, z-base-32 and the extended hex alphabet (base32hex) all use different characters. This page uses the standard RFC 4648 alphabet, which is what most libraries mean by Base32.