jsonecho

JSON Compare

Paste two JSON documents and see exactly what changed between them.

Loading the tool...

How to use JSON Compare

  1. Paste the original JSON on the left and the new version on the right.
  2. The differences appear below as soon as both sides are valid.
  3. Turn on "Ignore array order" if the order of items in lists does not matter to you.

About JSON Compare

A plain text diff is a poor fit for JSON. If someone re-indents the file or reorders the keys, every line shows as changed even though the data is identical. This comparison reads both documents as data, so only real differences show up.

Each difference is listed with its path, such as $.owner.active, and marked as added, removed or changed. You can tell at a glance what happened to a config between two releases.

Frequently asked questions

Does key order matter?

No. {"a":1,"b":2} and {"b":2,"a":1} are reported as identical, because in JSON objects are unordered collections.

How are arrays compared?

By position by default, so moving an item shows as changes. With "Ignore array order" on, items are matched by value instead, and you only see items that exist on one side only.

What happens if one side is invalid?

You will see which side has the problem, with the line and column. The other side is not compared until both are valid.

Can I compare large files?

Yes, up to the size limit of the site. Very large documents with thousands of differences may take a second or two to list.

Is there a side-by-side highlighted view?

Not at the moment. The tool lists the differences by path, which is easier to read for data than coloured lines.

More in JSON Tools

All tools →