{ }JSON Compare

Safety · what leaves your browser

Is It Safe to Paste JSON Into an Online Tool?

The useful answer is not "yes it is safe" or "never do it". It is knowing what actually happens to the bytes, how to check a tool yourself in half a minute, and which values to swap out first.

The short answer

Yes for the structure, no for the secrets. An API response, a config file or a test fixture is fine to paste into a tool that compares in the browser. Live credentials, customer records and anything your company classifies as personal data are not — not because the site is hostile, but because you cannot audit ten thousand lines of JavaScript before lunch and it can change after you do.

The practical rule: paste the shape of the document, not the secrets inside it. Then verify the tool yourself, which takes about thirty seconds.

What "runs in your browser" actually means

When a comparison tool says it does not upload your JSON, it is making a claim about its own code: the parsing and the diff happen in JavaScript in the current tab, and the document never becomes an HTTP request body.

That claim can be true and still not cover everything. Four things deserve a moment's thought:

  1. The page you loaded came from a server. The HTML, the scripts, the analytics tag — those arrived over the network. A page that ships ad and analytics scripts can still keep your pasted text to itself; those two statements are independent.
  2. Browser extensions see the page. Anything with permission to read this tab can read the textarea you pasted into. That is true of every website, not just this one.
  3. The code can change. A statement on a page describes the code that was deployed when you read it.
  4. "Not uploaded" is not the same as "not stored". A page could write to localStorage or the cache. That stays on your machine, but it persists, which matters on a shared or borrowed computer.

Because of (3), verification is worth more than any promise, including the one on this site.

How to check any JSON compare tool yourself

You do not need security expertise, just the Network panel every browser already has:

  1. Open the tool's page.
  2. Press F12, or Cmd+Option+I on a Mac, to open DevTools.
  3. Click the Network tab and tick Preserve log so nothing clears when the page navigates.
  4. Paste your two documents and press Compare.
  5. Look at what appeared. A request to the same domain for a font or a script is normal. A POST or PUT fired at the moment you pressed Compare, carrying a body, is the document leaving your machine. A request to a domain you did not visit is worth reading twice.

To make this test meaningful, use a document that is obviously fake — {"test": "this should not leave my browser"} — and then search the captured request bodies for that string. If it never appears in a request body, the comparison was local.

This is also how you check the claim on this site, which is that pasting and comparing happen in the browser and the contents are not sent to a server.

What to replace before you paste

Replace, do not delete. Deleting a field changes the structure, so the diff reports an added or removed key that was never the point of the comparison.

Field Example Paste this instead
API keys and tokens "sk_live_4eC39Hq..." "REDACTED_TOKEN_0000000000000000"
Passwords and secrets "password": "hunter2" "password": "PASSWORD"
Session and refresh tokens a 700-character JWT any string of a similar length
Personal data "email": "ada@example.com" "email": "user@example.com"
Internal hostnames and IPs "db.internal:5432" "db.host:5432"
Signed URLs query string with a signature the same URL without the signature

Two practical details. Keep the length roughly the same, because the field width is often what you are actually comparing. And keep the type — a string stays a string, a number stays a number, null stays null — otherwise the diff reports a type change instead of the value change you were looking for.

If the JSON is long, this is a one-liner with jq rather than a manual edit:

jq 'walk(if type == "object" then del(.token, .api_key, .password) else . end)' \
  response.json > response.safe.json

That deletes rather than replaces, which is fine when you are comparing two files with the same script applied to both sides.

What a browser-side tool still cannot tell you

Running locally answers "did this leave my machine". It does not answer "is this document allowed anywhere", and it does not make a shared screen safe. Three cases belong elsewhere:

  • Regulated personal data. Health and financial records usually carry a rule about which tools may process them. A browser tool is not on the approved list by default.
  • Production credentials of any kind. Rotate them instead of comparing them, and compare the redacted copies.
  • Shared or recorded sessions. A screen share, a recorded demo or a borrowed laptop exposes a paste box regardless of where the diff runs.

For those, compare on your own machine. The command-line guide has the exact jq, Python and Node.js recipes, and the ignore-key-order page covers canonicalising a document before a byte-level comparison.

Does signing up change anything?

Not the network path. Whether a document is uploaded is decided by code, not by whether you are logged in; an account mostly adds server-side history and correlation. A tool that needs no account for its core job is therefore the simpler thing to reason about: there is nothing extra to trust.

The short checklist

  • Paste structure freely, secrets never.
  • Replace, do not delete, so the shape stays comparable.
  • Watch the Network tab once per tool, with a fake document you can search for.
  • Compare locally for regulated data, and use the jq recipes when you do.
  • On a phone, the same rules apply — see comparing JSON on iPhone and Android.

Frequently asked questions

Is it safe to paste private JSON into an online compare tool?

Pasting a JSON structure is normally low risk; pasting live credentials is not. Anything inside the document — API keys, tokens, passwords, customer records — is readable by whatever sees the document, whether that is a server, a browser extension, or someone looking over your shoulder at shared screen. Replace those values before pasting, even when the tool says it runs locally.

Is it safe to paste API responses from work?

Yes, for most developer payloads. The case against pasting is not "the website will sell your data", it is "you cannot verify 30 seconds of JavaScript". A page can change what it does next week, and the answer an AI assistant gave you about the site's privacy policy is not a guarantee. Scrub the secrets and the remaining risk is that someone sees the shape of your schema, which for most teams is not confidential.

How do I check whether a JSON compare tool uploads my data?

Open the page, press F12 (Cmd+Option+I on a Mac) to open DevTools, switch to the Network tab, tick Preserve log, then paste and compare. Watch for any request fired at the moment you press Compare — especially a POST or PUT with a body — and for requests to domains other than the one you are visiting. A local comparison produces no such request; the analysis happens in the tab, and only the page's own assets were ever loaded.

Should I delete sensitive fields or replace them?

Replace, do not delete. If you delete a field, the two documents no longer have the same shape and the diff reports a missing key that was never missing. Put a placeholder of the same type and roughly the same length in both copies — a 40-character token for a 40-character token — and the structure you are comparing stays intact.

When should I not use an online tool at all?

When the document contains regulated personal data, when your company's policy names the data category, or when you cannot explain to an auditor why a third-party page had it. In those cases compare locally: jq --sort-keys plus diff, Python's json equality, or a diff in your own editor. The command-line recipes are in the guide on comparing two JSON files.

Does having an account make a tool safer?

An account changes what the site can correlate, not what a browser-based tool can technically do. If the comparison happens in the page, sign-up adds nothing to the path your data takes — the upload either happens or it does not, and that is determined by code, not by whether you are logged in.