Data & CSV

JSON Diff

JSON Diff: Compare Two JSON Documents

Compare two JSON documents by meaning and list every added, removed and changed path.

About this tool

About JSON Diff

A text diff of two JSON files is full of noise: keys that moved, different indentation, a reformatted line. This tool compares the data itself. Paste the original and the changed document and you get a list of real differences, each with its path, such as $.settings.theme or $.roles[2], and the old and new values side by side. Added values are marked in green, removed values in red and changed values in yellow, and you can filter by kind when the list is long. Object key order and whitespace never count as a change. Turn on Ignore array order when arrays are really sets, such as tags or permission lists, and items are matched by content instead of position. A value that changes type, like "42" becoming 42, is reported clearly too. Copy the full report as text for a pull request or a ticket. Both documents are compared in your browser and never uploaded. An optional AI summary, using your own key, turns the list of changes into a short changelog.

Built and maintained by Abhi JainUpdated

How to Compare JSON

  1. 1

    Paste both documents

    Paste the first JSON into Original and the second into Changed, or open a file in each. Click Sample to try it.

  2. 2

    Set options

    Tick Ignore array order if the order of array items doesn't matter. Use Swap to reverse the comparison.

  3. 3

    Review the differences

    Read the Differences panel, filter by Changed, Added or Removed, and copy a path or the whole report.

JSON Diff: questions and answers

Does key order matter when comparing JSON?

No. JSON objects are unordered, so {"a":1,"b":2} and {"b":2,"a":1} are the same data and this tool reports no difference.

How does Ignore array order work?

Items in the two arrays are matched by their content. Only items without an identical partner are reported, and leftovers are paired up so an edited item shows as changed rather than removed and added.

What do the paths mean?

They are JSONPath expressions: $ is the root, .name is a key and [0] is an array position. Keys with spaces or symbols are written as ["first name"].

Is "1" different from 1?

Yes. A string and a number are different JSON types, so the change is reported. This often catches APIs that started returning IDs as strings.

Are my files uploaded?

No. The comparison runs entirely in your browser.

Can AI summarize the differences?

Yes. Click AI for a plain-English summary grouped by what changed, with risky changes flagged. Only the computed list of differences is sent, not both documents. It's optional and uses your own AI key (Claude, OpenAI, Gemini, DeepSeek, OpenRouter or a compatible endpoint), sent straight from your browser to that provider; KissThePDF never sees it. Without a key the tool works exactly the same.