<link rel="stylesheet" type="text/css" href="/mirawhite.css">

JSON diff checker: compare two JSON files

Paste two JSON documents to see exactly what changed, key by key, whatever the order of the keys. Free, and nothing is sent to a server.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

JSON diff

Options
Maximum gap between two numbers still considered equal (0 = exact).
View

Result

Paste a JSON document in each box.

How to use it

  1. Paste or open the original JSON on the left and the new one on the right, or try the example.
  2. Read the list of differences: + added, − removed, ~ changed, each with its path.
  3. Switch to the side-by-side view to see both documents formatted with sorted keys.

Example

Input

Original:
{"name": "Utiloz", "version": 1, "debug": true, "tags": ["web", "tools"], "users": [{"id": 1, "email": "ann@example.com"}]}

New:
{"name": "Utiloz", "version": 2, "tags": ["web", "tools", "free"], "users": [{"id": 1, "email": "ann@example.org"}]}

Output

~ $.version: 1 → 2
- $.debug: true
+ $.tags[2]: "free"
~ $.users[0].email: "ann@example.com" → "ann@example.org"

Good to know

  • Key order never counts. Array order does, unless you tick the option: elements are then matched by content.
  • Arrays are compared position by position: an element inserted at the start shows the following ones as changed. The side-by-side view makes such shifts easy to spot.
  • Very large integers (beyond 2^53) lose precision, as in any JavaScript program.
  • Both documents stay in your browser: nothing is sent or stored.

Frequently asked questions

How do I compare two JSON files?

Click “Open file” above each box to load the original on the left and the new version on the right, or paste their content. The tool lists every difference as + added, − removed or ~ changed with its path, and the side-by-side view shows both documents formatted with sorted keys.

Does key order matter when comparing JSON?

No: {"a":1,"b":2} and {"b":2,"a":1} are identical here, because JSON objects have no order. Array order does count, since [1,2] and [2,1] are different lists; tick “Ignore array order” to match array elements by content instead.

How do I compare JSON in VS Code or Notepad++?

In VS Code, select both files in the Explorer, right-click and choose “Compare Selected”; Notepad++ needs the Compare plugin. Both compare lines of text, so a different key order or indentation shows up as a change, which this tool ignores.

How do I compare JSON objects in Python or JavaScript?

In Python, json.loads(a) == json.loads(b) tells you whether two documents are equal, ignoring key order; the deepdiff package lists the differences. JavaScript has no built-in deep comparison: use a library such as jsondiffpatch, or lodash’s isEqual for a yes or no answer.

What does a path like $.users[2].email mean?

It locates the value inside the document: $ is the root, .users the “users” key, [2] the third element of the array (counting from 0), .email the key inside it. Keys with spaces or special characters are written in brackets, like $["first name"].

Can the comparison ignore tiny number differences?

Yes: set a number tolerance, for example 0.01, and two numbers that differ by no more than that count as equal. Leave 0 for an exact comparison. Very large integers beyond 2^53 lose precision when read, as in any JavaScript program.

← Back to all tools