JSON Diff — Semantic Comparison
JSON Diff performs a deep semantic comparison of two JSON documents. Unlike text diff, it understands JSON structure and distinguishes between different types of changes: added/removed fields, value differences, type mismatches, and key order changes.
How It Works The algorithm recursively traverses both JSON trees, comparing objects key-by-key and arrays element-by-element. It detects four types of differences: missing/added fields (key exists only in one JSON), value differences (same key, different values of the same type), type differences (same key, different types like "123" vs 123), and order changes (same keys/elements in different order). All processing happens locally in your browser.
Free online tool for semantic comparison of two JSON documents. Unlike simple text comparison, JSON Diff understands data structure and correctly identifies four types of differences: missing/added fields, value changes, type mismatches, and key order changes. Each difference type has its own color coding for instant visual recognition.
The tool is essential for API development and testing: compare expected and actual API responses, find differences between configuration files across environments, or verify data migration results. The semantic approach means that {"a":1,"b":2} and {"b":2,"a":1} are correctly identified as having only an order difference, not as completely different documents.
Built-in filters allow you to show or hide each difference type independently. The summary counter provides a quick overview of changes by category. All processing happens locally in your browser — your data is never sent to any server.