Home / Convert / Base32 Encode/Decode
🧩 Base32 Encode/Decode
Base32 Encode/Decode – get instant, free results right on your device.
Uses the RFC 4648 Base32 alphabet (A-Z and 2-7). Base32 is an encoding, not encryption; secret keys in systems such as TOTP are displayed in this format. Not an official institution.
Last updated: November 2026 · Parameter year: 2026 · Methods and sources: Methodology · Editorial policy
What is Base32 Encode/Decode?
Base32 is an encoding method that converts binary data to text using a 32-character alphabet (A-Z and 2-7) (RFC 4648). It is more resistant to confusion between uppercase and lowercase, so it is used for values that are typed by hand, such as secret keys in two-step verification apps. Compared with Base64, the output is longer.
Choose the operation: Text → Base32 or Base32 → Text. When encoding, you can choose to add padding characters (=) at the end. For example, the text “foobar” becomes MZXW6YTBOI======. When decoding, lowercase letters, spaces, and = characters are tolerated; if an invalid character is entered, the tool tells you which character is wrong.
Base32 is an encoding, not encryption, and provides no secrecy. If the decoded data is not valid UTF-8 text, the tool gives an error. The input is not sent to a server; it is processed in the browser. For another encoding, you can see the Base64 Encode/Decode tool.
How to use
Fill in these fields: Operation, Padding, Input. Then press the button; the result appears on the same page and your data never leaves your device.
Formula
foobar → MZXW6YTBOI======
Example
foobar → MZXW6YTBOI======
Worked examples and tips
Example 1: When you convert the classic test string foobar to Base32 with the padding option turned on, you get the output MZXW6YTBOI======. The equals signs at the end are padding added to complete the encoded bits to a 40-bit block.
Example 2: If you encode the word Merhaba without padding, the result is JVSXE2DBMJQQ. In some systems, for example codes that will be placed in a URL or backup keys typed by hand, the equals sign causes problems, so the unpadded form is preferred. In the reverse direction, if you decode the input MZXW6YTBOI====== from Base32 to text, foobar comes back.
Tips and common mistakes: Base32 uses only the letters A-Z and the digits 2-7; if you see 0, 1, 8 or 9 in the code, you are most likely dealing with Base64 or a wrongly copied text. Some libraries reject codes written in lowercase, so converting to uppercase first helps. Remember that this is not encryption, only a representation format; anyone can decode the encoded data. Because Turkish characters are encoded via their UTF-8 bytes, the output may be longer than you expect.
When is it useful? It is handy for reading the secret keys of two-factor authentication apps, generating identifiers on case-insensitive file systems, or preparing short codes that a person can read aloud.
Frequently asked questions
Base32 Encode/Decode – how to use it?
Fill in the fields and press the button; the result appears instantly. Example: foobar → MZXW6YTBOI======
Base32 Encode/Decode – is it free, and is my data stored?
Yes, it is free and requires no sign-up. Because processing happens in your browser, the information you enter is not sent to a server.
Related guide
- What Are ROT13 and the Caesar Cipher? Worked Example, Cracking Method and Limits – Caesar cipher and ROT13 step by step: a MERHABA example, the 29-letter Turkish alphabet, cracking by trying 25 keys, frequency analysis, one-line code.
- What Is Base32? Base32 vs Base64, Step-by-Step Encoding and TOTP Keys – How does Base32 work? Encode 'foo' to MZXW6=== bit by bit, compare sizes with Base64 and hex, and see why two-factor secrets are shown in Base32.