About the JSON Diff Tool
This free JSON diff tool compares two JSON inputs and shows what was added, removed, or modified. Use it to compare API responses, config versions, or any two JSON files. Comparison runs in your browser—your data never leaves your device. Part of our developer tools; you can also format, validate, or minify JSON on dedicated pages.
Why Compare Two JSON Files?
When you have two versions of JSON—e.g. before and after an API change, or two config files—a JSON diff shows exactly what changed. Our tool reports added keys/values (green), removed (red), and modified (amber) with the old and new value so you can review changes quickly. No need to eyeball two blobs side by side; we compute the structural diff and list differences by path.
How to Use This JSON Diff
Open the Diff tab (or you're already on the diff page). Paste the first JSON in the left box and the second in the right box. Click Compare. The result shows added, removed, and modified entries with paths like user.name or items[2]. For modified items we show the old value (struck through) and the new value. Use Clear to reset and compare another pair.
Comparing API Responses and Configs
Common use cases: diff two API responses to see what changed after a backend update; compare package.json or config files across branches; verify that a minified and formatted version are equivalent (they should have no semantic diff). Our diff handles nested objects and arrays and reports array index changes (e.g. item added or removed at index 3). For more on JSON and debugging, see our blog article on how to compare two JSON files.
Related Tools
JSON formatter to beautify; JSON validator to check syntax; JSON minifier to compress. More: blog, FAQ, IP lookup.
FAQ
What is a JSON diff tool? It compares two JSON structures and lists what was added, removed, or changed, with paths and old/new values.
Is this JSON diff free? Yes. No signup; comparison runs in your browser.
How do I compare two JSON files? Paste one in the left box and one in the right, then click Compare. Results show added (green), removed (red), and modified (amber).
Does the diff work for arrays? Yes. We compare arrays by index and report added/removed/modified elements with paths like [0], [1].