JSON Diff — Compare Two JSON Objects
Paste two JSON snippets and instantly see what's added, removed, or changed — with full JSONPath.
Why Use a JSON Diff Tool?
When working with API responses, configuration files, or database records, spotting what changed between two versions of a JSON document can be tedious. A plain text diff shows too much noise — line numbers, whitespace differences, quote styles. A JSON-aware diff ignores formatting and focuses only on semantic differences in the data.
This tool performs a recursive deep comparison and shows every difference with itsJSONPath — so you know exactly where in a 500-key object the change happened. Differences are color-coded: green for added,red for removed, andamber for changed values.
Common Use Cases
- API debugging — compare a request body that worked vs one that failed
- Config review — diff a staging vs production config before deployment
- Data migration — verify a record before and after transformation
- Code review aid — quickly understand what a JSON fixture change means
- Schema drift — catch when an API starts returning extra or missing fields
How to Use
- Paste your first JSON into the JSON A panel (original / before).
- Paste your second JSON into the JSON B panel (modified / after).
- Click Compare JSON.
- Review the color-coded diff results below — each entry shows the path and old/new values.
Frequently Asked Questions
How does JSON diff/comparison work?
+
The tool recursively compares the two JSON payloads by inspecting object keys, array indices, and value types. It analyzes changes structurally rather than comparing plain text lines, ensuring accurate detection of additions, removals, and modifications.
Can I compare two JSON files with different key orders?
+
Yes. Because the comparison is performed on parsed JSON objects rather than raw text lines, object keys are evaluated by name regardless of their position in the file. Properties with identical keys and values will not trigger false change warnings.
What do the +/−/~ symbols mean in the diff output?
+
The green + symbol indicates a new key or value added in JSON B that was missing in JSON A. The red − symbol represents a key or value removed in JSON B. The amber ~ symbol denotes an existing key whose value or data type was modified between the two versions.