JSON Diff & Merge
Compare two JSON files and merge themRuns locally · nothing uploaded
2 added, 0 removed, 3 changed
Changed$.version"1.2.0" → "1.3.0"
Added$.features[2]"merge"
Changed$.db.host"localhost" → "db.internal"
Added$.db.ssltrue
Changed$.debugtrue → null
Also works as:json comparejson diff onlinejson mergejson patch generatorjson merge patchcompare config files
How to use
- 1Paste JSON A and JSON B.
- 2Choose Diff to see the change list or JSON Patch, or choose Merge.
- 3For merges, pick a strategy and array mode, then copy the result.
FAQ
How is this different from a text diff?
It compares the JSON structure, so key order, indentation and line breaks don't count as changes, and each change is reported by its path.
Deep merge vs. JSON Merge Patch?
Deep merge combines objects level by level with B winning, and lets you replace, concatenate or index-merge arrays. JSON Merge Patch (RFC 7396) deletes keys set to null in B and always replaces arrays.
Is my data uploaded?
No. Both documents are parsed and compared in your browser.