JSON Diff
Compare two JSON objects and see all additions, removals, and changes.
About the JSON Diff
Paste two JSON objects and the tool lists every key that was added, removed or changed between them, ignoring the order of keys.
Everything you enter is processed in your browser; nothing is uploaded or stored.
How to use it
- Paste the original JSON into JSON A and the new version into JSON B.
- Press Compare JSON.
- Read the list of ADDED, REMOVED and CHANGED keys, and copy it with Copy Results.
How the JSON comparison works
Both inputs are parsed as JSON first, so formatting, indentation and key order make no difference. The tool then walks through the keys of both objects: a key only in B is reported as added, a key only in A as removed, and a key in both with a different value as changed, showing the old and new values.
This is more reliable than a text diff for API responses and config files, where the same data can be printed in a different order.
Example
A = {"plan":"free","seats":1} and B = {"seats":5,"plan":"free","trial":true} gives: CHANGED seats: 1 → 5, ADDED trial: true. The plan key is unchanged even though it moved.
Frequently asked questions
How do I compare two JSON files online?
Open each file, paste the contents into JSON A and JSON B, and press Compare JSON. The comparison runs in your browser.
Does key order matter?
No. The JSON is parsed before comparing, so {"a":1,"b":2} and {"b":2,"a":1} are equal.
What if my JSON is invalid?
The tool reports a parse error. Check it with JSON Lint, which shows the parser’s message.