Rates TodayNIFTY25,884.5+1.45%SENSEX84,328.6+1.57%Gold 24K ₹11,247.13/g up11.51Silver ₹130.30/g up1.61
InsightforGeeks

JSON Diff Checker (Compare Two JSON Files)

Paste two JSON documents and compare them by meaning, not by lines of text. The result lists every difference with its path, such as $.address.pin, and says whether it was added, removed or changed. Key order and spacing are ignored, so only real differences show. You can also ignore the order of items in lists. It runs in your browser, so your data is not uploaded.

How to use it

  1. Paste the original JSON on the left and the changed JSON on the right, or press Sample.
  2. Choose whether the order of items in lists should be ignored.
  3. Press Compare.
  4. Read the list of differences. Press Swap sides to reverse the direction.

Frequently asked questions

Is what I paste uploaded anywhere?

No. This tool runs in your browser, on your own device, and what you paste is never sent to our server.

How is this different from a text diff?

A text diff compares lines, so a change in key order or indentation shows as a difference. This tool understands JSON, so only changes in the data itself are listed, and each one has its path.

How are lists compared?

By position: the first item with the first item and so on. If you tick “Ignore the order of items in lists”, items are matched by value, so a list with the same items in another order counts as equal.

What do the paths mean?

$ is the top of the document, .name is a key and [2] is the third item of a list. Keys with spaces or symbols are written as ["key name"].

What if my JSON is invalid?

The side with the problem shows the line and column of the first error, and no comparison is made until both sides are valid.

Related tools

These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.