JSON diff and compare
Compare two JSON documents structurally — key order and formatting are ignored. Runs in your browser.
Runs 100% in your browser Differences
How to compare two JSON files
- Paste both versions. Put the original JSON on the left and the new JSON on the right.
- Read the differences. Added, removed and changed values are listed by path.
About comparing JSON
When you're reviewing an API change, a config update or two snapshots of the same object, a line diff is noisy — reindentation and reordered keys swamp the real changes. A structural JSON diff ignores formatting and walks both trees by key path, so you see exactly which values were added, removed or changed. For free-form text or non-JSON files, use the general diff checker instead.
Frequently asked questions
- A text diff compares lines. This compares JSON structurally: it parses both documents and reports added, removed and changed values by their key path, so reordered keys or reformatting don't create false differences.
- No. Objects are compared by key, not position, so
{"a":1,"b":2}and{"b":2,"a":1}are equal. Array order does matter, as it is significant in JSON. - A path present in both but with a different value is "changed"; a path only in the first is "removed"; only in the second is "added".
- Yes — both documents are parsed and compared in your browser. Nothing is uploaded.