What this tool does
This tool encodes text into Base32 and decodes Base32 back into text. Base32 is a way of writing any text using only the 26 capital letters from A to Z and the digits 2 to 7. It is the encoding used for the secrets behind authenticator apps, the apps that generate login codes.
The tool works in both directions. Type plain text and press Encode, and you get a Base32 code with padding equals signs at the end. Paste a Base32 code and press Decode, and you get the original text back. A copy button puts the result on your clipboard.
Base32 exists because some systems can only handle simple characters. An authenticator secret must be typed or scanned without confusion, so it uses letters and digits that look clearly different. There is no 0, no 1, no 8 and no 9, because those look too much like the letters O, I and B.
How to use the tool
To encode, type your text in the box. The default text is hello, so you can see the tool working right away. Press Encode to Base32, or just type and watch the code update on its own. The result appears in large text and in the result line below the tool.
To decode, paste a Base32 code into the same box and press Decode from Base32. The code can include the padding equals signs at the end, or leave them off: the decoder handles both. Lower case letters work too, because the tool converts the code to upper case first.
Press Copy result to copy the output. Then paste it wherever you need it: an authenticator app setup, a settings file, or a message to a colleague. The tool never sends your text anywhere; everything runs in your browser.
Worked example: encoding “hello”
Suppose you type the word hello and press Encode. The tool reads each letter as 8 bits, groups the bits into chunks of 5, and turns each chunk into a character from the Base32 alphabet. The word hello becomes NBSWY3DP. That is the full Base32 code for hello, with no padding needed because the length works out exactly.
Try a shorter word to see the padding. The single letter f becomes MY======. The first two characters carry the real data, and the six equals signs fill the code up to a multiple of 8 characters. The word foo becomes MZXW6===, with three equals signs of padding.
Now decode NBSWY3DP. The tool turns each Base32 character back into 5 bits, regroups them into bytes of 8 bits, and reads the bytes as letters. The result is hello again, character for character. Encoding and decoding are exact reverses of each other, so nothing is lost.
Use cases
The most common use is authenticator secrets. When you set up two-factor authentication, the app or website gives you a secret key, often shown as a Base32 code or a QR code that holds one. This tool lets you check what a secret decodes to, or encode your own text into the same format.
Developers use Base32 in settings files and URLs where only safe characters are allowed. A Base32 string has no plus signs, slashes or mixed case to cause trouble, so it survives copy and paste, email and printed pages without breaking.
Honest limitations
Base32 is an encoding, not encryption. Anyone who sees a Base32 code can decode it in seconds with a tool like this one. Never treat a Base32 code as a secret on its own. The security of an authenticator secret comes from keeping it private, not from the encoding.
Base32 makes text about 60 percent longer. A short word becomes a longer code, and a long document becomes much longer still. For large files, a denser encoding like Base64 is a better choice.
This tool handles plain text, including letters, digits and punctuation, but very long texts may be slow in the browser. For a whole file, use a command line tool instead of a web page.
Frequently asked questions
What is Base32 used for? The best known use is authenticator secrets for two-factor login codes. Apps like Google Authenticator and Authy store the secret as Base32, and the QR code you scan holds the same Base32 text.
Why are there equals signs at the end? Base32 output must be a multiple of 8 characters, so the encoder adds equals signs as padding when the data does not fill the last group. The padding carries no data and the decoder ignores it.
Why is there no 0, 1, 8 or 9 in Base32? To avoid confusion when people read or type the code. The digit 0 looks like the letter O, 1 looks like I, and 8 looks like B. Base32 drops those four digits and keeps only 2 to 7.
También disponible en español: Codificador De Texto A Base32 – Codifica Texto Para Secretos
