{≠}

JSON Diff

Compare two JSON objects and see structural differences highlighted.

JSON diffcompare JSONJSON comparisondiff JSON
Original JSON
Modified JSON
+1 added-1 removed~1 changed
Differences
~age
3031
-city
"New York"
+country
"USA"

What is JSON Diff?

JSON Diff compares two JSON objects structurally and highlights differences in values, added keys, removed keys, and type changes. Unlike text diff, it understands JSON structure, so reordered keys won't show as different if values are the same.

Common Use Cases

API Testing

Compare expected vs actual API responses during testing.

Config Changes

Track changes in JSON configuration files.

Data Validation

Verify data transformations preserve or modify expected values.

Debugging

Find unexpected changes in JSON data structures.

How to Use This Tool

  1. Paste the original JSON in the left panel
  2. Paste the modified JSON in the right panel
  3. View structural differences highlighted
  4. See added, removed, and changed values

Frequently Asked Questions

Does key order matter?
No. JSON objects with the same keys and values but different order are considered equal.
What about array order?
Yes, array order matters. [1,2] and [2,1] are considered different.
Can it compare large files?
Yes, but very large files may be slower to process. The tool handles typical JSON sizes well.