← Back to all tools

🔍 JSON Diff

Compare two JSON objects and see the differences

About JSON Diff

Compare two JSON objects and see added, removed, and changed values highlighted. Supports nested objects and arrays. This tool runs entirely in your browser — no data is sent to any server.

How to Use JSON Diff

  1. Paste the original JSON in the left panel
  2. Paste the modified JSON in the right panel
  3. Click Compare to highlight differences
  4. View added, removed, and changed properties
  5. Navigate between differences using arrow buttons

About JSON Diff

Comparing JSON objects is a common development task — checking API response changes, debugging configuration differences, reviewing database migration effects, or verifying data transformations. Unlike plain text diff, JSON diff understands structure: it knows that {"a":1,"b":2} and {"b":2,"a":1} are identical despite different key order. This tool performs deep structural comparison, highlighting added properties (green), removed properties (red), and modified values (yellow). It handles nested objects and arrays, showing the exact path to each difference. Both inputs are validated and pretty-printed automatically for easy reading.

Frequently Asked Questions

Does key order matter in JSON comparison?

No — this tool performs semantic comparison. {"a":1,"b":2} equals {"b":2,"a":1}. JSON objects are unordered by specification, so key order differences are ignored.

How does it handle arrays?

Arrays are order-sensitive in JSON (unlike objects). [1,2,3] and [3,2,1] are different. The tool compares arrays element-by-element, showing which elements were added, removed, or changed.

Can I compare large JSON files?

The tool handles JSON up to several MB comfortably. Very large files may slow the browser. For enterprise-scale JSON comparison, consider command-line tools like jq or dedicated diff utilities.

What if my JSON is invalid?

The tool validates both inputs and shows parse errors with line numbers. Fix the JSON syntax before comparing. Use our JSON Formatter to validate and fix formatting issues.

Can I compare API responses?

Yes — copy-paste API responses from your browser DevTools, Postman, or curl output. This is one of the most common use cases — checking what changed between API versions.

Related Tools

JSON Formatter → Text Compare → JSON Path Tester → JSON Schema Validator →