Base32 Encoder / Decoder
Guide: Base64 Explained: What It Is and When to Use It
Nothing you enter or choose here leaves your device. This tool runs in your browser.
One word, three alphabets
Base32 turns bytes into text using only 32 safe characters. The word Hello, five bytes, becomes eight characters in each of the three supported alphabets:
| Alphabet | Result for Hello | Characters used |
|---|---|---|
| Standard (RFC 4648) | JBSWY3DP | A to Z and 2 to 7 |
| Extended hex | 91IMOR3F | 0 to 9 and A to V, so it sorts like the original |
| Crockford | 91JPRV3F | 0 to 9 and A to Z without I, L, O and U |
Decode JBSWY3DP with the standard alphabet and you get Hello back. Mixing them up is the commonest error: the same letters decoded in the wrong alphabet give garbage or an error.
Why five bytes make eight characters
Each character carries 5 bits, so 40 bits, which is 5 bytes, fill exactly 8 characters. That's why Base32 output is about 60 percent bigger than the input, compared with 33 percent for Base64. When the input isn't a multiple of 5 bytes, the output is padded with equals signs to reach a multiple of 8. You can turn padding off, and many systems leave it out.
Which alphabet to use
- Standard: authenticator app secrets and most other uses. If a spec says Base32 with no further detail, it means this one.
- Extended hex: when encoded values need to sort in the same order as the original data.
- Crockford: for codes people read aloud or type, since it removes look-alike letters and ignores case.
Where you'll meet it
The secret behind a two-factor authentication QR code is Base32. If you type one in by hand and it doesn't work, check that you've used only letters A to Z and the digits 2 to 7, and that none of the characters are the digits 0, 1, 8 or 9 mistyped for letters. The TOTP generator uses these secrets to make codes. Base32 also appears in file names on systems that ignore case, and in some ID formats.
Fixing a failed decode
- Check the alphabet. Try the others if you're not sure.
- Remove spaces and line breaks. Some sources group characters in fours for reading.
- Check for the wrong characters. In the standard alphabet, 0, 1, 8 and 9 are invalid.
- If the decoded bytes look like nonsense, they may not be text at all but data such as a key.
Text is converted as UTF-8 first, so accents and emoji work. Nothing is uploaded. The guide to Base64 and Base32 compares the two, and the Base64 encoder handles the bigger sibling.
Written by Akinrinmade Michael · Updated October 24, 2026
How to use
- 1Choose Encode or Decode.
- 2Pick the alphabet and paste your text.
- 3Copy the result.
Frequently asked questions
Is my text uploaded?
No. Everything runs in your browser, so what you paste never leaves your device.
Which alphabets are supported?
Standard RFC 4648, extended hex, and Crockford.
What is the = at the end?
Padding that makes the length a multiple of 8. You can turn it off.
Where is Base32 used?
In authenticator app secrets, file names that ignore case, and some ID formats.
Can it handle emoji and accents?
Yes. Text is converted as UTF-8.
Read the guides
Learn how this works and how to get the most from it.
Developer
Base64 Explained: What It Is and When to Use It
How Base64 and Base32 encoding work, a worked example by hand, why Base64 makes data 33% larger, and when to use each. Neither one is encryption.
3 min read
Security
Two-Factor Codes Explained: How TOTP Authenticator Apps Work
How the six-digit codes in authenticator apps are made, why they change every 30 seconds, what the secret key is, and how to set one up safely.
3 min read
Related tools
Base64 & URL Encoder / Decoder
Encode and decode Base64 and URL-encoded text instantly.
Text to Binary / Hex / ASCII Converter
Convert text to binary, hex, decimal or octal codes and back.
Number Base Converter
Convert between binary, octal, decimal, hexadecimal and any base to 36.
Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes and HMACs.