JSON Diff
Original
Modified
Enter JSON in both panels to compare
Empty

JSON Diff

Semantic JSON comparison that understands structure, not just text. Detects added, removed, and modified values at every nesting level. Optionally ignore array order for set-like comparison. Export differences as RFC 6902 JSON Patch.

Use Cases

  • Compare API responses before and after a code change
  • Find differences between two JSON configuration files
  • Verify that a migration preserved all data correctly
  • Review changes in JSON-based infrastructure definitions
  • Generate JSON Patch documents for programmatic updates

Frequently Asked Questions

Is this a line-based or semantic diff?

This is a semantic diff. It parses both JSON documents and compares their structure, not their text representation. Two documents with different key order but identical content are reported as identical.

What is JSON Patch format?

JSON Patch (RFC 6902) is a standard format for describing changes to a JSON document. Each operation has an "op" (add, remove, replace), a "path" (JSON Pointer), and optionally a "value".

Can I ignore array order?

Yes. Enable the "Ignore array order" toggle to treat arrays as unordered sets. Two arrays with the same elements in different order will be reported as identical.