JSON Diff

Compare JSON
Statistics
Added 0
Removed 0
Modified 0
Unchanged 0
Diff Result

Enter JSON in both fields to compare

Structural JSON Comparison

A line-based diff reports reordered keys and reformatted whitespace as changes even when the data is identical. This tool parses both documents first and compares them structurally - added, removed and modified values are reported by their path, however the JSON happens to be formatted. That makes it the right choice for comparing API responses between environments or spotting exactly what a deploy changed in a config.

For plain text, logs or code, the Text Diff tool is the better fit - and if you are curious how diffing works underneath, see diff algorithms explained.

JSON Diff Questions

Full recursive comparison. Nested objects and arrays are compared at every level. You'll see the exact path to each difference.

Yes. Arrays are compared element by element in order. Reordering elements shows as additions and removals.

Yes, use the Format button first to make both inputs readable, then compare. Or paste minified - the diff works either way.

Green = added (in modified, not in original). Red = removed (in original, not in modified). Changed values show both the old and new values.