What happens when you paste
- 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.
- Decode. Base64 is decoded leniently (whitespace, missing padding, URL-safe characters), and every change is recorded.
- 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.
- 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.
- 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
- All of this is one script, the
<script id="core">block of the page. The page starts it as a Web Worker, so large inputs do not freeze the tab; a Stop button appears after a moment and the work is stopped after 15 seconds. - The page's Content-Security-Policy sets
connect-src 'none'. The Worker inherits it, so neither can open network connections. This is tested in Chromium, Firefox and WebKit every week. - Decompression uses the browser's built-in DecompressionStream. There are no third-party libraries, fonts or scripts.
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
- Delivers the pages (Cloudflare) and counts anonymous visits: page, referring domain, country and device type, without cookies or stored IP addresses.
- Receives feedback only when you click send, from a separate sandboxed frame that cannot read the page.
- Never receives what you paste or the decoded result.
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.