Skip to content
Jellykit

Base32 Encoder & Decoder

Encode text or bytes to RFC 4648 Base32, or decode it back, in the standard or extended hex alphabet.

  • Runs on your device
Loading tool

About Base32 Encoder & Decoder

Base32 writes bytes with only capital letters and the digits 2 to 7, so it survives places that ignore case or mangle punctuation: authenticator app secrets, file names, DNS labels and anything read aloud. This tool encodes and decodes it as you type, in the standard alphabet or the extended hex variant (0–9, A–V) from the same standard.

Decoding accepts lower case, spaces, dashes and missing padding, which is how TOTP secrets are usually shown. You can also encode raw bytes written in hex, or see decoded bytes as hex when they are a key rather than text.

How it works

  1. Encoding reads your input as UTF-8 text (or as hex bytes), takes it five bits at a time and writes each group as one character of the chosen alphabet.
  2. Padding with = rounds the output up to a multiple of eight characters, as RFC 4648 describes. Many TOTP secrets leave it out; turn it off to match.
  3. Decoding ignores case, spaces and dashes, accepts missing padding, and stops with a clear message at a character outside the alphabet or a length that cannot hold whole bytes.

Questions

Can I check the secret behind my authenticator QR code?

Yes. Paste the secret with the alphabet on Standard and Bytes as set to Hex to see the raw key bytes. Everything runs in your browser and nothing is sent anywhere, but treat the secret as a password all the same.

What is the difference between standard and extended hex Base32?

Both come from RFC 4648. Standard uses A–Z and 2–7 and avoids digits that look like letters. Extended hex uses 0–9 and A–V, which keeps the encoded text in the same sort order as the bytes.

Why does decoding show hex instead of text?

The decoded bytes are not valid UTF-8, which usually means they are a key or other binary data. Hex shows every byte faithfully instead of a garbled string.

How large an input can it handle?

Up to 5 MB of text, which is far more than any secret or identifier needs.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.