What is a Base32 encoder?
A Base32 encoder turns ordinary words into Base32 code — a string of capital letters A to Z and digits 2 to 7 — and turns Base32 code back into words. Type Hello and it gives you JBSWY3DP. Paste JBSWY3DP in and switch to decode mode, and Hello comes back. The default text on this page is Hello: 5 characters, 8 Base32 characters.
Base32 is a way of writing bytes using only 32 safe characters. Every 5 bits of the text become one character, so the alphabet needs exactly 32 symbols — the 26 capital letters plus the digits 2 to 7, leaving out 0, 1, 8, and 9 because they look too much like the letters O, I, B, and g. That is why Base32 is used where humans have to read or type a code: it is hard to misread.
This tool covers both directions. Encode mode converts each byte to 5-bit groups and writes them with the Base32 alphabet, padding the end with = so the length is a multiple of 8. Decode mode reads the groups back into bytes. Everything runs in your browser — nothing is uploaded, nothing is stored, and there is no account to create. If you work with the more common encoding, a base64 encoder decoder does the same job with 64 characters.
How text becomes Base32: 5 bits per character
The method is simple and exact. Text is stored as bytes, and Base32 reads those bytes as a stream of bits, cutting it into groups of 5. Each group of 5 bits is a number from 0 to 31, and that number picks a character from the alphabet: 0 is A, 1 is B, 25 is Z, 26 is 2, and 31 is 7. The letter H is 72, and the first bits of Hello give J, B, S, W, Y, 3, D, P — the full output is JBSWY3DP.
Five bits per character means the output is longer than the text: 8 bits of input become 8 characters of output for every 5 bytes, so a word of 5 characters becomes 8 Base32 characters, and a sentence of 20 characters becomes 32. The = padding at the end fills the last group up to a multiple of 8 characters — Hello, World! encodes to JBSWY3DPFQQFO33SNRSCC===, with three = signs at the end. The counter above the output shows the character count and the output length, so you can see the ratio for any text you type.
Decoding is the same process in reverse. The tool strips the = padding, reads each character back to its 5-bit number, and joins the bits into bytes. The character J is 9, which is 01001; B is 1, which is 00001 — joined up, the first 8 bits are 01001000, which is 72, which is H. A hex text converter does the same job in base 16, where each byte needs only 2 characters instead of about 1.6 Base32 characters.
Encode vs decode: which mode to use
Encode mode is the one most people want. You have words and you need their Base32 form — for a one-time password secret, a code you have to type, or a system that only accepts Base32. Type or paste the text, and the Base32 appears instantly, padded with = at the end. The default Hello is the fastest way to see the format: eight characters, no padding, because 5 bytes fit exactly.
Decode mode is for the opposite job: you have a string of Base32 characters and you need the words behind it. Paste the Base32, switch the mode, and the text appears. This is the mode to use when an app, a QR code, or a setup key hands you Base32 and asks what it says. It also works as a check on your own encoding — encode a word, copy the Base32, decode it, and the original word should come back exactly.
The two modes are exact inverses for normal text. Anything you can type on a keyboard — letters, digits, punctuation, spaces — survives the round trip unchanged. What does not survive is Base32 that was not made correctly: a character outside A to Z and 2 to 7, like 0, 1, 8, or 9, makes the input invalid, and the tool says so instead of guessing. If your decode fails, check the characters first — a 0 that should be an O is the usual cause.
A worked example: Hello in Base32
Take the default text, Hello. It has 5 characters, so the output has 8 Base32 characters — 5 bytes become 40 bits, and 40 bits cut into groups of 5 give 8 characters. The output is JBSWY3DP: J is 9, B is 1, S is 18, W is 22, Y is 24, 3 is 29, D is 3, and P is 15. No padding is needed, because 8 is already a multiple of 8.
Try a shorter one. A has 1 character, 8 bits, and encodes to IE====== — 2 characters plus 6 padding signs, because 1 byte gives 8 bits, which is one full group of 5 plus 3 leftover bits, padded up to 8 characters. Now decode it back: paste IE======, switch to decode mode, and the tool returns A — 1 character, 8 Base32 characters. The round trip is exact, which is the simplest way to check that an encoding is correct.
A longer example: Hello, World! has 13 characters and encodes to JBSWY3DPFQQFO33SNRSCC=== — 32 characters, with three = signs at the end. The three = signs mean the last group had only 1 byte of real data in it. Once you know Hello and the padding rule, you can read short Base32 strings almost by eye.
Who uses a Base32 encoder, and why
People setting up two-factor authentication are the biggest users. The secret key behind a 2FA app is usually shown as Base32, and a quick encode or decode settles arguments about what a key actually holds. A developer who copies a secret from one app to another uses Base32 every time, because the format is the standard for TOTP secrets.
Developers and hobbyists are the second group. Base32 shows up in file formats, in network protocols, and in systems where a code has to be typed by a human — and a quick conversion settles whether a string is valid Base32 at all. The alphabet is the giveaway: if a code contains a 0 or a 1, it is not Base32, and this tool will tell you so.
Students are the third group. Base32 is taught in computer science courses alongside Base64 and hex, and nearly every course asks students to convert a word by hand. This tool is the answer key: encode the word, check your hand calculation against it, and find the group where you went wrong. The tool on this page handles all of these uses: type, read, copy. It does not store anything, so a secret typed here stays on your device.
Base32 encoder vs other text encoders
Base32 is one of several ways to write text as safe characters, and each has its place. A base64 encoder decoder writes each 3 bytes as 4 characters, so Hello becomes SGVsbG8= — shorter than the Base32 JBSWY3DP, but with mixed capitals, small letters, and digits that are easy to misread. Base64 is the tool for moving text through systems; Base32 is the tool for codes humans type.
A binary text generator writes each character as 8 binary digits, so Hello becomes 40 digits — much longer, and the form computers actually store. Hex is the middle ground: a hex text converter writes each byte as 2 characters, so Hello becomes 48656c6c6f. Base32 sits between hex and Base64 in length, and ahead of both in readability.
The practical rule is simple. Use Base32 when a human has to read or type the code — a 2FA secret, a setup key, a spoken code. Use Base64 when a system has to move text safely. Use hex when you need to read bytes quickly. Use binary when you need to see what a computer stores. All four are the same idea — text written as something else — and knowing which one fits the job is most of the skill.
Common mistakes when working with Base32
The most common mistake is typing a 0 or a 1. Base32 has no 0 and no 1 — the digits are only 2 to 7 — because 0 looks like O and 1 looks like I. A code copied by hand often has a 0 where an O should be, or a 1 where an I should be, and the decode fails. Check the characters first: if the string has a 0, 1, 8, or 9 in it, it is not valid Base32.
Second: forgetting the padding. The output is padded with = to a multiple of 8 characters, and a decoder that expects padding will reject a string without it. This tool accepts Base32 with or without padding, but other systems may not — if a system rejects your code, add the = signs back at the end.
Third: mixing up upper and lower case. Base32 uses capital letters only — JBSWY3DP, not jbswy3dp. This tool accepts lower case and converts it, but some systems do not, and a lower-case code can fail silently. Keep the capitals when you copy a code into another app.
Fourth: assuming Base32 is encryption. It is not. Base32 is just another way of writing the same text, and anyone can decode it in seconds — this page does it for free. If a message needs to stay secret, Base32 will not keep it secret; it only makes it longer and easier to type. Real secrecy needs a cipher or a password, not a change of base.
How to use this Base32 encoder
Using this Base32 encoder is simple. Type or paste your text into the box — Hello is already there as the default. Leave the mode on Encode, and the Base32 appears in the output box below, with the output length, the input character count, and the input check shown above it. Copy the output with the copy button, or select it by hand.
To decode, paste Base32 into the same box and switch the mode to Decode. The words appear in the output box. If the tool says Invalid, check that every character is A to Z or 2 to 7, with no 0, 1, 8, or 9 — that fixes nearly every failed decode. If the text needs tidying first, a case converter can fix the capitalisation before you encode it.
Everything runs in your browser. No sign-up, no account, no data sent anywhere — your text never leaves your device, and the page works offline once it has loaded. Try it with something real before you need it: type your name, read its Base32, decode it back, and watch the round trip land exactly. Once you have done it twice, converting text to Base32 stops feeling like a puzzle and starts feeling like reading.