The quick answer

Base32 encodes every 5 bytes as 8 characters from a 32-symbol alphabet, A-Z and the digits 2-7, chosen so case never matters and 0, 1, 8 and 9 never appear. The text Hello becomes JBSWY3DP. This tool encodes and decodes live in your browser on every keystroke, with nothing uploaded and no account required.

What Base32 is, and why it exists

Base32 (RFC 4648) is the encoding for data that humans or case-insensitive systems have to handle. Its alphabet is 32 symbols, the 26 letters A-Z plus the digits 2 through 7, deliberately excluding 0, 1, 8 and 9 so an O-versus-0 or I-versus-1 misreading cannot corrupt the value. Lowercase and uppercase decode identically, which is the property that earns Base32 its keep.

The two places you have already met it: TOTP authenticator secrets, where the key format inside the QR code is Base32 by convention, and case-tolerant identifiers that must survive being spoken aloud, printed, or stored on case-insensitive filesystems.

The cost of that human safety is size, and the three encodings trade differently:

EncodingAlphabetSize vs raw bytesCase-insensitive decoding
Hex16 symbols (0-9, a-f)2× (100% larger)Yes
Base3232 symbols (A-Z, 2-7)1.6× (60% larger)Yes
Base6464 symbols (A-Z, a-z, 0-9, + and /)1.33× (33% larger)No
Same bytes, three notations; the human-safety buys its size.

What this encoder does

The Base32 Encoder converts text to RFC 4648 Base32 and back, live on every keystroke. Paste plain text and get the encoded form with correct = padding; paste a Base32 string in any letter case and get the decoded text. The conversion runs entirely in your browser: no request, no storage, and the page works offline once loaded.

The interface is two text panes with an Encode/Decode pair of buttons beneath them, and the Load example link fills the input with Hello. Problems announce themselves instead of producing garbage: a string containing a digit the alphabet does not have draws an Invalid base32 character note under the output. The tool belongs to the encoding and security collection, and it pairs naturally with the Base64 Encoder/Decoder and the URL Encoder/Decoder.

Encoding or decoding, step by step

The encoder is deliberately minimal, and there is a right order of operations that gets you to a trustworthy result fastest.

  1. Load the example, or paste your own data

    The Load example link drops Hello into the input pane, and the output shows JBSWY3DP before you have typed anything. Otherwise paste your own text or Base32 string.

  2. Pick the direction

    The Encode and Decode buttons beneath the panes set the direction, and the output pane recomputes live as you type: no run button, no page reload.

  3. Watch the note bar

    Decoding problems surface as notes instead of silently degrading: a string containing 0, 1, 8 or 9 draws an Invalid base32 character note under the output, because those digits are not in the alphabet.

  4. Copy, download or chain

    Copy puts the result on your clipboard; Download writes it as encoded.txt; Use as input pipes the output back into the input pane for the reverse pass, which is the fastest round-trip test.

  5. Clear when done

    Clear empties the input in one click. Because processing is local, there is no history and no server copy: close the tab and everything you typed is gone.

The alphabet and the 5-bit arithmetic

The arithmetic is 5-bit groups. Each Base32 character carries exactly 5 bits of payload, so 5 input bytes (40 bits) become exactly 8 characters, the cleanest ratio in the encoding family. Text shorter than a full block pads with = characters: 3 bytes produce 5 characters plus 3 pad signs, 1 byte produces 2 characters plus 6, and output length is always a multiple of 8.

Two conventions matter in practice. Case is insignificant, because the decoder uppercases its input before matching: ifcem=== and IFCEM=== decode identically, both to the three bytes ADF. Padding is strict on the encode side, since output lengths are always a multiple of 8, with = filling the gap. On the decode side this engine tolerates truncated input rather than raising an error, which is the first gotcha listed below.

Base32 Encoder: two encodings you can verify by hand

Input

Hello
Hello! + the bytes DE AD BE EF

Output

JBSWY3DP
JBSWY3DPEHPK3PXP

A worked example you can check by hand

Watch the ratio work on real text. Hello is 5 bytes, and encoding it produces exactly 8 characters, JBSWY3DP, no padding needed: 5 bytes × 8 bits = 40 bits = 8 characters × 5 bits. Extend it to Hello! plus the bytes DE AD BE EF and you get JBSWY3DPEHPK3PXP, the 16-character demo secret that turns up in TOTP examples; 10 bytes = 80 bits = 16 characters, the same alphabet math. Decode either string here and the original bytes come back untouched, because the examples on this page were computed by the tool's own code.

Who encodes to Base32

Three jobs account for most of the traffic on this page.

  • App developers wiring TOTP: two-factor secrets must survive a QR code, an OCR scan and manual typing by a human at 1 a.m., which is the abuse Base32 was built for: case-insensitive, no ambiguous digits. Generating and verifying the secret's Base32 form locally keeps an unactivated 2FA credential off every server it does not belong on.
  • Systems engineers: license keys, activation codes and short identifiers that get printed on paper, read over the phone or stored on case-insensitive filesystems all favor the 32-symbol alphabet. Sixteen Base32 characters carry 80 bits, enough for a reasonably strong key, without a single 0-or-O judgment call.
  • Students: Base32 rounds out the encoding family lesson: hex doubles, Base64 grows by a third, Base32 grows by 60%, and the trade buys human readability. Encoding Hello by hand into JBSWY3DP, 5 bits at a time, is the exercise that makes bit-level encoding click.

Your strings never leave the browser

Encoding runs on your machine, and the inputs people bring here are exactly the sensitive kind: drafts, documents, credentials, financial figures, TOTP seeds. Local processing is the architecture rather than a feature; the site's identity lookups, the pages that do phone home, say so on their own pages, and this one makes no requests at all.

Compared with Base64 and hex

Every tool here could be replaced by something else. The comparison shows what Base32 trades and what it refuses to trade away.

AlternativeWhy people pick this page instead
Command-line tools (base32)Identical output with zero page load, once you remember which package provides the binary; the tab needs no install
Language libraries (base64.b32encode)What production code calls; the tab is for one-off secrets and for verifying what a library emitted
Online convertersSame math, but a TOTP secret crossing a network for a conversion gains nothing and risks plenty

Base32 wins the frequency band most encoding tasks actually occupy: one paste, one answer, nothing installed, nothing transmitted.

Field notes: encoding for humans

The distilled usage advice for this page is two habits and two failure patterns.

  • Validate on arrival: the Load example link drops Hello in and JBSWY3DP out. If that pair ever disagrees, the engine is broken and the contact page wants to know.
  • Chain tools when a workflow needs more than one step: the related-tools links below are ordered by what people typically combine, and outputs copy cleanly between them.

When something behaves unexpectedly, the causes are almost always one of these two:

  • A pasted string decodes to nonsense: check for 0, 1, 8 or 9 in it. Those digits are not in the Base32 alphabet, so their presence means you are holding hex or a different encoding, and this decoder says so with an Invalid base32 character note.
  • A truncated string decodes to fewer bytes than expected: the decoder does not enforce the multiple-of-8 length, so a lost character shortens the output silently (JBSWY3D, seven characters, decodes to Hell, four bytes). Count the length mod 8 yourself before trusting a hand-copied string.

Frequently asked questions

These are the questions people actually search about Base32, answered directly. If yours is missing, the contact page takes feature and question requests.

Why is Base32 used for TOTP secrets?

Because two-factor secrets must survive the worst conditions in computing: humans reading them off a QR code, typing them into an authenticator, sometimes saying them aloud. Base32 is case-insensitive and omits the ambiguous digits 0, 1, 8 and 9, so no O-versus-0 or I-versus-1 judgment can corrupt the secret. The demo secret JBSWY3DPEHPK3PXP decodes to Hello! followed by the bytes DE AD BE EF.

Is the Base32 Encoder free to use?

Free, with no strings attached: no signup, no email wall, no daily quota. Everything runs on your machine after the page loads, so usage does not scale anyone's hosting bill. The only limit is the one your browser itself imposes.

Does Base32 need a key to decode?

No. Base32 is an encoding, not encryption, and reverses without any key. Its job is making bytes safe for humans and case-insensitive systems, not keeping them secret. A TOTP secret in Base32 is readable by anyone who obtains the string; secrecy comes from never sharing it.

Can I use the Base32 Encoder offline?

Yes: after the first load, the page needs no network at all, because encoding and decoding are pure local computation. It is a useful property to verify yourself: switch off Wi-Fi and encode something; everything keeps working, which is also the proof nothing transmits.

Does the Base32 Encoder work on mobile?

Yes. The controls, spacing and keyboard behaviour work on phone screens, including the on-screen keyboards where lowercase and uppercase are easy to mix; since Base32 decoding ignores case, that mixing costs nothing here. Any current browser works.

Do you store what I enter into the Base32 Encoder?

No. The tool is entirely client-side: your input stays in the browser tab, nothing is transmitted or retained server-side, and a refresh resets everything to blank. There is no input field on any server to store.

What to reach for next

The tools below pair with this one because people chain them in real workflows, not for keyword decoration.

  • Base64 Encoder/Decoder: the denser sibling when case-insensitivity does not matter.
  • TOTP Code Generator: the consumer of Base32 secrets, where the alphabet's properties get used in anger.
  • URL Encoder/Decoder: percent-encoding, the other text-safe transport.
  • URL-Safe Base64 Encoder/Decoder: the URL-friendly Base64 variant for tokens in URLs.
  • HTML Entity Encoder/Decoder: named and numeric entities for markup-safe text.

Sources and further reading

Base32 is one alphabet, one bit-grouping rule and a padding convention, reversible, running entirely on your device. The pages below document the rule and where it gets used, from the RFC that defines it to the TOTP algorithm that leans on it.

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.