JSON Diff Checker – Compare JSON Online

Compare two JSON documents online and see exactly what was added, removed or changed, listed by path. Click any difference to jump to it.

Original JSON

1

Changed JSON

1

Differences

Waiting for input

About this tool

This is a structural diff: it compares the data rather than the text, so formatting and key order never show up as changes. Each difference is reported with its path, such as address.city or users[1].role.

How the JSON diff works

This is a structural diff. It compares the parsed data instead of the raw text, so differences in whitespace or key order never show up as changes. Each difference is reported with its path.

~ 0.name: "Asha Rao" -> "Asha R."
+ 1.role: "admin"
- 1.temp: true

~ changed value    + added in the second JSON    - removed from the first

When to compare JSON

A JSON diff is useful for checking what changed between two API responses, reviewing edits to a configuration file, comparing test fixtures, and confirming that a migration did not alter data it should not have.

Tips

Array order matters, so the same items in a different order are reported as changes. Sort the arrays first, for example with the JSON editor, when order is not meaningful.

How to use it

  1. Paste the original JSON on the left and the changed JSON on the right.
  2. Each difference appears with its path. Click one to jump to that spot in your JSON.
  3. Green lines were added, red were removed and purple were changed.

Frequently asked questions

Does key order matter?

No. Objects are compared by key. Array order does matter.

What do + - and ~ mean?

+ exists only in the second JSON, - only in the first, and ~ means the value differs.

Is this a text diff?

No. It compares the parsed data, so whitespace differences are ignored.

More JSON tools

JSON Checker – Validate JSON OnlinePaste your JSON into this free JSON checker to validate it instantly. Any error is pinpointed by line and column, so you can fix it in seconds.Online JSON Editor with Find and ReplaceEdit JSON online with live validation, find and replace (including regex), key sorting and undo. Everything runs in your browser.JSON Formatter and BeautifierFormat and pretty print JSON online. Turn minified or messy JSON into readable, indented, syntax-highlighted text with 2 spaces, 4 spaces or tabs.JSON Minifier – Compress JSON OnlineMinify JSON online by removing every unnecessary space and line break. See the size before and after, then copy or download the result.JSON to CSV ConverterConvert JSON to CSV online. Paste an array of JSON objects and get a CSV ready for Excel, Google Sheets or a database, with nested objects flattened into columns.CSV to JSON ConverterConvert CSV to JSON online. The first row becomes the keys, and each following row becomes a JSON object. Dotted headers are rebuilt into nested objects.JSON to YAML ConverterConvert JSON to YAML online for Kubernetes manifests, Docker Compose files, CI pipelines and other configuration. Paste valid JSON and copy the YAML.YAML to JSON ConverterConvert YAML to JSON online. Paste YAML from a config file and get valid, formatted JSON, with syntax errors explained.JSON Tree Viewer – Explore JSON VisuallyView JSON as a collapsible tree online. Expand only the branches you need instead of scrolling through long, deeply nested text.

Advanced JSON tools

Need more than the basics? Our developer tools go further.