Skip to content

JSON Diff

Compare two JSON objects and see every difference: added, removed, and changed values with exact paths. Free online tool, 100% in your browser.

Compare

What is JSON diffing?

JSON diffing compares two JSON objects recursively and identifies every difference between them. Differences are classified as added (keys present in the right but not the left), removed (keys present in the left but not the right), and changed (keys present in both but with different values). Each difference includes the exact JSON path (e.g., user.address.city or items[2].name) so you can quickly locate it in the original data. This is invaluable for debugging API responses, comparing configuration versions, and verifying data migrations.

How comparison works

The diff algorithm performs a deep recursive comparison. For objects, it compares each key-value pair. For arrays, it compares elements by index. Type changes (e.g., a string becoming a number) are reported as changed values. Nested objects are traversed recursively, so a change deep in the structure is reported with its full path. null is treated as a distinct value — null vs. "null" vs. missing key are three different states. The comparison is order-sensitive for arrays (different element order = different arrays) but order-insensitive for object keys (keys can appear in any order).

Privacy

All comparison runs 100% in your browser. No JSON data is sent to any server.