ToolsKit

JSON Diff

Compare two JSON documents and list every difference.

Compare two JSON documents and list every difference. Free, instant and private in your browser.

Loading the interactive tool… This page needs JavaScript to run the JSON Diff.

How to use JSON Diff

  1. Paste the data, code, token, or value you need to inspect.
  2. Set any format, encoding, or validation options.
  3. Run the tool and inspect the result or diagnostic output.
  4. Copy the output into your terminal, editor, API client, or project.

How JSON Diff works

Paste an original and a changed JSON document, and the tool compares them structurally. It lists each path as added with plus, removed with a minus sign, or changed with a tilde, and shows the old and new values for changes. Arrays are compared by index, so inserting an item near the start can report many changes. At most 200 differences are listed.

Worked example

Input: original with name Ada, age 36, tags a and b; changed with age 37, tags a and c, plus city London → Output: 3 differences: ~ age 36 to 37, ~ tags[1] b to c, and + city added London.

Common uses

  • Find what changed between two API responses after a deploy.
  • Compare a config file before and after an edit.
  • Spot a missing key in a payload when a test fails.

Best for

  • debugging and development
  • API work
  • quick lookups

Tips for better results

  • Format both JSON documents first for clearer results.
  • Validate the output before using it in production code.
  • Treat tokens, credentials, and secrets as sensitive even when processing happens locally.
  • For large payloads, keep an original copy so you can compare changes.

Frequently asked questions

How are arrays compared?

By index, so inserting an item shifts later positions.

Is my data sent to a server?

No. This tool runs in your browser, so what you enter stays on your device.

Do I need an account to use JSON Diff?

No account or sign-up is needed. Just open the tool and use it.

Related tools

Explore tool categories