Base32 Encoder & Decoder
Convert text to Base32, used in 2FA secret keys, file names and IDs, or decode Base32 back to readable text.
How to use the Base32 Encoder
- Choose encode or decodeEncode turns text into Base32; decode turns Base32 back into text. Spaces, dashes and padding are ignored when decoding.
- Pick the alphabetRFC 4648 is the standard (used for 2FA keys). Base32hex keeps sort order; Crockford avoids look-alike letters and accepts O as 0 and I or L as 1.
- Copy the resultTurn padding off or use lowercase if the system you use expects it.
Example
Hello, MagikNex! (16 bytes) encodes to JBSWY3DPFQQE2YLHNFVU4ZLYEE====== in standard Base32.
Decoding MZXW6YQ= gives foob. Every 5 bytes become 8 Base32 characters.
Frequently asked questions
Where is Base32 used?
In 2FA secret keys for authenticator apps (TOTP), in DNS and file names where case does not matter, and in some IDs. It only uses capital letters and digits 2–7, so it survives case changes.
Why is Base32 longer than Base64?
Base32 stores 5 bits per character and Base64 stores 6, so Base32 output is about 60% longer than the input, against 33% for Base64.
What is Crockford Base32?
A version designed for people to read and type. It leaves out I, L, O and U to avoid confusion, and is used in ULIDs and some order or license codes.