JSON diff & compare

Compare two API responses, config files or exports by their structure. Key order and formatting are ignored, so you only see real changes — each with its exact path.

  • Runs in your browser
  • Nothing uploaded
  • Free, no sign-up

Compared in your browser — safe for API keys, tokens and production data. Nothing is sent anywhere.

How to use it

  1. Paste both versionsOriginal on the left, changed on the right — or open .json files. Errors show the exact line and column.
  2. Set the rulesIgnore array order for lists where position doesn’t matter, or match array items by a key such as “id” so a reordered list of records compares correctly.
  3. Review and exportEvery change is listed with its path, old and new value. Switch to side by side for context, or download a JSON Patch.

Questions

How is this different from a text diff?

A text diff flags reformatting, reordered keys and changed indentation. This compares the parsed data, so {"a":1,"b":2} and {"b":2,"a":1} are identical, and you only see real value changes.

What does “Match array items by” do?

Lists of records often come back in a different order. With a key like “id”, items are paired by that field instead of by position, so you see that user 42’s email changed rather than every item “moving”.

What is a JSON Patch?

A standard format (RFC 6902) listing operations — add, remove, replace — that transform one JSON document into another. Many APIs and libraries can apply it.

What do the paths mean?

Paths use JSONPath style: $.users[2].email is the “email” field of the third item in “users”. Keys with spaces or symbols are shown in brackets, like $["first name"].

Is my data uploaded?

No. Both documents are parsed and compared in your browser.