Skip to main content
Encoders100% FreeInstant

Base32 Encoder and Decoder: Text to Base32 and Back

This free tool encodes text into Base32 using the RFC 4648 alphabet and decodes Base32 back into text. Base32 is used for one-time password secrets, file names and case-insensitive identifiers.

By Debmedia Technologies LLP · Kolkata, India · Updated

What Is It and When Do You Need It?

Base32 turns bytes into letters and digits that survive being typed, spoken or stored in case-insensitive systems. Developers meet it in two-factor authentication secrets and in identifiers that must not be confused with similar-looking characters.

Choose a direction, paste your text and read the result.

How to Use This Tool

  1. Paste text to encode, or Base32 to decode.
  2. Choose the direction.
  3. Choose whether padding is used.
  4. Press Convert and copy the result.

How the Calculation Works

Text is first turned into UTF-8 bytes. The bytes are read five at a time, which is 40 bits, and split into eight groups of five bits. Each group picks one character from the alphabet ABCDEFGHIJKLMNOPQRSTUVWXYZ234567. Decoding reverses the steps and then reads the bytes as UTF-8.

Worked Example

The text Hello becomes JBSWY3DP. The text foobar becomes MZXW6YTBOI======, which matches the test vectors in RFC 4648.

Common Uses

  • Reading and writing authenticator secrets.
  • Case-insensitive identifiers.
  • Debugging protocols.
  • Teaching encodings.

Tips and Common Mistakes

  • Base32 is an encoding, not encryption.
  • Decoding ignores spaces and case.
  • A wrong character count means the data is cut off.

Next, you may need the Base58 encoder, string escape tool, checksum calculator, ASCII table.

Everything runs in your browser. Nothing you type is uploaded, stored or sent to any outside service.

Frequently Asked Questions

Base32 writes binary data using 32 safe characters: the letters A to Z and the digits 2 to 7. It avoids look-alike characters such as 0 and O.
Authenticator app secret keys (TOTP), some file systems, onion addresses and places where case does not matter.
Every 5 bytes become 8 characters, so Base32 is about 60 percent larger than the original.
Equals signs fill the last group to a multiple of 8 characters. Many systems accept Base32 without them.

Disclaimer: results are calculated in your browser from the numbers you enter. Check important results before you rely on them for money, health, safety or legal decisions.