Skip to main content
DevTools24

Base32 Encoder/Decoder

Encode and decode Base32 text. Commonly used in TOTP authenticator secrets and file sharing systems.

About Base32:
  • • Uses 32 characters: A-Z and 2-7
  • • Case-insensitive (unlike Base64)
  • • No special characters that could be confused
  • • Commonly used in TOTP (2FA), file hashes, and data encoding
  • • 20% less efficient than Base64 but more human-readable

Base32 Encoding (RFC 4648) - Technical Details

Base32 encoding uses a 32-character alphabet (A-Z and 2-7) to represent binary data. It's commonly used for TOTP secrets because it's case-insensitive and avoids ambiguous characters. The encoding increases data size by approximately 60% but provides human-readable output.

Command-line Alternative

# Using Python
python3 -c "import base64; print(base64.b32encode(b'Hello').decode())"

# Decode
python3 -c "import base64; print(base64.b32decode('JBSWY3DP').decode())"

Reference

View Official Specification