Why You Should Never Paste Production JWTs or API JSON into Cloud Formatters
Every developer has done it at least once during an incident: you copy a failing API response or a bearer token from staging or production, open the first online JSON formatter or JWT decoder in search results, and paste
Every developer has done it at least once during an incident: you copy a failing API response or a bearer token from staging or production, open the first online JSON formatter or JWT decoder in search results, and paste it in.
It feels harmless because you just want readable indentation or a decoded exp claim. The problem is that many web utilities are not running purely in your browser.
1. The Hidden Risk of Server-Backed Web Formatters
A JWT is not encrypted by defaultβit is just three Base64URL-encoded segments (header.payload.signature). Even without your signing secret, anyone who receives that token can immediately read its claims (user IDs, emails, roles, tenant IDs, internal scopes) and, until it expires, replay the token against your APIs.
When you paste a live JWT, OAuth payload, or customer API JSON into a server-backed utility, your data can end up in:
- HTTP access logs & APM traces (request bodies, query strings, or error payloads captured by reverse proxies and observability agents)
-
Analytics & session-replay scripts (third-party trackers recording DOM mutations or
textareainputs before sanitization) - Database or cache retention (for "shareable link" features or debugging dumps that sit unencrypted long after you close the tab)
Even if the tool claims it "doesn't store your data," server round-trips and third-party scripts create unnecessary exposure surfaces.
2. How to Verify Any Online Dev Utility in 5 Seconds
Before trusting a browser tool with sensitive tokens or customer payloads, run this quick two-step audit:
-
Inspect the Network Tab: Open Chrome DevTools (
F12orCtrl+Shift+I), switch to the Network tab, filter by Fetch/XHR (and WS for WebSockets), and paste dummy data into the tool. If clicking Format or Decode triggers an outbound request carrying your payload, the tool is sending data to a server. - Test Offline Execution: Load the page, then toggle Offline in DevTools Network throttling (or turn off Wi-Fi / enable Airplane Mode). A truly client-side utility will continue formatting JSON and decoding JWTs locally in memory with zero network access.
3. Safer Local Alternatives (CLI and Zero-Upload Browser Tools)
For day-to-day debugging, keep sensitive payloads on your own machine:
Local CLI One-Liners
# Pretty-print JSON locally with jq
pbpaste | jq .
# Or using Python's built-in module (no extra packages)
cat response.json | python3 -m json.tool
# Decode a JWT payload locally with Node.js (no signature verification)
node -e "const p=process.argv[1].split('.')[1]; console.log(JSON.parse(Buffer.from(p,'base64url').toString()))" "<YOUR_JWT>"
Zero-Upload Client-Side Browser Utilities
When you prefer a visual UIβfor example to inspect nested JSON trees, check human-readable iat/exp timestamps, or share a tool across teammates without CLI setupβchoose utilities that execute 100% locally in browser RAM and work offline as a PWA.
Disclosure: I built Tooltable (https://tooltable.info) at ReFind Global Studio, which runs a client-side JWT Decoder and JSON Formatter locally in your browser with offline PWA support.
Whatever tool you choose, make the 5-second Network-tab check a habit before pasting anything from production.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.