JSON Diff — Compare Two JSON Objects
Paste two JSON documents and see exactly what changed — every added, removed, and modified field highlighted instantly.
View
JSON A — original
JSON B — modified
✓ The two JSON objects are identical.
Paste two JSON documents and see exactly what changed — every added, removed, and modified field highlighted instantly.
View
JSON A — original
JSON B — modified
✓ The two JSON objects are identical.
In short: A JSON diff tool compares two JSON documents and shows you exactly what changed — which fields were added, removed, or modified, and at what path. RealJSON's diff walks both documents key by key in your browser and highlights additions in green, removals in red, and changes in amber, with summary counts for a quick overview.
Comparing API responses, config files, or database snapshots by eye is error-prone and slow. RealJSON's JSON diff tool walks both documents key by key and surfaces every change — added fields in green, removed fields in red, and modified values in amber.
Reach for a JSON diff when you need to confirm exactly what an API response, config file, or database export looks like before and after a change — debugging why a webhook payload changed shape, reviewing what a migration script altered, checking whether a third-party API's response format shifted between versions, or verifying that a config edit only touched the fields you intended.
The diff recurses into nested objects, reporting the full dot-notation path for every difference (e.g. address.city). Top-level changes and deeply nested ones are equally visible.
Above the diff output, count badges show how many fields were added, removed, and changed — useful for a quick "how big is this change?" scan before reading the details.
When enabled, arrays are compared index-by-index regardless of element order — useful for comparing sets or tag lists where order doesn't carry meaning.
Paste each JSON document into the diff tool. It walks both documents key by key and highlights every added field in green, removed field in red, and changed value in amber, with the full path to each difference.
Yes. It recurses into nested objects and arrays and reports the full dot-notation path for every difference, such as address.city, so changes at any depth are equally visible.
By default, arrays are compared index-by-index. If order doesn't matter for your data — like tag lists or sets — enable "ignore array order" to compare elements regardless of position.
Count badges above the diff output show how many fields were added, removed, and changed, giving you a quick sense of how large the change is before reading through every line.
No. The comparison runs entirely in your browser using JavaScript — neither document is ever sent to a server, so it's safe to compare data containing API keys or other sensitive values.
Use the JSON Repair tool if either document has syntax errors before comparing. After diffing, the JSON Editor lets you apply changes interactively.
Browse all free JSON tools →
Related tools