Free Base32 Encoder & Decoder
Encode text to Base32 or decode Base32 back to readable text using the RFC 4648 standard alphabet (A–Z and 2–7). Base32 is widely used in one-time-password secrets, DNS records, and systems where case-insensitive encoding matters.
The neighbouring encoders are the Base64 to Hex Converter and Hex to Base64 Converter. For string escape work rather than encoding, the String Escape / Stringify tool is the counterpart.
How to use the Base32 Encoder
- 1 Paste the value you want to encode, or the Base32 string you want to decode.
- 2 Choose the alphabet if your system uses a non-standard variant.
- 3 Convert. Base32 output is uppercase letters and the digits two to seven.
- 4 Copy the result, noting whether padding characters are included.
Where Base32 is standard
The most common encounter with Base32 is in two-factor authentication. TOTP secrets are Base32, which is why the setup string you scan as a QR code, and type by hand when there is no camera, is a run of uppercase letters and digits from two to seven.
It also appears in systems that generate human-transcribable identifiers — support codes, licence keys and activation codes — where the priority is that someone can read the value aloud or write it down without ambiguity.
- Alphabet is A to Z plus 2 to 7.
- Case-insensitive, unlike Base64.
- About 60 per cent larger than the source, against 33 per cent for Base64.
- Base32hex is a different alphabet and is not interchangeable.
When is Base32 used?
Base32 represents binary data using 32 characters, which makes it safe for case-insensitive systems — its main advantage over Base64. It is the encoding behind TOTP/authenticator secrets, and it appears in some DNS and file naming conventions where uppercase letters and digits are the only reliable characters.
Frequently asked questions
Why would anyone use Base32 when Base64 exists?
Because Base32 uses only characters that survive human transmission and case-insensitive systems. Base64 uses both upper and lowercase letters, so a value that passes through a system that normalises case — a case-insensitive filename, a spoken code, some ticketing systems — is corrupted. Base32 sacrifices 20 per cent more size for that robustness.
What is the padding character?
The equals sign, used to fill the final group to a complete multiple. It carries no data and exists so the encoded length is unambiguous. Because it can be stripped and regenerated, some implementations omit it, which means you may see the same data encoded with and without padding.
Is Base32 the same as Base32hex?
No, and mixing them produces garbage. Base32hex uses a different alphabet and is designed so that values sort in the same order as the binary they encode, which matters for systems that store encoded keys in a sorted index. TOTP uses standard Base32; some directory standards use Base32hex.
Related Developer Tools
You might also need
Tools from other categories that people pair with the Base32 Encoder: