JSON Diff Checker

Diff two JSON documents structurally — added, removed, and changed paths with values, not just text lines.

Compare two JSON documents key by key instantly. Free JSON diff with added/removed/changed paths, array index diffs and counts.

Calculator Inputs

About JSON Diff

Diff two JSON documents structurally — added, removed, and changed paths with values, not just text lines.

Paste both documents. Each is parsed (with a precise error if invalid), then compared recursively: objects by sorted keys, arrays by index, scalars by value. Every difference prints as a path line — + added, removed, ~ changed — with counts and a 200-line cap.

Key order never counts as a change, and array reordering shows as index-level edits. Everything runs locally in your browser.

Where it is used

Reviewing API response changes, debugging config drift, comparing payloads across environments, and validating migrations.

How to use the JSON Diff

  1. Original JSON — enter the value (e.g. {"a": 1}).
  2. Modified JSON — enter the value (e.g. {"a": 2}).
  3. Calculate — press the Calculate button to see the result instantly above.

Formula

Recursive deep-compare with JSONPath-ish paths; arrays aligned by index.

Examples

Example

jsonA:{"a": 1, "b": 2}
jsonB:{"a": 1, "b": 3, "c": true}
Result: ~ b: 2 → 3 / + c: true

Frequently Asked Questions

Does key order matter?
No. Objects compare by key set, so reordered keys are identical. Only added, removed, or changed values appear.
How are reordered arrays handled?
By index, so a reorder shows as multiple changes. For set-like arrays, sort both sides first.
Is there a size limit?
No hard cap, but multi-megabyte documents can feel slow since comparison is recursive. The output truncates at 200 differences.