Data · free local utility

JSON Diff & Compare

Find added, removed, changed-type, and changed-value paths in two parsed JSON documents instead of comparing whitespace.

Use the tool

Paste the before and after JSON. Object key order is always ignored; choose whether array order should remain meaningful.

Worked example

See the input and expected result

Example input
Before: {"stock": 2}; after: {"stock": 3, "active": true}
Expected result
Changed /stock: 2 → 3; added /active: true
How it works

Get a useful result in three steps

  1. Paste valid before and after JSON.
  2. Choose ordered or unordered array comparison.
  3. Compare path-level changes and verify regression intent.
Accuracy boundary

A focused tool, not an automatic expert

Unordered arrays are compared as value multisets and can hide position changes. This first version does not guess an object identity key or emit a patch.

Always verify the result in the system where you will use it. The page intentionally avoids accounts, uploads, and claims that go beyond the calculation it performs.

Questions

Before you use the result

Does object key order matter?

No. JSON objects are compared by property name, so formatting and key order do not create a difference.

How are arrays compared?

Ordered mode compares positions. Unordered mode compares canonical value counts and reports only added or removed values.

Are null and a missing property the same?

No. A missing property is added or removed; null is a present JSON value and is compared separately.

Related tools

Continue the task locally

Browse every json & data tools in this workflow.