JSON Diff
Compare two JSON blobs and see exactly what changed.
Last updated
How to compare two JSON files
- Paste the original JSON on one side and the changed JSON on the other.
- Leave Ignore the order of object keys ticked unless key order matters to you.
- Read the highlighted differences, and click Copy diff to share them.
How this comparison works
Both inputs are parsed and re-serialized with consistent 2-space indentation, then compared line by line using a longest-common-subsequence approach — the same underlying idea behind tools like diff and Git's change view. With Ignore the order of object keys ticked (the default), keys are sorted first, so the same data with keys in a different order shows no changes; untick it to see reordering as removed-and-re-added lines. Numbers are compared exactly as written, so two long IDs that differ only in their last digits — beyond the precision JavaScript numbers can hold — still show as different.
Nothing you paste here is uploaded — parsing and comparison both run locally in your browser.
Questions about comparing JSON
Does key order count as a change?
Not by default: keys are sorted first, so the same data in a different order shows no changes. Untick the option to see reordering.
Why compare JSON here instead of as plain text?
Both sides are parsed and laid out the same way first, so differences in spacing and line breaks don’t show up as changes.
Are long numbers compared exactly?
Yes. IDs that differ only in their last digits still show as different, even beyond the precision of JavaScript numbers.
Is my data uploaded?
No. Both JSON documents are compared in your browser.