Your files stay on your device

# Base32 encoder and decoder

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

The result shows up here as you type.
OptionsCopy result

## 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

## More encoding tools

- [Base64](/encoding/base64)
- [Base58 encoder](/encoding/base58)
[All encoding tools](/encoding)

Was this tool useful?
YesNo

---

Canonical HTML: https://nutter.tools/encoding/base32
Markdown version: https://nutter.tools/encoding/base32.md
Plain-text version: https://nutter.tools/encoding/base32.txt
Agent index: https://nutter.tools/llms.txt

