Technology

How DecodePad works

Detection, decoding, layers, checks, and why none of it leaves your browser.

What happens when you paste

  1. Detect. The input is recognised: JWT, PEM, HTTP Basic, MIME words, data URI, Hex, URL encoding, Base64 or Base64URL, Base64 inside other text, or one value per line.
  2. Decode. Base64 is decoded leniently (whitespace, missing padding, URL-safe characters), and every change is recorded.
  3. Peel layers. The bytes are checked for gzip, zlib, raw DEFLATE and nested Base64 or Hex, up to 10 layers and 64 MiB of decompressed output in total.
  4. Identify. Files are recognised from their first bytes (magic numbers), not from a name. Text is scored against UTF-8, UTF-16 and common legacy charsets, and the best match is shown with its confidence.
  5. Check. A strict RFC 4648 decode is run separately. If it gives the same bytes, the result is Decoded; if fixes were needed, Repaired; if a heuristic decided the outcome, Best guess. The list of checks is one click away under the result.

Where it runs

Open source and verifiable

The engine is published unchanged at github.com/Eastern-Sunrise/decodepad-core under the MIT licence, with its test suite (decoding, charsets, layers, files, errors, AI redaction, the Decoded / Repaired / Best guess rules and the resource limits). Its SHA-256 is shown on the Privacy & Security page, with two ways to check it, and a daily workflow compares the live site with the repository.

What the server does

AI, only when you ask

Built-in rules explain most results on your device. Cloud AI is not connected. When it is, it will run only after you click, and only on a redacted summary you can read first.

See also: supported formats and limitations.