Skip to content

Compare two JSON

See how alike two JSON documents are, and exactly where they differ.

Paste two documents and get a straight answer: how alike they are as a percentage, and every place they disagree, listed by path. Key order and formatting are ignored, because changing those does not change what the document means.

How to use it

  1. Paste one document on the left and the other on the right.
  2. Read the similarity score, then the list of differences below it.
  3. Filter to just the changes, additions or removals, and copy the report.

Why use this tool

Completely private

Everything runs inside your browser. Your files and text are never sent to a server.

Free, with no limits

No sign-up, no watermarks and no cap on how many times you can use it.

Instant results

There is no upload or queue to wait for, so results appear as fast as your device can work.

Works on any device

Runs in any modern browser on phone, tablet or desktop. Nothing to install.

Frequently asked questions

How is this different from a normal text diff?
A text diff compares lines, so it flags everything that moved — reformat a file or sort its keys and every line lights up while the one value that actually changed hides among them. This compares what the documents mean. Two files with the same keys in a different order come out as identical, because they are.
What does the percentage actually measure?
The share of leaf values that are present and equal in both. A document with ten values where one changed scores 90%. An added object counts for all the values inside it, not one, so dropping a large section moves the number by a lot rather than a little.
How are arrays compared?
Position by position: the first item against the first, the second against the second. Matching items up cleverly — by an id field, or by finding the longest common run — sounds better until it guesses wrong, and a comparison that silently re-pairs your items is worse than one that says plainly that index 3 changed.
Can I compare two files instead of pasting?
Open each file in a text editor and paste it in. A file picker is coming; in the meantime pasting works for anything a text editor can open, which is everything JSON.
Is my data sent anywhere?
No. Both documents stay in your browser. That matters here: comparing two API responses usually means two real payloads, and the whole point of doing it locally is that neither one leaves your machine.

Related tools