# JSON Diff

deep structural comparison · added · removed · changed

Paste two JSON objects and see exactly what changed. Added keys in green, removed in red, changed values in amber. Deep diff — works with nested objects and arrays.

JSON A (original)
JSON B (modified)
0 added 0 removed 0 changed

FAQ

How does the diff work?

The tool recursively walks both JSON structures. For each key, it checks if it exists in A, B, or both. If present in both, it compares values — if they differ, it marks them as "changed". Arrays are compared element by element.

What about arrays?

Arrays are compared index by index. If the arrays have different lengths, extra elements are shown as added or removed. For complex array diffs, consider using the text Diff Viewer tool instead.

Can I compare JSON arrays (not objects)?

Yes! You can diff any valid JSON value — objects, arrays, strings, numbers, booleans, or null.