Your files stay on your device

Base32 encoder and decoder

RFC 4648, base32hex, Crockford, and z-base-32 with separate alphabets.

Text

Loading editor…

Base32

The result shows up here as you type.

Five bits per character

Five bits go into each character. Five bytes hold 40 bits, which fill eight characters exactly. Shorter input leaves the final characters incomplete, and RFC 4648 pads the end with = until the length is a multiple of eight. The standard alphabet is A to Z and 2 to 7.

Reading the padding

The = signs carry no data. They tell a decoder how many bytes the last group held. Crockford and z-base-32 never pad, so their output simply stops. Base32hex uses 0 to 9 and A to V, which keeps sort order the same as the input bytes.

MY======'f', one byte, padded to eight characters
MZXQ===='fo', two bytes, padded to eight characters

Was this tool useful?