JSON diff — compare two JSON documents structurally
Paste two JSON documents and see exactly what changed — added keys, removed keys and changed values, by path. It compares entirely in your browser (0 uploads, works offline), so even config with secrets never leaves your device.
How to use it
- Paste the original JSON on the left and the new JSON on the right.
- The structural diff appears live: each differing path is tagged added, removed or changed.
- Copy or Download the diff report.
FAQ
How do I compare two JSON files online for free?
Paste one document into each pane. This page parses both and walks them key by key, so you get a path-level report — for example user.age 30 → 31 — rather than a noisy line diff. It runs on your device with no upload.
What is the difference between a JSON diff and a text diff?
A text diff compares characters and is confused by reordered keys or reformatting. A structural JSON diff parses both sides first, so key order and whitespace do not matter — only real changes to keys and values show up.
Is it safe to compare JSON that contains secrets or tokens?
Yes. The comparison happens entirely in your browser and nothing is transmitted or stored, which you can confirm by turning off your Wi-Fi. That makes it safe for API responses, config files and env dumps.
Does it handle nested objects and arrays?
Yes — it descends into nested objects and compares arrays index by index, reporting the full path to each difference (for example items[2].price).
Limits
Compares parsed values by path; it does not detect array element moves as moves — a reordered array shows as changed elements.
Related
The JSON formatter tidies a single document; the text diff compares any two blocks of text line by line.
Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.