JSON Diff & Compare
Compare two JSON documents and see exactly which keys were added, removed, or changed.
Conversion payloads stay in this browser tab and are never placed in page URLs - see how local processing works. Privacy-safe analytics record only the tool, outcome, and a coarse input-size bucket. Press Cmd/Ctrl + Enter to convert.
How to Compare JSON
Paste your original JSON in the first input panel and the modified JSON in the second panel. Click Compare to see all differences highlighted with clear labels for added, removed, and changed values.
Understanding the Output
The comparison output shows: [+] for added keys/values, [-] for removed keys/values, and [~] for changed values. For changed values, both the old and new values are displayed.
When to Use JSON Compare
Use JSON comparison when reviewing API response changes, debugging configuration differences, comparing database records, or validating data transformations.
Common Use Cases
Developers use JSON comparison for code reviews, testing API changes, debugging data sync issues, comparing environment configurations, and validating migration scripts.
Frequently Asked Questions
Does it show a diff by key path?
Yes. Differences are reported by the path where they occur, so a change deep inside a nested object is named precisely rather than shown as a whole-object replacement. Added, removed, and changed values are listed separately so you can tell a new field from an edited one.
What differences does this tool detect?
The tool detects three types of differences: added keys (present in JSON 2 but not in JSON 1), removed keys (present in JSON 1 but not in JSON 2), and changed values (same key but different values).
Does it compare nested objects?
Yes, the tool performs a deep comparison of nested objects and arrays. Differences at any depth are shown with full path notation (e.g., 'user.address.city').
How are array differences handled?
Arrays are compared element by element by index. If arrays have different lengths, the extra elements are shown as added or removed.
Is the order of keys considered?
No, JSON key order is not significant. Two objects with the same keys and values in different orders are considered equal.
Continue with the data, not the directory
Validate, format, repair, compare, query, and reshape payloads before they ship.
JSON to YAML Converter
Validate JSON, control YAML formatting, compare option changes, and export configuration-ready output locally in your browser.
JSON Merge
Deep-merge two JSON documents with the second overriding the first, key by key.
JSON Validator
Check whether JSON is valid, find the syntax error, and see what the document contains.
JSON Formatter & Beautifier
Format, beautify, and validate JSON in one pass, with the exact location of any syntax error.