Dev tools

Base32 encode

Base32 encode. Runs on your device, nothing is uploaded.

Runs on your device. The file is never uploaded.

Base32 encode rewrites a file's bytes five bits at a time into uppercase letters and the digits 2 through 7. Equals signs pad the result until its length divides by eight, five bytes to eight characters. The alphabet holds no lowercase and no 0, 1, 8 or 9, so a decoder expecting a different 32-symbol alphabet gives back rubbish.

Input

Questions

Which Base32 alphabet is this?

The standard RFC 4648 set: the 26 uppercase letters A to Z followed by the digits 2 to 7. There is no lowercase and no punctuation apart from the padding. Digits 0, 1, 8 and 9 never appear, which is why a Base32 string is hard to misread even in a poor font.

Why does the output end in equals signs?

Base32 packs five bits per character, so five bytes fit neatly into eight characters. When the input does not divide by five, the last group is short and the tool pads with equals signs until the total length is a multiple of eight. The padding carries no data and most decoders will ignore it.

Is this Crockford Base32 or z-base-32?

Neither. Those use different symbol sets designed for humans to read aloud or type, and they exclude confusable letters. This tool uses only the A to Z plus 2 to 7 alphabet, so a string produced here will not decode correctly with a Crockford or z-base-32 decoder.

Why use Base32 instead of Base64?

Because the alphabet survives systems that do not care about case and do not accept punctuation. Base64 needs plus, slash and equals and distinguishes upper from lower case; Base32 output is uppercase letters and digits only. The cost is size: eight characters per five bytes, so about 60 percent larger than the input, against 33 percent for Base64.

Does encoding protect the contents?

No. It is a reversible rewrite of your bytes, not a cipher, and there is no key involved anywhere. Anyone holding the string gets the original back with a one-line decode. Use Base32 to make bytes safe to type, read aloud or store in a case-insensitive system, and use a real encryption tool when the contents need to stay private.

Can I run it on several files?

Yes. Drop as many as you like and each is encoded on its own, with its own result block. All of it happens in a Web Worker in this tab, so nothing leaves your device and the tool keeps working with the network off.

Related Dev tools