JSON_DIFF_V1

JSON Diff

Paste an old JSON on the left and the new one on the right. Lines that were removed glow red, lines added glow green, changed lines sit on the same row with both sides colored. Toggle canonical mode to sort keys and pretty-print before comparing — that gives a structural diff that ignores cosmetic reformatting.

Old (left)Valid
New (right)Valid
Added2Removed0Changed3Unchanged10
Diff ready
Old
New
1{1{
 2 "active": true,
2 "address": {3 "address": {
3 "city": "London",4 "city": "London",
4 "zip": "SW1"5 "zip": "SW1A 1AA"
5 },6 },
6 "id": 1,7 "id": 1,
7 "name": "Ada",8 "name": "Ada Lovelace",
8 "role": "engineer",9 "role": "engineer",
9 "tags": [10 "tags": [
10 "js",11 "js",
11 "ts"12 "ts",
 13 "rust"
12 ]14 ]
13}15}

Why canonical mode matters

Two JSONs with the same data can produce very noisy diffs if one was reformatted or had its keys reordered. Canonical mode runs both sides through JSON.stringify with sorted keys and a fixed indent, so the diff highlights only real value changes.

Related JSON tools