JSON Diff — Compare Two JSON Objects Online
Compare two JSON objects and see exactly what changed. Identify added, removed, and modified paths with color-coded output. Perfect for API response debugging and config file auditing. 100% client-side — your data stays private.
How to Use the JSON Diff Tool
- Paste JSON A in the left panel — this is your original or baseline.
- Paste JSON B in the right panel — this is the modified version.
- Click "Compare" to see a color-coded breakdown of all differences.
- Green means added, red means removed, yellow means changed.
- Use "Swap" to quickly reverse which JSON is A and which is B.
Why Use This JSON Diff Tool
When working with APIs, configuration files, or database exports, you often need to understand exactly what changed between two versions. Manually comparing JSON is tedious and error-prone — especially with deeply nested structures.
This tool performs a deep recursive comparison of two JSON objects, showing you every added, removed, and modified path. The color-coded output makes it easy to spot changes at a glance, even in large payloads.
Frequently Asked Questions
The tool detects three types: added paths (present in B but not A), removed paths (present in A but not B), and changed values (same path, different value in A and B).
Yes. Arrays are compared element-by-element by index. If arrays have different lengths, the tool reports which elements were added or removed. Array elements are referenced by index (e.g., items[0].name).
Yes. JSON key order doesn't matter — the comparison is based on the structure and values, not the order keys appear. Objects with the same keys in different order are treated as identical.
Use Cases
API Response Debugging
Compare expected vs actual API responses to quickly identify where data differs.
Config File Auditing
Verify that environment-specific config files have the expected differences between dev, staging, and production.
Version Comparison
See what changed between two versions of a JSON-based data structure or schema.
Data Validation
Verify data transformations by comparing input and output JSON structures.