Skip to content
Tools

JSON Diff

Compare two JSON documents structurally and see what changed.

Local
Differences

What this tool does

This tool compares two JSON documents by structure, not by text, and lists what changed: properties added, properties removed, and values that differ. Each change is shown with the path to the value, so you can jump straight to it.

Structural, not textual

A plain text diff is thrown off by reordered keys, different indentation or spacing. This tool parses both sides first, so two objects with the same keys in a different order count as equal, and only real differences in values and keys are reported. Arrays are compared position by position.

Common use cases

  • Comparing an expected and an actual API response in a test.
  • Seeing what changed between two config versions.
  • Spotting an unintended change in a payload.

Good to know

Because arrays are compared by index, inserting an item near the start can show the rest of the list as changed. That reflects the positions honestly; if you care about set membership rather than order, compare the sorted values instead.

Frequently asked questions

Is this different from a text diff?
Yes. It parses both sides first, so reordered keys and different formatting do not show as changes; only real differences in keys and values are reported.
How are arrays compared?
By position. An item inserted near the start can make the rest of the list look changed, which reflects the indexes honestly.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.