Back to Developer Tools

Structural comparison tool

JSON Diff & Compare Tool

Compare two JSON documents by nested path and identify added, removed, changed and unchanged values.

Structural diff

added

2

removed

1

changed

0

unchanged

2

ChangePathBeforeAfter
unchanged$.user.name"Ana""Ana"
unchanged$.user.roles[0]"editor""editor"
added$.user.roles[1]โ€”"admin"
removed$.activetrueโ€”
added$.verifiedโ€”true

About JSON Diff & Compare Tool

Find structural differences between two valid JSON values, including nested objects and arrays.

Input is processed locally in your browser and is not sent to Navorika.

How the calculation works

Objects

Object keys are matched by name at each nested path.

Arrays

Array items are compared by numeric index so insertions and removals remain explicit.

How to use this tool

  1. 1Paste the original JSON.
  2. 2Paste the compared JSON.
  3. 3Correct any syntax errors.
  4. 4Inspect or copy the path-based summary.

Understanding the result

Added paths exist only on the compared side; removed paths exist only on the original side.

Unchanged count measures equal leaf values rather than lines of formatted text.

Important limitations

  • Arrays are compared by index and do not attempt identity matching or move detection.
  • JSON object key order is not treated as a difference.

Explore this topic

Frequently asked questions

Does formatting affect the comparison?

No. Both inputs are parsed before comparison.

How are arrays handled?

Values are compared at matching indexes.

Can I copy the result?

Yes. Copy summary includes counts and every reported path.

Related tools

Selected from curated relationships first, then the same subtopic and category.