JSON Compare

Diff two JSON objects side-by-side. See exactly what was added, removed, or changed. All comparison runs locally — your data is never uploaded.

1
1

When to compare JSON

JSON comparison is useful in many everyday development situations: debugging why an API response changed between versions, reviewing the difference between a dev and production config file, verifying that a data transformation preserved all expected fields, or tracking how an object's state changed over time. Rather than manually scanning two large JSON objects line by line, the compare tool instantly highlights exactly what changed.

How the comparison works

The tool performs a deep recursive comparison of both JSON objects. For every key at every level of nesting, it classifies the result as one of four states:

  • Added — keys present in JSON B but not in JSON A
  • Removed — keys present in JSON A but not in JSON B
  • Changed — keys present in both but with different values
  • Unchanged — keys present in both with identical values

The comparison is value-based, not line-based. Two JSON objects with the same data but different key ordering or whitespace will still compare as equal.

Example comparison

JSON A (original):

{
  "name": "Alice",
  "role": "admin",
  "active": true
}

JSON B (updated):

{
  "name": "Alice",
  "role": "editor",
  "active": true,
  "email": "alice@example.com"
}

Changed: role — from "admin" to "editor"

Added: email — "alice@example.com"

Unchanged: name, active

Frequently Asked Questions

Does key order matter for comparison?

No. The comparison is structural and value-based. Two objects with the same keys and values in different orders will compare as identical. JSON object key order is not semantically significant.

How are arrays compared?

Arrays are compared element by element by index. If array items are objects, they are compared recursively. Array order does matter: if the same items appear in a different order, they will show up as changed.

Does the tool support nested JSON?

Yes. The comparison is fully recursive. Nested objects and arrays at any depth are compared and differences are reported at the specific nested path where they occur.

Is my data uploaded to a server?

No. The comparison runs entirely in your browser. Neither JSON object is ever transmitted to any server.

Related Tools