Home› Developer›JSON Diff Checker
Developer tool

JSON Diff Checker

Compare two JSON documents locally and list added, removed and changed paths.

Compare two JSON documents

Paste valid JSON on both sides. Objects are compared by key and arrays are compared by index.

Added paths—
Removed paths—
Changed paths—
No differences—
Diff details
—

How the calculation works

The checker parses both inputs with the browser's JSON parser, then recursively compares values. Object properties are compared by key, while arrays are compared by index. Added, removed and changed paths are listed separately.

How to use the result

Use it for API payloads, configuration files, structured data, test fixtures or saved application state. The path-oriented output is designed to show where the parsed structures differ rather than highlighting every textual formatting change.

Assumptions and limitations

Object key order and whitespace do not count as differences because valid JSON is parsed first. Array order does matter: moving an item to another index can create multiple reported changes. The tool does not apply schema-aware matching or semantic array identity.

Example

All comparison work runs locally in the browser, so pasted JSON does not need to be uploaded to a server.

Frequently asked questions

Does whitespace affect the diff?
No. Both inputs are parsed as JSON first, so formatting and insignificant whitespace are ignored.
Does object key order matter?
No. Object properties are compared by key.
How are arrays compared?
Arrays are compared by index, so reordering items can produce changed paths even when the same values are present elsewhere.
Does the JSON leave my browser?
No. Parsing and comparison run locally in the page.