JSON Diff
Compare two JSON structures to find added, removed, or changed fields. Fast, free, and fully client-side.
How the JSON Diff Works
Compares two JSON documents key by key and lists added, removed, and changed values. Keys are matched by name, so reordering properties does not show up as a change, while array items are compared by position. Both sides are parsed in your browser and the diff refreshes as you type. Nothing is uploaded.
Usage Example
Checking whether a new API response dropped or renamed fields compared with the saved baseline.
Frequently Asked Questions
How are arrays compared?
Array items are matched by index, so inserting one element near the start shifts every later index and can appear as many changed lines. Sort or reshape arrays first when you only care about content differences.
How is a changed value shown?
A scalar that differs appears as a minus line with the old value followed by a plus line with the new value. Nested objects and arrays are compared recursively, so changes deep inside a document still appear.
What happens when one side is invalid JSON?
Both inputs are parsed with a strict JSON parser. If either side fails, the tool shows the parser error instead of a diff, so trailing commas and comments must be removed from both sides before comparing.
Browse more
See all JSON tools.
