JSON Diff (Compare JSON)

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

How do I compare two JSON files?

Paste the original JSON on the left and the changed JSON on the right, then press Compare. The tool walks both structures and lists every difference with its path (for example user.address.city or items[2].price), ignoring key order and whitespace.

Reading the result

  • Added — the key or array item only exists in the changed JSON.
  • Removed — it only exists in the original.
  • Changed — the value or its type differs (e.g. "5" vs 5).

Arrays are compared by position, so inserting an item at the start shows later items as changed. For plain text comparisons use Text Compare; to tidy JSON first use the JSON Formatter.

Frequently asked questions

Does key order matter?

No. {"a":1,"b":2} and {"b":2,"a":1} are reported as identical.

Is my JSON sent anywhere?

No, the comparison runs in your browser.

What if the JSON is invalid?

You get the line of the syntax error so you can fix it.