JSON Diff Checker

Compare two JSON documents online and highlight added, removed, and changed paths instantly.

What this tool does

Compare two JSON documents and instantly see changed values, added keys, removed fields, and nested path differences. This is useful for API response debugging, config reviews, payload verification, and regression checks across environments. The comparison runs in your browser, so you can inspect sensitive JSON safely without uploading files.

Tool interface

Compare Two JSON Documents

Compare two JSON documents side by side and inspect added, removed, and changed paths with nested value details.

Example input

{
  "name": "Alice",
  "age": 30,
  "tags": ["admin", "editor"],
  "profile": {
    "city": "Melbourne"
  }
}

{
  "name": "Alice",
  "age": 31,
  "tags": ["admin", "owner"],
  "profile": {
    "city": "Sydney"
  },
  "active": true
}

Example output

Changed:
- age: 30 -> 31
- tags[1]: "editor" -> "owner"
- profile.city: "Melbourne" -> "Sydney"

Added:
- active: true

Removed:
(none)

Step-by-step instructions

  1. Paste the first JSON document in the left panel.
  2. Paste the second JSON document in the right panel.
  3. Optionally keep Ignore key order enabled for logical comparisons.
  4. Click Compare JSON to format input and run the diff.
  5. Review Added, Removed, and Changed path groups.
  6. Copy the results or inspect specific paths directly in the output.

Common use cases

  • Comparing API responses between development, staging, and production.
  • Reviewing JSON config changes before deployment.
  • Verifying webhook payload shape changes after provider updates.
  • Inspecting differences between exported JSON snapshots during regressions.

Helps engineers and analysts compare JSON quickly without manual scanning, especially when payloads are deeply nested.

Common mistakes to avoid

  • Comparing invalid JSON syntax and expecting a valid diff output.
  • Assuming key order differences matter when logical content is otherwise identical.
  • Confusing formatting changes (minified vs pretty) with actual data changes.
  • Expecting reordered array values to be treated as unchanged.

Frequently Asked Questions

How do I compare two JSON files?

Paste one JSON document on the left and the second on the right, then run Compare JSON to review added, removed, and changed paths.

Does key order affect the comparison?

By default this tool ignores object key order for logical comparisons. You can toggle this behavior when strict ordering matters.

Can this compare nested JSON objects?

Yes. Nested objects and arrays are compared recursively, and differences are reported with dot and bracket paths.

How are arrays compared?

Arrays are compared by index. If values move to different indexes, the tool reports those index paths as changed.

What happens if one JSON document is invalid?

The tool stops and shows a side-specific syntax error so you can fix invalid JSON before running the diff.

Can I compare minified and formatted JSON?

Yes. Whitespace differences are ignored because JSON is parsed before comparison, not compared as raw text.

Is this JSON diff checker free?

Yes. It is free to use with no account required.

Does the comparison happen in the browser?

Yes. JSON comparison runs in your browser.

Related tools

Related guides

Related categories

Looking for other utilities in this area? JSON Tools, Developer Data Tools