Base32 to Base64 Converter

Paste a Base32 string (A-Z and 2-7) and instantly get the equivalent Base64-encoded output.

Base32 Input

Examples:

Base64 Output

Enter a Base32 string and click Convert

Copied!

Summary

Paste a Base32 string (A-Z and 2-7) and instantly get the equivalent Base64-encoded output.

How it works

  1. Enter or paste a Base32 string (letters A-Z and digits 2-7) into the input field.
  2. Padding characters (=) and whitespace are stripped; the input is uppercased automatically.
  3. Each Base32 character maps to 5 bits using the RFC 4648 alphabet, building a full bit string.
  4. The bit string is packed into bytes (8 bits each); any trailing partial byte is discarded.
  5. The resulting bytes are re-encoded as standard Base64 (with = padding) and URL-safe Base64 (- / _ alphabet, no padding).
  6. Copy either output with one click.

Use cases

  • Convert TOTP/2FA secret keys from Base32 to Base64 for use in different libraries.
  • Re-encode binary tokens that arrived in Base32 format into Base64 for JWT or HTTP headers.
  • Debug encoding pipelines that mix Base32 and Base64 representations.
  • Verify that two encoded strings represent the same underlying bytes.
  • Learn the difference between Base32 and Base64 character-set trade-offs.
  • Quickly translate key material between encoding schemes during development.

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu