How to use it
- 1Paste or open the original JSON on the left and the modified JSON on the right.
- 2Choose whether array order matters (it does by default).
- 3Review the added, removed and modified values, listed by JSON path.
- 4Copy or download the comparison report.
Structural comparison, not text comparison
A text diff reports changes line by line, so reformatting or reordering keys produces a wall of false differences. JSON Compare parses both documents and compares their data structures instead.
Objects are compared key by key regardless of order, and numbers are compared by value, so 1.0 and 1 are equal. Only real changes in the data are reported.
How arrays are compared
By default, arrays are compared position by position, because order is meaningful in most JSON data: the first item stays the first item. A change at index 2 is reported as a modification at that path.
Enable “Ignore array order” for arrays that represent sets, such as tags or permissions. Items are then matched by content, and only items without a match are reported as added or removed.
Reading the report
Each difference shows a symbol and a label in addition to its color: + Added for values present only in the modified document, − Removed for values present only in the original, and ~ Modified for values that changed, with the before and after values side by side.
Frequently asked questions
Does key order count as a difference?
No. Two objects with the same keys and values are identical, whatever the order of their keys.
What happens with duplicate keys?
As with standard parsers, the last occurrence of a duplicate key is used for comparison. Use the JSON Validator to find duplicates.
Can I compare large files?
Yes, files up to 10 MB each. The report lists up to 10,000 differences and shows the total counts.
Is my data private?
Yes. Both documents are compared locally in your browser and never uploaded.