JSON Diff

Compare two JSON documents and highlight added, removed and changed keys.

Frequently asked questions

What does a JSON diff show?

It structurally compares two JSON documents and lists which keys were added, removed or changed between them. This highlights exactly how the two differ.

How is this different from a plain text diff?

A text diff compares lines and is thrown off by reformatting or key reordering, while a structural JSON diff compares the actual data. That means whitespace and key order do not create false differences.

Does key order affect the comparison?

No. Because the comparison is structural, objects with the same keys and values match regardless of the order they appear in. Only real differences in data are reported.

Is my JSON uploaded to compare it?

No. Both documents are compared entirely in your browser, so your JSON is never sent to a server. It stays on your device.

What counts as a changed key?

A key is reported as changed when it exists in both documents but its value differs between them. Keys present in only one document are listed as added or removed.

What happens if one side is not valid JSON?

The tool needs valid JSON on both sides to compare structure, so an invalid document will be flagged rather than compared. Fixing the syntax lets the diff run.

Can it compare nested objects and arrays?

Yes. The comparison descends into nested objects and arrays, so differences deep inside the structure are detected and reported, not just at the top level.