JSON Diff
runs in your browserno sign-upfree
Compare two JSON documents side by side: changed lines plus the exact words or characters, key order ignored, and a list of changes by JSON path.
| 1 | { | 1 | { |
| 2 | "active": true, | 2 | "active": false, |
| 3 | "address": { | 3 | "address": { |
| 4 | "city": "Pune", | 4 | "city": "Mumbai", |
| 5 | "zip": "411001" | 5 | "zip": "400001" |
| 6 | }, | 6 | }, |
| 7 | "email": "asha@example.com", | 7 | "email": "asha.rao@example.com", |
| 8 | "id": 1042, | 8 | "id": 1042, |
| 9 | "name": "Asha Rao", | 9 | "name": "Asha Rao", |
| 10 | "plan": { | 10 | "plan": { |
| 11 | "name": "Basic", | 11 | "name": "Pro", |
| 12 | "price": 9.99 | 12 | "price": 19.99 |
| 13 | }, | 13 | }, |
| 14 | "roles": [ | 14 | "roles": [ |
| 15 | "editor", | 15 | "editor", |
| 16 | "viewer" | 16 | "admin" |
| 17 | ] | 17 | ], |
| 18 | "verified": true | ||
| 18 | } | 19 | } |
Changes by path
| Path | Change | Before | After |
|---|---|---|---|
| $.active | changed | true | false |
| $.address.city | changed | "Pune" | "Mumbai" |
| $.address.zip | changed | "411001" | "400001" |
| changed | "asha@example.com" | "asha.rao@example.com" | |
| $.plan.name | changed | "Basic" | "Pro" |
| $.plan.price | changed | 9.99 | 19.99 |
| $.roles[1] | changed | "viewer" | "admin" |
| $.verified | added | true |
About this tool
Paste two JSON documents — API responses, config files, package.json versions or test fixtures — and see exactly what changed. Both sides are parsed and pretty-printed the same way first, and key order is ignored by default (JSON objects have no order), so you only see real differences, not formatting. Changed lines are highlighted side by side or in one unified view, with the exact words or characters that differ marked inside each line and JSON syntax colours. Below, every difference is listed by its JSON path — such as $.user.email — with the value before and after. Everything runs in your browser; nothing is uploaded.
How to use
- Paste the original JSON on the left and the changed JSON on the right.
- Read the highlighted differences — switch between Side by side and Unified, and between word and character highlighting.
- Check “Changes by path” for a list of every added, removed and changed value, and copy it if you need to.
FAQ
Does the order of keys matter?
Not by default. In JSON, {"a":1,"b":2} and {"b":2,"a":1} are the same object, so “Ignore key order” sorts the keys on both sides before comparing. Untick it if you need to see order changes. Array order always matters, because arrays are ordered lists.
Why do I see differences when the JSON looks the same?
Look at the value types: "1" (a string) and 1 (a number) are different JSON values, as are true and "true". Whitespace and formatting never count — both sides are reformatted before comparing.
What is the difference between word and character highlighting?
Word highlighting marks whole words or values that changed, which is easiest to read. Character highlighting marks the exact characters — useful for IDs, hashes, dates and numbers where only one or two characters differ.
What does a path like $.items[2].price mean?
It is the location of a value: $ is the whole document, .items is a key, [2] is the third array item (counting from zero) and .price is a key inside it. The same notation is used by JSONPath and many API tools.
Is my JSON uploaded?
No. Parsing and comparing happen entirely in your browser, so API keys, tokens and customer data in your JSON stay on your device. Your two inputs are remembered only in this browser.
What if one side has an error?
The editor marks the line and column of the first error, and the comparison waits until both sides are valid JSON. The JSON Validator and JSON Formatter can help fix it.