Skip to content
Json Works

Runs in your browser · nothing is uploaded

JSON Diff: Compare Two JSON Files

Compare two API responses structurally. See added, removed and changed values by path — key order ignored, noisy fields skippable. Runs in your browser.

Original (A)

Empty

Changed (B)

Empty

Result

Paste two JSON documents to compare them.

Compare API responses the way developers actually need to

Text diffs light up on key order and whitespace. A structural diff compares meaning: which fields were added, which disappeared, and which values changed — each with its exact JSONPath. Perfect for checking a staging response against production, or a new API version against the old one.

Why a structural diff beats a text diff

Two JSON documents can be identical in meaning and still look completely different as text: keys may come back in a different order, or one file may be minified and the other indented. A line-by-line diff reports all of that as changes. A structural diff parses both documents first, so it reports only what is actually different.

Reading the result

  • Added values exist only in the second document.
  • Removed values exist only in the first.
  • Changed values appear in both with a different value, shown as before and after.

Every difference is listed with its path, such as $.user.roles[1], so you can go straight to the field in your code or API documentation.

Typical uses

  • Compare a staging response with production after a deployment.
  • Check what changed between two versions of an API before updating a client.
  • Review configuration files, feature flags or exported settings.
  • Find the one field that makes a test fixture fail.

Our guide on how to compare two JSON files walks through these cases in more detail. If either side will not parse, the JSON Formatter will show you the exact error.

How to use JSON Diff

  1. Paste the original JSON on the left and the changed JSON on the right.
  2. Add noisy keys (like updatedAt) to Ignore keys and choose how arrays are compared.
  3. Review Changes by path, or switch to Side by side.
  4. Copy the change list as JSON or download it as CSV.

Private by design

JSON Diff runs entirely in your browser. Your data is parsed and converted on your device with JavaScript — it is never sent to a server, logged or used for analytics. Recent inputs are kept in your browser’s own storage so you can come back to them, and they disappear when you clear cookies and site data (or press Clear history). You can verify this in your browser’s network tab.

Frequently asked questions

Does key order matter?

No. Objects are compared by key, so {"a":1,"b":2} equals {"b":2,"a":1}. Arrays compare by position by default; switch to "ignore order" to treat them as collections.

How do I ignore fields like timestamps or request IDs?

Type their names into "Ignore keys" (comma separated). They are skipped everywhere in both documents, which keeps the diff focused on real changes.

Is either document uploaded?

No. The comparison runs in your browser, so you can safely compare production responses.

What is the side-by-side view?

It formats both documents with sorted keys and shows a line-by-line diff, useful for reviewing changes in context. For very large differences use the Changes list instead.

Found a bug or have an idea for this tool? Send feedback.

Guides for JSON Diff

More JSON tools

History

Saved only in this browser (IndexedDB). It never leaves your device and disappears when you clear cookies and site data.