Diff result will appear here

A JSON diff compares two JSON documents by structure instead of by text. Both sides are parsed first, so differences in whitespace or in the order of object keys are ignored, and only real changes to keys, values and array items are highlighted.


Added lines are green and removed lines are red. Array order does matter: moving an item shows up as a change. Comparison runs in your browser using the diff (jsdiff) library, and nothing you paste is sent anywhere.

Frequently asked questions

Does key order matter when comparing JSON?

No. Both documents are parsed and object keys are sorted before comparing, so reordering keys is not reported as a change. Array order does matter, because arrays are ordered lists.

How is this different from the Diff Checker?

The Diff Checker compares raw text line by line. The JSON Diff parses both sides first, so whitespace and key order are ignored and invalid JSON is reported instead of compared.

Is my JSON sent to a server?

No. Parsing and comparison run locally in your browser.

Related tools

Guides & comparisons