JSON Diff

Compare two JSON documents and list every value that was added, removed or changed, each with its path. Optionally ignore the order of list items.

Processed on your device. Files are not uploaded

How to compare two JSON documents

  1. Paste both documents

    Put the original on the left and the changed version below it.

  2. Read the differences

    Each added, removed or changed value is listed with its path.

  3. Copy the list

    Copy the differences as text or as a table.

Worked example

This is what JSON Diff gives for its own sample values. Open the tool above and change anything to try your own.

Original JSON

{
  "name": "sarva",
  "version": "1.0.0",
  "tags": ["a", "b"],
  "debug": true
}

Changed JSON

{
  "name": "sarva",
  "version": "1.1.0",
  "tags": ["a", "c", "d"],
  "license": "MIT"
}
Ignore the order of list items
No

Differences as text

~ $.version: "1.0.0" -> "1.1.0"
~ $.tags[1]: "b" -> "c"
+ $.tags[2]: "d"
- $.debug: true
+ $.license: "MIT"
ChangePathBeforeAfter
changed$.version"1.0.0""1.1.0"
changed$.tags[1]"b""c"
added$.tags[2]"d"
removed$.debugtrue
added$.license"MIT"

About JSON Diff

Compare two JSON documents key by key, not line by line, so formatting and key order do not create noise. Optionally ignore the order of list items as well.

FAQs

Does key order matter?

No. Objects are compared by key.

Can it ignore list order?

Yes. Turn on the option to treat lists as unordered.

Can I compare plain text?

Use Text Compare.

Related tools