Compare & Diff

JSON Diff & Compare

Compare two documents structurally and generate a JSON Patch describing their differences.

Browser private
JSON Input
Loading editor…
1 line 0 characters0.0 KB UTF-8
SECOND DOCUMENT
Loading editor…
Loading editor…
Preview your result here
Ready when you are| Local processing
|

How to use JSON Diff & Compare

  1. Enter the original document and the changed document.
  2. Compare parsed values and inspect added, removed, or replaced paths.
  3. Export the patch and test it against the original.

Input: Two JSON documents. Output: Diff / JSON Patch.

Try a small example

Use the workspace's Sample action to load example data, or paste this input and run the tool. Loading an example is an explicit action.

{"name":"Ada","active":true,"scores":[9,12],"address":{"city":"Pune"}}

What to keep in mind

Semantic comparison ignores insignificant JSON whitespace. Array order remains meaningful; repeated object keys are not a reliable interchange format.

Your source and result are separate. Review transformations before applying them, and download an original copy when preserving exact input matters.

Continue your workflow

Read practical JSON guides or learn how local processing works.