- Decoding and encoding run in JavaScript inside your browser tab. Your input and the decoded result are not uploaded while you decode.
- The tool page's Content-Security-Policy sets
connect-src 'none', so the browser itself refuses any network connection from the page. - The decoding engine is open source. Its SHA-256 hash is published below so you can compare it with the code your browser actually runs.
- The page loads no third-party scripts, fonts, ads or tracking cookies, and the policy blocks any that something else tries to add. Visits are counted anonymously on the server, without any script in the page.
- Base64 is an encoding, not encryption. Decoded tokens and secrets are still secrets.
Where your data is processed
Verify it yourself: no network requests
- Open the decoder and press F12 (or right-click › Inspect) to open developer tools. Select the Network tab and clear it.
- Paste something to decode, open a file, or try the samples. The Network list stays empty.
- For a stronger test, load the page, then switch off Wi-Fi or tick Offline in the Network tab. Decoding, file previews and downloads keep working.
- The counter in the page header (Local decoding · 0 requests since load) counts the requests the page makes after it has loaded, such as sending feedback.
The exact Content-Security-Policy
This is the policy at the top of the tool page's HTML. You can see it with View Source. The browser enforces it, not our code.
default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src 'self' data: blob:; manifest-src 'self'; media-src data: blob:; frame-src 'self' blob: data:; object-src blob:; font-src data: blob:; worker-src blob:; connect-src 'none'; base-uri 'none'; form-action 'none'
| Directive | What it means for you |
|---|---|
connect-src 'none' | No fetch, XHR, WebSocket or beacon can leave the page. |
script-src 'unsafe-inline' | Only the scripts written into this HTML run. Scripts from any other address, including third-party ones, are blocked. |
form-action 'none' | No form on the page can submit anywhere. |
frame-src 'self' blob: data: | Previews of your own decoded files (PDF, HTML) render from memory only. 'self' allows only our own sandboxed feedback sender. |
worker-src blob: | Lets the page run the decoding engine in a background thread so large inputs do not freeze the tab. The thread is started from the same engine code shown below and is bound by the same policy, so it cannot connect anywhere either. |
default-src 'none' | Everything not listed above is denied. |
The open-source decoding engine
The engine (charset detection, layer peeling, repair, validation) is the <script id="core"> block in the page. When you decode, the page starts a background Worker from exactly this block, so the decoding itself runs in the code covered by the hash. (If a browser cannot start Workers, the same block runs in the page instead.) It is published unchanged at github.com/Eastern-Sunrise/decodepad-core under the MIT licence, with its test suite. A check in that repository downloads this site every day and compares its engine with the published file; the repository's Actions tab shows the latest result.
SHA-256 of the engine served on this site:a96b0f9b61332fa32e911086c574d1f9a3524a970c7bd50f5936d5644a5b97f8
Check it in the browser console on the decoder:
crypto.subtle.digest('SHA-256', new TextEncoder().encode(document.getElementById('core').textContent)).then(b => console.log([...new Uint8Array(b)].map(x => x.toString(16).padStart(2, '0')).join('')))Or independently of the page, from a terminal:
curl -s https://decodepad.com/ | python3 -c "import sys,re,hashlib; h=sys.stdin.buffer.read(); print(hashlib.sha256(re.search(rb'<script id=.core.>(.*?)</script>', h, re.S).group(1).replace(b'\r\n', b'\n')).hexdigest())"
The hash is computed over the text between <script id="core"> and </script> with line endings as LF, encoded as UTF-8. It covers the decoding engine; the page layout and buttons around it are in the same HTML file and can be read with View Source.
Third-party code and requests
| Item | Used? | Notes |
|---|---|---|
| JavaScript libraries or CDNs | None | All code is written into the page. Decompression uses the browser's built-in DecompressionStream. |
| Web fonts | One, built into the page | The headline font (Archivo Narrow, SIL Open Font License) is embedded in the page itself, so no font is downloaded from anywhere. Everything else uses your system fonts. |
| Analytics or tag scripts | None in the page | Visits are counted on the server when it delivers a page. See the privacy policy. |
| Tags added by the host | Blocked | Our host, Cloudflare, can insert its own analytics tag into web pages. The policy above blocks it, so it never runs or sends anything. |
| Cookies | None | One local-storage flag remembers that you have seen the feedback prompt. |
| Ads | None |
What does reach our server
- The page request. Cloudflare delivers the site. We count anonymous visits: page, referring domain, country or region and device type. No IP address, browser string or URL parameters are stored. To count unique visitors per day, the server keeps a one-way hash made with a random value that changes daily and is deleted the next day.
- Feedback, only when you click send. It goes from a separate sandboxed frame that is created at that moment and cannot read the page. It contains your vote, the reason you picked, your note, an email if you give one, and coarse context such as “JSON” or “GBK”. Never your input or result.
- Cloud AI is not connected. The built-in explanations run on your device.
Limits you should know
- Base64 is not encryption. Anyone with the text can decode it. Do not use it to protect secrets.
- Decoding a JWT does not verify it. DecodePad shows what a token says; it does not prove who issued it unless you verify the signature with the right key.
- Your device is part of the picture. Browser extensions and malware on your computer can read any page, including this one.
- Results are not stored, but they stay on screen. Clear the input when you are done with sensitive data, especially on a shared computer.
- Repairs are labelled. When DecodePad has to guess (for example, which character to remove from cut-off data), the result is marked Best guess. A repair can make data decodable; it cannot recover what was lost.
Questions or a security report: contact us.