Proud member of the Google for Startups Cloud Program

Compare JSON files online

Paste or upload two JSON documents and the diff appears automatically: added keys, removed keys and changed values, through every level of nesting. Format and copy either side in one click. Your JSON stays in your browser.

Loading...

How do I compare two JSON files?

Paste or upload each document and the diff appears automatically, no button to press. DataSort walks both key by key and item by item and shows a tree where added keys, removed keys and changed values are colour coded, with the old value beside the new. Format tidies messy JSON and Copy puts a side on your clipboard. It runs in your browser and is free with an account at five comparisons every twenty minutes.

  1. 1Paste JSON A, or use Upload to load a .json file.
  2. 2Paste or upload JSON B. The diff appears on its own.
  3. 3Use Format on either side to pretty print messy JSON before you read it.
  4. 4Read the colour coded tree: green is added, red is removed, amber is changed.
  5. 5Export the differences as JSON, or Copy either side to your clipboard.

Everything the JSON diff shows you

Added and removed keys

Keys that appear in only one document are colour coded green (added) or red (removed) at the exact level they sit in the tree.

Changed values

A value that differs shows the old value struck through beside the new one, so you see precisely what moved.

Nested objects, every level

Objects are compared key by key all the way down, so a change three levels deep is shown in place, not just at the top.

Arrays by position

Array items are compared by index, so an appended, removed or edited element is highlighted where it belongs.

Format and copy

Tidy messy JSON with one click, and copy either side to your clipboard, without leaving the page.

Private and free

Your JSON is read in the browser and never uploaded. Free with an account at five comparisons every twenty minutes, unlimited on any paid plan.

Affiliate Program

Teach others how to clean Excel files and get paid.

Are you an Excel pro, B2B software reviewer, or productivity template builder? If you show your audience how to sort data online effortlessly, we want you on our team. Because DataSort functions as a highly capable free tool to clean Excel and manage massive CSV files, your audience can use it instantly for free with zero friction.

It is completely free to join the DataSort Affiliate Program. By recommending our AI-powered Excel cleaner, you are plugging into one of the highest paying software affiliate programs in the data tech space. There are no complicated integrations needed. Just realistically demonstrate how DataSort eliminates duplicate rows and cleans messy formatting to your viewers, and you will earn a massive 40% recurring commission on every referral, for the lifetime of their active subscription. Turn your spreadsheet knowledge into powerful, reliable passive income.

See Commission Tiers Free to join · Instant payouts via PayPro

Common questions about comparing JSON

How do I compare two JSON files?
Paste or upload your JSON on each side and the diff appears automatically. DataSort walks both documents and highlights every added key, removed key and changed value in a tree, and lets you export the differences.
Does it work with nested objects and arrays?
Yes. Objects are compared key by key at every level, and arrays are compared by position, so an added, removed or changed element is shown where it sits.
Is my JSON uploaded anywhere?
No. The diff runs in your browser and your JSON is not sent to a server.
Is comparing JSON free?
Yes. With a free account you get five comparisons every twenty minutes. Any paid plan removes the limit.

How It Works: Technical Methodology

Deterministic, local diff

The diff is computed in your browser, not by an AI model. Both documents are walked key by key and item by item, so the result is exact and repeatable.

Privacy & processing

A stateless architecture: your JSON is parsed locally and never stored on our servers. The only server call counts your free comparisons so the limit is fair.

More free DataSort tools

Copied to clipboard!