Swelıty
Tools for everyone

Free Online JSON Compare

Compare two JSON documents and see every added, removed and changed value with its exact path. Key order is ignored.

Original JSON

Changed JSON

Added
2
Removed
1
Changed
2
Result
Different
  • − Removed

    $.legacy

    "yes"

  • ~ Changed

    $.owner.active

    true → false

  • + Added

    $.owner.email

    "sam@example.com"

  • + Added

    $.tags[2]

    "free"

  • ~ Changed

    $.version

    "1.0.0" → "1.1.0"

How to use

  1. Paste the original JSON on the left and the changed JSON on the right.

  2. Choose whether the order of items in lists matters.

  3. Review the counts and the list of changes. Filter by added, removed or changed.

  4. Copy the list of changes to share it.

Why use this tool

  • Exact paths

    Every difference shows where it is, such as $.items[2].price, with the old and new values.

  • Ignores key order

    Documents with the same data in a different order are reported as identical.

  • List order option

    Compare lists by position, or ignore the order of their items.

  • Clear summary

    Counts of added, removed and changed values, and a clear identical result.

About this tool

JSON Compare finds the differences between two JSON documents and lists every added, removed and changed value with its exact path, such as $.owner.email. Key order is ignored, so documents that hold the same data count as identical, and you can optionally ignore the order of items in lists. Filter the changes, copy them, and swap the two sides.

Frequently asked questions

Text Diff compares characters and lines, so reordered keys or different formatting show up as changes. JSON Compare understands the structure, so only real differences in the data are reported.

A value that differs, including a change of type such as 1 versus the text 1. Keys that exist on only one side are listed as added or removed.

By position by default, so inserting an item near the start shifts the items after it. Turn on Ignore the order of items in lists to match equal items wherever they are.

No fixed limit, but only the first 2,000 differences are listed to keep your browser responsive.

No. The input must be valid JSON. Use the JSON Validator to find syntax errors first.