Free JSON Compare & Diff Tool

Compare two JSON files online for free. Lists every added, removed and changed value by path, ignores key order and can ignore array order. Nothing uploaded.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Compare Two JSON Files and Spot Real Differences →

About the JSON Compare tool

A plain text diff of two JSON files is noisy: reorder a few keys or re-indent the file and every line looks changed, while the one value that actually changed gets lost. This JSON compare tool parses both documents and compares their data instead of their text.

Objects are compared key by key regardless of order, so {"a":1,"b":2} and {"b":2,"a":1} count as equal. Every difference is listed with its JSONPath-style location, such as $.env.LOG_LEVEL or $.items[3], and labelled as added, removed, changed or type changed, which is useful for spotting a number that became a string. Arrays are compared position by position by default. Switch on “Ignore array order” when order is meaningless, like a list of tags or permissions; the arrays are then compared as collections and only items that exist on one side are reported.

A summary counts each kind of change, and “Copy report” gives you a plain-text list to paste into a pull request or ticket. Both documents are parsed and compared locally in your browser.

How to use JSON Compare

  1. Paste the first document into “Original JSON” and the second into “Modified JSON”, or click “Load sample”.
  2. Turn on “Ignore array order” if the order of array items does not matter.
  3. Read the coloured counters and the list of differences with their paths.
  4. Click “Copy report” to copy a text summary, or “Swap sides” to reverse the comparison.

Features

Key order ignored

Objects are matched by key, so reordering never shows up as a change.

Path for every change

Each difference shows its exact location like $.limits.memory.

Type change detection

Values that switch type, such as 3 to "3", are flagged separately.

Unordered array mode

Compare arrays as collections when item order is irrelevant.

When to use it

  • Compare API responses from staging and production.
  • Review what changed between two versions of a config or feature-flag file.
  • Check a JSON translation file against the source language for missing keys.
  • Verify that a data migration produced the same records.
  • Spot differences in package-lock or composer.lock sections.

Frequently asked questions

Does key order matter when comparing JSON?

No. In JSON, object key order carries no meaning, so this tool always matches keys by name.

How are arrays compared?

By default item 0 is compared with item 0, item 1 with item 1 and so on. With “Ignore array order” on, arrays are treated as unordered collections and only unmatched items are reported.

What does “type changed” mean?

The value at that path has a different JSON type in each document, for example a number in one and a string or null in the other.

Can I compare large files?

Yes, within the limits of your browser’s memory. Documents of several megabytes compare quickly on a modern device.

Is this a text diff?

No. For line-by-line text comparison use the Text Diff tool. This tool compares parsed JSON values.

Related tools