Dev.to Security 🔐 Cybersecurity 👁 0 📖 7 min read

I pasted a fake AWS key into 31 JSON formatters and JWT decoders. Two sent it to their server

Developers paste the most sensitive text there is into online formatters: API responses with tokens in them, config files with keys, JWTs copied from a request header. In 2025 a security firm found tens of thousands of s

Developers paste the most sensitive text there is into online formatters: API responses with tokens in them, config files with keys, JWTs copied from a request header. In 2025 a security firm found tens of thousands of such snippets, with real credentials, publicly listed on two popular formatter sites. So we asked a narrower question: when you simply paste and press Format or Decode, without saving anything, does the text leave your browser? We pasted a fake secret with a unique marker into 31 JSON formatters, Base64 decoders and JWT decoders, including our own two, and searched every request each page sent for it.

The short answer

Tool Type Pasted text sent to a server? Third-party sites contacted
JSONLint JSON No 112
JSONFormatter.org JSON No 60
CodeBeautify JSON Viewer JSON No 57
JSON Editor Online JSON No 34
Online JSON Viewer (jsonviewer.stack.hu) JSON No 9
JSON Beautifier (jsonbeautifier.org) JSON No 7
FreeFormatter JSON Formatter JSON No 6
Online JSON Tools (onlinetools.com) JSON No 6
IT Tools JSON prettify JSON No 1
CodeBeautify Base64 Decode Base64 No 44
Base64.Guru Base64 Yes, on Decode 16
Browserling Base64 Decode Base64 No 8
emn178 Online Tools Base64 No 8
ConvertString Base64 Yes, on Decode 7
FreeFormatter Base64 Base64 No 6
Utilities-Online Base64 No 4
IT Tools Base64 Base64 No 1
jwt.io JWT No 23
FusionAuth JWT Decoder JWT No 5
jwt.one JWT No 3
JSToolSet JWT JWT No 3
jwt.is JWT No 2
token.dev JWT No 1
jwt.ms JWT No 1
Dino Chiesa JWT tool JWT No 1
IT Tools JWT parser JWT No 1
JSON Formatter (Curious Concept), Toptal JSON Formatter, base64decode.org — Not measured: our automated browser got a security check page —
NativeConvert JSON Formatter JSON No 2
NativeConvert Base64 Base64 No 2

Of the 28 tools we could measure, 26 formatted or decoded the text inside the page and never sent it anywhere during our visit. Two Base64 decoders, Base64.Guru and ConvertString, are classic web forms: pressing Decode sends the whole pasted text to their server, which sends the decoded result back as a new page. Every JWT decoder in the test, jwt.io included, decoded the token in the browser.

"Third-party sites contacted" counts the different outside domains (advertising, analytics, fonts, consent tools) the page talked to during a visit of about 25 to 30 seconds, after accepting the cookie banner where there was one. It is a separate question from where your text goes, and the next sections explain why it still matters.

How we tested

We did not sign in, did not install extensions and never pressed Save, Share or any button that publishes a link. A clean result means the text was not sent during our visit in a form we could recognise. Three sites showed our automated browser a bot check instead of the tool, so we draw no conclusion about them.

  1. Each tool was opened in Chrome with an English locale, through a server in the UK, so that ad and analytics domains were not blocked by our own network. Where a cookie banner had an "Accept all" style button, the script pressed it, as many visitors do.
  2. The script put a fake secret into the main input box the way a paste does. For JSON tools it was a small config object with a fake AWS access key, secret key and database password; Base64 decoders got the same object encoded as Base64; JWT decoders got a token whose payload held a user ID and email. Every value contained a random marker unique to that site.
  3. It waited 5 seconds (many tools work as you type), then pressed the tool's Format, Validate or Decode button if it had one, and waited 8 seconds more.
  4. Every request the page, its frames and its workers sent, every WebSocket message and every beacon was saved, and a small script inside the page also recorded what fetch and XMLHttpRequest calls were given. All of it was searched for the marker and for the pasted text itself: plain, URL-encoded, JSON-escaped and Base64-encoded.

The two decoders that use your server, not your browser

Base64.Guru and ConvertString work the way most of the web worked in 2005: the text box is part of a form, and the Decode button submits it. In our test the request body carried the entire Base64 text, and the decoded JSON, fake AWS key and all, came back in the page from their server. Nothing in that is hidden, and neither page claims to work offline, but it means your text is processed by, and passes through, someone else's computer, where it could be logged.

Decoding Base64 needs no server at all. Every browser has had a built-in decoder (atob) for well over a decade, and a page can decode UTF-8 text correctly with a few more lines. Most of the Base64 tools we tested, including CodeBeautify's, which also loads 44 third-party sites, do exactly that.

What leaked in 2025 was the Save button

In November 2025 the security firm watchTowr reported that it had collected about 80,000 JSON snippets from the public "Recent Links" pages of JSONFormatter and CodeBeautify, the formatters people had saved or shared over several years. They included cloud keys, Active Directory credentials, private keys and API tokens from banks, government bodies and tech companies, and a fake AWS key the researchers planted was tried by someone about 48 hours later. Both sites switched the saving feature off. On 3 December 2026 jsonformatter.org/recent-links answered "404 Not Found or Link Expired" and CodeBeautify's redirected to its home page.

Our test matches that story: on both sites, formatting and validating ran in the browser and sent nothing. The danger was never the Format button; it was a convenience feature that turned a paste into a public URL. If a tool offers Save, Share or a short link, treat it as publishing.

Your secret shares the page with 112 other sites

The bigger difference between these tools is everything else they load. On JSONLint our visit reached 112 third-party domains, most of them advertising and ad-measurement services; JSONFormatter.org reached 60 and CodeBeautify 57. The JWT decoders were the leanest group: seven of the nine talked to three or fewer outside domains; jwt.io (23) and FusionAuth (5) were the exceptions.

In our test none of those requests contained the pasted text, and we saw no session-recording service, the kind of script that can capture what is typed on a page. But every script a page loads runs with the same access to the page as the tool itself, so it could read the text box if it wanted to. A page with one or two outside scripts asks you to trust one or two parties; a page with a hundred asks you to trust a hundred, and a change in any of them.

Safer habits for secrets

  • If a real key, password or production token has been pasted into any website, rotate it. That is cheaper than working out who might have seen it.
  • Prefer the command line for anything sensitive: jq . file.json formats JSON, base64 -d decodes Base64 (certutil -decode in.txt out.txt on Windows), and both run on your machine.
  • Your browser can decode a JWT payload offline: open the developer console and run JSON.parse(atob(token.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"))).
  • Never use Save, Share or "get a link" on a formatter for anything you would not publish.
  • Redact before you paste: replace keys and passwords with placeholders when you only need to see the structure.

Check any tool yourself

  1. Open the tool in Chrome, Edge or Firefox on a computer, press F12 (Cmd+Option+I on a Mac), choose the Network tab and tick "Preserve log".
  2. Paste some text containing an unusual made-up word, such as zebra-cobalt-42, and press the tool's button.
  3. Click inside the Network panel, press Ctrl+F (Cmd+F on a Mac) and search for that word. The search covers addresses, headers and contents. No match is what you want.
  4. A request that contains your word, usually a POST to the site itself, means the text was sent. If the page reloads when you press the button, that is a strong hint too.

Related: Online converters and trackers: we tested 31 sites

Our two tools

Our JSON Formatter formats and validates as you paste and shows the parser's error message for invalid JSON; our Base64 encoder and decoder handles UTF-8 text in both directions. Both work entirely in the page, and in this test neither sent the pasted text anywhere. The only outside requests on those pages were Google Tag Manager and Google Analytics, which counts the visit without cookies. We don't have a JWT decoder; any of the browser-based ones in the table, or the one-line console command above, will do.

Related: JSON Formatter

Base64 without a server

Encode text to Base64 or decode it back, with UTF-8 handled correctly, on the same page and without a round trip to anyone.

Related: Base64 Encoder/Decoder

Disclosure: I run NativeConvert, which makes two of the tools in the table, so I'm not neutral; ours are listed with the same method. Drafted with an AI assistant from our own measurements. Originally published on nativeconvert.com.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.