JSON Diff & Compare
Compare two JSON documents structurally — added, removed, and changed values with exact paths, ignoring key order.
| Path | Change | Left | Right |
|---|---|---|---|
| $.version | changed | "1.2.0" | "1.3.0" |
| $.private | removed | false | |
| $.tags[2] | added | "diff" | |
| $.author.url | removed | "https://www.devkult.com" | |
| $.license | added | "MIT" |
Frequently Asked Questions
How is this different from a regular text diff?
A text diff compares lines, so reordered keys or different formatting show up as changes even when the data is identical. This tool parses both documents and compares the actual structure — key order, whitespace, and indentation never count as differences.
Does the order of keys in a JSON object matter?
No. Per the JSON specification, objects are unordered collections of key/value pairs, so {"a":1,"b":2} and {"b":2,"a":1} are the same document. This tool treats them as identical.
How are arrays compared?
Arrays are compared element by element, in order, because array order is meaningful in JSON. If you reorder array items, that is reported as a real change.
Is my JSON uploaded anywhere?
No. Parsing and comparison run entirely in your browser using JavaScript — no data leaves your machine.