Tools
EN
  1. JSON Formatter
  2. JSON Diff

JSON Diff

Compares two JSON documents by content, not by text. Indentation and key order are ignored.

Input

Drop the file here
Your data never leaves your browser

The result appears here.

A text diff flags every line that moved. This comparison reads both documents as data and reports only real differences: what changed, what is new and what is gone, each with a path such as customer.address.zip.

It is handy for comparing two API responses, two versions of a configuration, or test data against production data.

How it works in 3 steps

  1. Paste your JSON into the left field or drop a file onto it.
  2. Pick the indentation: 2 spaces, 4 spaces or tab. The result shows up on the right straight away.
  3. Copy it, save it as .json or share it as a link. If the tool reports errors, "Auto-fix" repairs the usual ones in one click.

Frequently asked questions

Does key order matter?

No. {"a":1,"b":2} and {"b":2,"a":1} count as equal. In arrays the order does matter, because it carries meaning there.

What do the symbols in front of the lines mean?

The tilde (~) means changed, plus means added in the second JSON, minus means removed.

Can I compare broken JSON?

Only after repairing it. The tool shows the error, "Auto-fix" resolves it, then the comparison runs.

Related JSON tools