Developer tools

Base32 Decoder

Base32 Decoder

Decode Base32, Base32hex or Crockford Base32 to text or hex bytes.

About this tool

About Base32 Decoder

Paste a Base32 string and get the original data back. The decoder is forgiving about format but strict about content: it ignores spaces, line breaks and lowercase letters, accepts strings with or without = padding, and refuses anything that cannot be valid Base32, telling you which character and position caused the problem. A string with a length that cannot hold whole bytes is reported as truncated rather than decoded into nonsense. Choose the alphabet that produced the data: standard RFC 4648 (A–Z, 2–7), Base32hex (0–9, A–V) or Crockford, where hyphens are ignored and I, L and O are read as 1, 1 and 0. Results that are valid UTF-8 are shown as text; anything else, such as a TOTP secret or an encryption key, is shown as hex bytes so nothing is lost. Switch Show result as to Hex bytes at any time, or flip to Encode to go the other way.

Built and maintained by Abhi JainUpdated

How to Decode Base32

  1. 1

    Paste the Base32

    Paste the encoded string into the left pane. Spaces, line breaks and missing padding are fine.

  2. 2

    Pick the alphabet

    Keep RFC 4648, or choose Base32hex or Crockford if that is what produced the data.

  3. 3

    Read the result

    Choose UTF-8 text or Hex bytes under Show result as, then copy or download it.

Base32 Decoder: questions and answers

Why does my Base32 decode to strange characters?

The data was probably binary, not text, such as a TOTP secret or a key. The decoder shows bytes that are not valid UTF-8 as hex. It may also have been encoded with a different alphabet, so try Base32hex or Crockford.

Can I decode Base32 without padding?

Yes. Padding with = is optional for this decoder. The length is checked, and only lengths that can never form whole bytes are rejected.

How do I tell Base32 from Base64?

Standard Base32 uses only capital letters and the digits 2–7, and its padded length is a multiple of 8. Base64 mixes upper and lower case, uses all ten digits and + / or - _, and its padded length is a multiple of 4.

Is decoding done on a server?

No. Decoding happens in your browser, so secrets you paste are never sent anywhere.

More Base32 Encoder presets