Skip to content
Tools Without AI

Prefer toolswithoutai.com in Google Search so our tools and guides show up more often. Google has to confirm it — we cannot set this for you.

Base32 encoder / decoder

Encode or decode Base32 (RFC 4648) in your browser. Text stays in this tab.

No uploads. No account. Free to use.

Prefer toolswithoutai.com

Opens Google’s picker with toolswithoutai.com pre-filled.

Under the Hood: The Architecture of Base32 Decoder

Base32 shows up in TOTP secrets and Crockford-ish dumps. Decoding on a website that logs input is how seeds leak. This decoder uses a 32-character alphabet, bit buffer, and TextDecoder. Local only.

Memory Allocation & Browser Threading Mechanics

Linear scan of the cleaned string. Byte array then UTF-8 decode. Main thread.

Algorithmic Deep-Dive: Code Snippet & Logical Analysis

const ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
function decodeBase32(input) {
  const clean = input.toUpperCase().replace(/=+$/, "").replace(/\s/g, "");
  let bits = 0, value = 0;
  const bytes = [];
  for (const ch of clean) {
    const idx = ALPHABET.indexOf(ch);
    if (idx < 0) throw new Error("Invalid Base32 character.");
    value = (value << 5) | idx;
    bits += 5;
    if (bits >= 8) {
      bytes.push((value >>> (bits - 8)) & 255);
      bits -= 8;
    }
  }
  return new TextDecoder().decode(new Uint8Array(bytes));
}

Padding equals are stripped. Whitespace ignored. Invalid alphabet throws rather than skipping (skipping would hide corruption). Output is UTF-8 text, not hex.

The Local Storage Sandbox & Volatile Data Pipelines

Input/output strings. No persistence of TOTP material—leave the page.

Verifying True Privacy: How to Audit Your Browser's Network Tab

F12, Network, clear, decode a dummy secret. HAR must not contain it.

  • Files never leave your device
  • Runs entirely in your browser
  • No signup required
  • Free

What is Base32 encoder / decoder?

Base32 encode/decode implements RFC 4648 in the tab (alphabet A–Z and 2–7).

How to use it

  1. Paste text or Base32.
  2. Encode or decode locally.
  3. Copy the result.

When to use it

TOTP secrets and some keys travel as Base32. Decoding them on a random website is unnecessary.

Frequently asked questions

Are my files uploaded?

No. This tool runs in your browser. Files and text stay on your device and are not sent to our servers.

Does this use AI?

No. It is a deterministic utility. There is no model and no third-party processing of your data.

Related tools

More in Developer tools.