JSON Diff
Paste the original JSON on the left and the new JSON on the right. The result lists each difference with its path, such as $.users[2].name, and counts the additions, removals and changes. Key order is ignored by default because JSON objects have no order.
JSON Diff runs entirely in your browser: the text you paste is never sent to a server. It is free and needs no sign-up.
How to use it
- Paste the two JSON documents With the JSON Diff tool, paste the original JSON into the Left box and the new JSON into the Right box. Differences appear below with paths such as $.users[2].name, and the table lists the path, the kind and both values.
- Choose how arrays are compared Key order inside objects is ignored. By position compares items index by index, while As a set ignores array order, so reordered items count as the same. The set option handles up to 10,000 items per array.
- Read the summary and JSON Patch The summary counts added, removed and changed values. In position mode, press Copy JSON Patch to get the RFC 6902 operations that turn the left JSON into the right JSON.
Questions
Why is there no change when only the key order differs?
The keys of an object have no fixed order, so the same keys with the same values hold the same data. The tool compares values by key, which is why key order is ignored. Array order still matters in position mode.
How is a type change different from a changed value?
When a value changes kind, for example from a number to text, it is reported as a type change, so you can see that the data type moved as well as the content. A value that keeps its type and changes only its content is reported as a plain change.
What limits apply to large JSON?
Each side can be up to 2 MB, measured in bytes, and nesting deeper than 500 levels is refused. In set mode an array can hold up to 10,000 items, so split larger arrays or use the position option.