JSON Diff -- Compare Two JSON Objects
Compare two JSON objects and see the differences highlighted. Free online JSON diff tool that shows additions, deletions, and changes. Runs in your browser.
Frequently Asked Questions
How does JSON diff work?
This tool parses both JSON inputs, then recursively compares their structures. It identifies added keys, removed keys, and changed values. Results are displayed with color-coded highlighting: green for additions, red for deletions, and yellow for modifications.
Does it handle nested objects?
Yes. The diff algorithm recursively compares nested objects and arrays at every level. Changes deep within the structure are reported with their full path (e.g., 'user.address.city'), so you can quickly locate exactly what changed.
Can I compare arrays?
Yes. Arrays are compared element by element. Added elements, removed elements, and changed elements are all identified and highlighted. The tool handles arrays of primitives, objects, and nested arrays.
Does order matter in JSON comparison?
For objects, key order does not matter — the tool compares by key name regardless of order. For arrays, order does matter — elements are compared by their index position. This matches how JSON is typically used in practice.