Base32 Encoder and Decoder

Encode text as Base32 or decode Base32 back to text, using the standard RFC 4648 alphabet of capital letters and the digits 2 to 7. Decoding ignores spaces, dashes, lower case and missing padding, so you can paste a two-factor secret exactly as an app shows it. When the decoded bytes are not text, as with authenticator secrets, they are shown as hex.

Encoding
Direction
Text
Base32

Processing runs in your browser. What you type never leaves this device.

Features

  • RFC 4648 alphabet with optional = padding

  • Decodes lower case, spaces and dashes

  • Binary results shown as hex bytes

  • UTF-8 text in any language

  • Swap to check a round trip

  • Runs in your browser; secrets never leave it

Where Base32 is used

Two-factor authentication

Authenticator apps share their TOTP secret as Base32 (the text under the QR code). Decode it to see the raw key bytes.

Case-insensitive identifiers

Base32 avoids 0/O and 1/l mix-ups and survives being read aloud or typed, which is why some licence keys and file systems use it.

Checking an encoder

Compare your code against the RFC test vectors: foobar encodes to MZXW6YTBOI======.

Base32 versus Base64

How it works

Base32 writes 5 bits per character, so every 5 bytes become 8 characters. It is about 20% longer than Base64 but uses only one letter case and no symbols other than = padding.

Keep secrets private

A TOTP secret is as sensitive as a password. This page decodes it in your browser and sends nothing, but avoid pasting live secrets on shared computers.

Related tools

For the more common Base64, use the Base64 encoder. For hex bytes, use hex to text.

Base32 Encoder and Decoder - FAQ