Compare two JSON objects and visualize the differences.
Compare two JSON objects and find differences
No Comparison Yet
Enter two JSON objects and click compare to see differences
Paste the first JSON in the left panel and the second in the right. Both must be valid JSON. Use a JSON formatter first if your input has syntax errors — the tool will show you which fields differ.
Added keys appear in green, removed keys in red, and changed values in yellow. Unchanged fields are shown in neutral color. Nested objects are compared recursively at every level.
Compare API response before and after a change, debug data migrations, review configuration drift between environments, or audit what changed between two versions of a data model.
Shallow comparison checks only top-level keys. Deep (recursive) comparison walks every nested object and array to find differences at any depth. For arrays, the diff checks both the elements and their order — reordering array items counts as a change. For objects, key order does not matter: {"a":1,"b":2} and {"b":2,"a":1} are considered equal. All comparison in this tool runs entirely in your browser — no JSON data is sent to any server, making it safe to use with sensitive API tokens, user data, or internal configuration files.
Common questions about JSON Diff