JSON Diff
Compare two JSON objects and find the differences. Highlights added, removed, and modified fields.
Deep Comparison
Recursively compares all nested objects and arrays, showing the exact path to every difference.
Color-Coded Results
Added fields in green, removed in red, modified in amber. Instantly see what changed.
Summary Statistics
Get a quick overview with counts of added, removed, modified, and unchanged fields.
How to Compare JSON Online
- 1. Paste the original JSON in the left panel.
- 2. Paste the modified JSON in the right panel.
- 3. Differences are computed automatically. Green = added, red = removed, amber = modified.
- 4. Use the Swap button to reverse the comparison direction.
- 5. Toggle Show unchanged fields to see all fields including those that are identical.
Frequently Asked Questions
What is JSON diff?
JSON diff compares two JSON objects and identifies the differences between them. It shows which fields were added, removed, or modified, similar to how git diff works for text files but specialized for JSON structure.
Does this tool handle nested objects?
Yes, this tool performs a deep recursive comparison. It traverses all nested objects and arrays, showing the exact path to each difference (e.g., address.city) so you can quickly locate changes in complex JSON structures.
Can I compare JSON arrays?
Yes. Arrays are compared by index. If array elements at the same index differ, they are shown as modified. Additional elements are shown as added or removed.
Is my data sent to a server?
No. All comparison is done locally in your browser using JavaScript. Your JSON data never leaves your device and is not stored anywhere.