JSON diff and compare

Paste the original JSON on the left and the changed JSON on the right. The tool compares the data, not the text, so whitespace and key order do not count as changes.

    How the JSON comparison works

    Both inputs are parsed and compared value by value. Every difference is listed with its path, for example $.address.zip or $.roles[1].

    Object key order and formatting are ignored, because they do not change the data. Arrays are compared by position unless you tick Ignore array order, which treats every array, including nested ones, as an unordered list.

    When to use a JSON diff

    To tidy JSON before comparing it, use the JSON formatter.

    Frequently asked questions

    Does key order matter?
    No. {"a":1,"b":2} and {"b":2,"a":1} are equal.
    Is 1 the same as "1"?
    No. A number and a string are different types, so they show as changed.
    Can I compare large files?
    Yes. Comparison runs in your browser; files of a few megabytes are fine. The list shows the first 2,000 differences.
    Is my data uploaded?
    No. Both documents are parsed and compared on your device.