JSON Diff & Compare
Paste two JSON objects to see highlighted line-by-line differences, a change summary, and a similarity percentage. Everything is processed on your device.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
{ "a": 1 } vs { "a": 2, "b": 3 }Example Output
a changed 1→2, b added
How to Use
- 1Paste the first JSON objects (A) in the left box and the second (B) in the right box.
- 2Adjust the options if needed (ignore case, whitespace, or empty lines).
- 3Click Compare (or press Ctrl+Enter).
- 4See the highlighted differences, a summary of how many changes there are, and the similarity percentage. Switch between side-by-side / unified / inline views.
About JSON Diff & Compare
JSON Diff & Compare parses both inputs as JSON and compares them structurally — not just as text. You see exactly which keys were added, removed, or had their value changed, with a path like "user.address.city".
Key order is ignored (the same object with a different order is treated as identical), and the side-by-side view normalizes formatting so the differences shown are real data differences.
FAQ
What is the difference between "diff" and "compare"?
Both are done by the same tool. "Diff" highlights the lines/parts that changed (added/removed), while "compare" shows how similar the two inputs are (similarity percentage + summary). You get both at once here.
Is my data sent to a server?
No. The entire comparison is computed in your browser with JavaScript. Nothing is uploaded, logged, or stored on our servers — safe for sensitive data.