Why You Should Never Paste Sensitive Data Into Online Tools
By Álvaro G.V. · Updated
Every developer has done it: you need to quickly format a JSON blob from a production API response, decode a JWT from a live system, or check a database URL — so you paste it into the first online tool that comes up in search. It takes two seconds, it's convenient, and it feels harmless. It isn't.
The short answer: if a tool processes your input on its server, everything you paste can end up in that server's logs, database or backups, outside your control. Secrets, tokens and production data belong only in tools that run locally: your terminal, your editor, or a web tool that works entirely in the browser and makes no network request with your input.
Every tool on DevEssentials, from the JSON formatter to the JWT decoder and the password strength checker, runs in your browser for exactly this reason.
What Counts as Sensitive Data?
Before getting into the risk, it helps to be clear about what "sensitive data" actually includes when using developer tools:
- API keys and tokens — AWS, Stripe, GitHub, OpenAI, Twilio, SendGrid
- JWT tokens — contain encoded user identity, roles, and session info
- Database connection strings — include credentials, host, and database name, usually kept in .env files
- Private keys and certificates — TLS/SSL private keys, SSH keys
- OAuth secrets — client IDs and secrets for third-party integrations
- Passwords — in any format, including hashed
- Production data — customer records, PII, financial data in JSON or CSV
- Internal URLs and hostnames — can reveal infrastructure
If the data could be used to access a system, impersonate a user, or extract business information — it's sensitive. When in doubt, treat it as sensitive.
What Actually Happens When You Use a Server-Side Tool
Most online developer tools — JSON formatters, JWT decoders, base64 encoders, URL parsers — look identical in the browser whether they're client-side or server-side. But there is a fundamental difference in what happens when you click "Format" or "Decode":
Client-side tool
Your input is processed by JavaScript running in your browser. Nothing leaves your machine. The tool's server never sees your data.
Server-side tool
Your input is sent as an HTTP request to the tool's server, processed there, and the result is returned. The server has received your data. What happens to it after that depends on the tool's logging configuration, analytics setup, and the honesty of its operators.
What a single paste can reveal
It is not only obvious secrets. Ordinary debugging tasks leak more than people expect:
- Formatting an API response exposes user IDs, emails, internal service names and the shape of your data model.
- Formatting a SQL query reveals table names, column names and join patterns: a map of your schema.
- Diffing two config files often includes database URLs, feature flags and internal hostnames, and sometimes a key someone forgot to move to an environment variable.
- Hashing a real password to see what an algorithm produces sends the plaintext password to the tool, not just the hash.
That server may log requests (standard practice for debugging and analytics). The logs may be stored in a database that has weaker security than your production systems. The operator may sell aggregate data. The site may be using third-party analytics that records request bodies. Or, in the worst case, the operator may be intentionally harvesting credentials.
The JSONFormatter and CodeBeautify Incident
This isn't theoretical. In a documented incident, JSONFormatter.org and CodeBeautify.org — two of the most popular developer tool sites, used by millions of developers monthly — exposed 5 GB of user data including API keys, database passwords, JWT tokens, and internal credentials.
The data came from developers who had pasted production credentials into these tools, either directly (a JWT with a user token) or embedded in larger JSON payloads (an API response containing keys). The tools processed the data server-side and stored it.
Read the full breakdown: The JSONFormatter & CodeBeautify Data Leak
JWT Tokens: The Most Common Case
JWT tokens are a particularly dangerous thing to paste into online tools. A JWT looks like random text (three Base64url segments separated by dots), but the payload is readable JSON with real data:
// A typical JWT payload (decoded) from a production system:
{
"sub": "user_8f2a1b3c",
"email": "alice@company.com",
"role": "admin",
"org_id": "org_9d4e2f1a",
"permissions": ["read:all", "write:all", "delete:all"],
"iat": 1712600000,
"exp": 1712686400
}
If this token is valid and not yet expired, anyone who has it can authenticate as that user until exp, because most APIs accept a bearer token from whoever presents it. Pasting it into a server-side decoder hands that capability to the tool's operator. Even after it expires, the email, role and tenant ID inside it are still personal and organisational data.
| Token | Risk | Why |
|---|---|---|
| Live production access token | High | Usable as-is until exp; contains real user data |
| Production refresh token | Highest | Can mint new access tokens, often valid for days or weeks |
| Expired production token | Medium | Cannot authenticate, but the claims are still real PII |
| Staging token | Medium | Staging often holds copies of real data and reveals your claim structure |
| Token you signed locally with fake claims | Low | Nothing real to leak, as long as the claims really are fake |
Decode a JWT without sending it anywhere
Decoding needs no key and no server: the header and payload are Base64url-encoded JSON. In the browser console, convert the URL-safe alphabet back to standard Base64 before calling atob, which otherwise rejects - and _:
const token = "<paste the JWT here>";
const b64 = token.split(".")[1].replace(/-/g, "+").replace(/_/g, "/");
const bytes = Uint8Array.from(atob(b64), (c) => c.charCodeAt(0));
console.log(JSON.parse(new TextDecoder().decode(bytes))); // UTF-8 safeOr in a terminal with Node.js 16 or later:
node -e 'const p = process.argv[1].split(".")[1];
console.log(JSON.parse(Buffer.from(p, "base64url").toString("utf8")))' "$TOKEN"The JWT decoder here does the same thing in your browser and also shows the expiry in readable form.
Decoding is not verifying
Reading the payload proves nothing about whether the token is genuine; anyone can craft a JWT with any claims. Verification checks the signature with the HMAC secret or the issuer's public key (see how JWT authentication works). Never paste a signing secret into a web tool to "verify" a token: a leaked HMAC secret lets whoever has it sign tokens your API will accept. Verify in your backend or locally with your JWT library.
How to Spot a Server-Side Tool
The easiest test: open DevTools → Network tab, paste something into the tool, and click the action button. Watch for outgoing requests.
- No outgoing requests → client-side. Your data never left the browser.
- XHR or Fetch request to the tool's domain → server-side. Your data was sent to their server.
A second test: disconnect from the internet and try the tool. Client-side tools continue working. Server-side tools fail.
Two caveats. Clear the Network tab after the page loads, so you only see requests triggered by your input, and check the request payload rather than just the URL: analytics beacons are normal, but a request whose body contains your text is not. Some tools also offer "save" or "share" links; those always upload your input, even when formatting itself is local. Saved and shared snippets are what the JSONFormatter and CodeBeautify exposure consisted of.
Safe Alternatives: Client-Side Tools
All tools at devessentials.dev run 100% in your browser. Your data is never sent to a server. You can verify this yourself using the Network tab — no outgoing requests when you use any tool here.
| Task | Safe tool |
|---|---|
| Format or validate JSON | devessentials.dev/json-formatter |
| Decode a JWT token | devessentials.dev/jwt-decoder |
| Encode/decode Base64 | devessentials.dev/base64 |
| Encode/decode URLs | devessentials.dev/url-encoder |
| Validate YAML | devessentials.dev/yaml-validator |
| Format XML | devessentials.dev/xml-formatter |
| Convert JSON to YAML | devessentials.dev/json-to-yaml |
| Generate a UUID | devessentials.dev/uuid-generator |
| Format SQL | devessentials.dev/sql-formatter |
If You Must Use a Server-Side Tool
Sometimes you don't have a choice — a team uses a specific tool that's server-side. In that case:
- Anonymize the data first. Replace real values with placeholders before pasting. Replace
"api_key": "sk-live-abc123"with"api_key": "REDACTED". - Rotate credentials immediately after. If you pasted a real API key, treat it as compromised and rotate it — even if you trust the tool.
- Use a local alternative. Install the formatter or decoder locally and run it in your terminal.
jq,yq,python -m json.tool, andjwt-cliare all offline tools that work entirely on your machine. - Use your editor. VS Code, JetBrains IDEs, and most modern editors can format JSON, YAML, and XML without sending data anywhere.
The Compliance Side
For a team, pasting production data into a third-party tool is also a policy problem, not just a security one:
- GDPR and similar laws: emails, user IDs and anything else that identifies a person are personal data. Sending them to a service your company has no data processing agreement with is a transfer you cannot account for.
- SOC 2 and ISO 27001 audits ask how production data is handled and which third parties receive it. Ad-hoc web tools are rarely on that list.
- Internal security policies usually forbid sending internal data to unapproved external services. Developer utilities are the category most often overlooked.
A Habit Worth Building
The security principle here is simple: treat your production data like you treat your passwords. You wouldn't type your password into a random website to check if it's strong — use a local tool or a client-side one. Apply the same rule to API keys, JWT tokens, database credentials, and any data from production systems.
It takes two seconds to check the Network tab. One data leak can take months to recover from.
All devessentials.dev tools are 100% client-side — your data never leaves your browser. Browse all tools →
Frequently Asked Questions
How can I tell if an online tool is client-side or server-side?▾
Open your browser's Network tab (DevTools → Network), paste something into the tool, and watch for outgoing requests. If you see an XHR or Fetch request sent to the tool's domain when you click 'convert' or 'format', it's server-side. If nothing is sent, it's client-side. You can also read the page's JavaScript source — client-side tools do all their work in JavaScript functions you can inspect. Additionally, you can disable your internet connection and try the tool: a client-side tool will continue working offline; a server-side tool will fail.
What data is considered sensitive when using developer tools?▾
Any data that could grant access to a system or identify a person: API keys and tokens (AWS, Stripe, GitHub, OpenAI), JWT tokens (contain user identity and session info), database connection strings (include credentials and host), private keys and certificates, OAuth client secrets, passwords, personally identifiable information (names, emails, SSNs), and any internal business data (customer records, financial data, proprietary algorithms). When in doubt, treat any production data as sensitive.
My company uses a popular tool like CodeBeautify — is that risky?▾
Yes, if the tool processes data server-side. The JSONFormatter.org and CodeBeautify.org incident (which we cover in detail at /learn/jsonformatter-codebeautify-leak) exposed 5 GB of user data including passwords, API keys, and database credentials. These were popular, widely-used tools. Popularity does not imply security. Use client-side tools for any data that touches production systems.
Is it safe to paste an expired JWT into an online decoder?▾
Safer, not safe. An expired access token can no longer authenticate, so the immediate takeover risk is gone. But the payload still contains real claims: user ID, email, role, tenant ID, sometimes internal permission names. That is personal data under GDPR and a description of your auth model. Also check that what you have really is an expired access token and not a refresh token, which typically lives much longer. Decoding locally takes one line in the browser console, so there is little reason to take the risk.
What about browser extensions for developer tools?▾
Browser extensions are a different risk category. Extensions have access to everything in your browser — including cookies, localStorage, and page content — and can exfiltrate data even from HTTPS pages. Be especially cautious about extensions that request broad permissions ('read and change all your data on the websites you visit'). Stick to open-source extensions from known maintainers, and audit them periodically, as extensions can be bought and updated to include malicious code.
Is it safe to use these tools on a work VPN?▾
No — a VPN protects the connection between your machine and the VPN server but does nothing to prevent the online tool's server from receiving and logging your data. The tool still receives everything you paste, regardless of whether you're on a VPN. The only safe option is a tool that doesn't send your data anywhere — i.e., a client-side tool that runs in your browser.
Related guides
The JSONFormatter & CodeBeautify Data Leak: What Developers Need to Know
JSONFormatter.org and CodeBeautify.org exposed 5 GB of user data including passwords, API keys, and cloud credentials. Here's what happened and what to use instead.
How JWT Authentication Works: A Developer's Guide
JWTs are used in virtually every modern authentication system. Learn how they're structured, how signing and verification work, common security mistakes, and when to use JWTs vs sessions.
.env Files and Environment Variables Explained
Environment variables and .env files are how modern applications manage configuration across environments. Learn how they work, how to use dotenv, and how to keep secrets out of your codebase.