Use this free Base32 encoder and decoder to convert text to Base32 and back, following RFC 4648. Base32 writes binary data with 32 printable characters, which is useful for keys, identifiers, and systems that cannot handle symbols well. The conversion runs in your browser, so the text you enter is not sent anywhere.

Base32 is a format, not a lock. Anyone who sees the string can decode it, so protect a secret with encryption and treat the Base32 form as an encoding only.

How to use the Base32 encoder and decoder

  • Choose a direction: encode text to Base32, or decode Base32 back to text.
  • Pick an alphabet: standard for most uses, or Base32hex when the sort order of the encoded values matters.
  • Set padding: keep the = signs if the receiving system expects them, or leave them off.
  • Copy: copy the result, or use it as the next input.

How Base32 works

Base32 takes 5 bits at a time, so each character stands for 5 bits of input. Eight characters hold five bytes. When the input does not fill a full group, the output is padded with = signs to a multiple of eight characters, unless you turn padding off.

Worked example

The text foobar encodes to MZXW6YTBOI====== in the standard alphabet with padding. Without padding it is MZXW6YTBOI. Decoding either form gives back foobar. Base32hex gives CPNMUOJ1E8====== for the same text.

Common Base32 mistakes

  • Treating it as encryption. Base32 has no key, so anyone can reverse it.
  • Mixing the alphabets. A string made with Base32hex will not decode correctly as standard, and the reverse is also true.
  • Dropping or adding padding. Some systems reject a string with the wrong padding, so match what the receiver expects.
  • Decoding invalid characters. Digits 0, 1, 8, and 9 are not in the standard alphabet, so a string that contains them is probably Base32hex or something else.

Frequently asked questions

Is Base32 encryption?

No. Base32 only changes how the bytes are written. Anyone can decode it.

What is the difference between the two alphabets?

The standard alphabet uses A to Z and 2 to 7. Base32hex uses 0 to 9 and A to V, and it keeps the sort order of the original bytes. Use the one your system asks for.

Why does the output end in equals signs?

Padding makes the length a multiple of eight characters. Some systems expect it and others omit it, so the tool lets you choose.

Is my data sent to a server?

No. The conversion runs in your browser and nothing is uploaded.

Share this article