JSON Diff refers to comparing two JSON data sets to find added, deleted, and modified fields between them. In daily development, we often need to know "what exactly is different" between two JSONs: what changed in the response structure before and after an API upgrade, where configurations differ between two environments, which field deviates between actual results and expected baselines in automated testing. Manual line-by-line checking is slow and error-prone; a JSON Diff tool can automatically highlight differences.
JSON diff comparison generally follows two approaches. One is "textual diff": after formatting JSON into canonical multi-line text, perform a Git-diff-like comparison line by line, intuitively showing additions, deletions, and modifications per line. The other is "structural/semantic diff": parse JSON into a tree structure and compare values and types one by one by field path (e.g., user.address.city), unaffected by field ordering, indentation, or other formatting factors. This tool provides both Text View and Semantic View, switchable as needed.
Why format before comparing? Because the same data can have completely different formatting (single line vs. multi-line, 2-space vs. 4-space indent). If compared directly as raw text, many "false differences" caused by formatting variations would appear. This tool automatically parses and uniformly formats both sides before comparison, eliminating whitespace interference so you only see truly meaningful data changes.
Note that key order in JSON objects is semantically unimportant ({"a":1,"b":2} is equivalent to {"b":2,"a":1}), but array element order is meaningful ([1,2] is different from [2,1]). Therefore, when you only care about array content consistency regardless of order, we recommend sorting arrays or sorting keys before comparison to avoid order changes being mistakenly identified as differences.
All formatting and comparison in this tool is done locally in the browser; data is never uploaded to servers. It also supports character-level highlighting, addition/deletion/modification counting, multi-tab simultaneous comparison, and URL sharing of comparison scenarios, suitable for API integration, config comparison, test assertions, and Code Review scenarios.