Skip to main content

Base32 Encoder / Decoder

Encode text to Base32 or decode Base32 back to text, with RFC 4648, Base32hex and Crockford alphabets, optional padding and a hex view of the bytes.

For developers handling tokens and identifiers.

Last updatedHow we build & check our tools
Results will appear here once you enter your values.

How Base32 packs bytes

Base32 reads input as a stream of bits and cuts it into 5-bit groups. Each group is a number from 0 to 31 that picks a symbol. Five bytes make 40 bits, which is exactly eight symbols, so output length grows by a factor of 8/5, about 60 percent larger than the input.

When the input is not a multiple of five bytes, the last group is padded with zero bits and, in the RFC alphabets, the output is padded with = to a multiple of eight symbols. One byte needs 6 padding characters, two bytes 4, three bytes 3, four bytes 1. Turn padding off to omit them; the decoder then accepts unpadded input as well.

  • Base32 vs Base64: Base32 is longer but avoids lower case and symbols such as + and /.
  • Base32 vs number base conversion: this tool encodes byte strings; it does not convert a number between radixes.

Limits

Encoding hides nothing.

Do not use Base32 to protect passwords or secrets.

Crockford's optional check symbol is not supported.

The tool encodes text as UTF-8, so characters outside ASCII use several bytes and give longer output than you might expect.

Sources

RFC 4648, The Base16, Base32, and Base64 Data Encodings (Josefsson, 2006), sections 6 and 7 for the standard and extended hex alphabets. Crockford Base32 follows Douglas Crockford's Base32 specification.

For converting numbers between radixes, see the Base-N Converter. For other encodings, see the URL Encoder and HTML Encoder.

Frequently Asked Questions

Common questions about the Base32 Encoder / Decoder

Base32 turns bytes into a text alphabet of 32 symbols that survives case-insensitive systems and is easy to read aloud. Common uses are TOTP authenticator secrets, which are shared as Base32 strings, file-name-safe identifiers, and some DNS and content-addressing schemes. It is an encoding, not encryption: anyone can decode it.

From the same team

Turn your GPU into an OpenAI-compatible API endpoint

Wide Area AI routes your LLM API calls to your own hardware over a Cloudflare Tunnel — free local inference with edge caching and automatic cloud failover. Works with any OpenAI SDK.

Start routing — free

Sources & References

Web platform and protocol references

Authoritative definitions for web technologies, encodings, and data formats used by these developer tools.

Internet standards (RFCs)

Formal specifications for internet formats and protocols.