JSON Diff
ConverterCompare two JSON documents and highlight deep differences with an inline view for spotting API response changes and configuration drift issues.
{ "name": "Alice" "age": 30 "tags": [ "admin" "user" ]}{ "name": "Alice" "age": 31 "tags": [ "admin" ] "email": "a@x.com"}About JSON Diff
Comparing two JSON documents by eye (e.g. an API before/after a change, or old/new config) makes it easy to miss differences. This tool does a structural diff of two JSON inputs locally in your browser, ignoring key order and formatting, and precisely marks added, removed, and changed fields. Nothing is uploaded — safe for production configs. Tip: Bookmark this tool for quick access whenever you need format conversion. All processing happens locally in your browser — no data upload, so feel free to paste sensitive content.
How to Use
- Open the JSON Diff tool page
- Enter or paste your data into the input area
- View the real-time results and use the copy button to get the output
Use Cases
- API regression — Compare responses before and after an API upgrade to confirm field changes are expected.
- Config audit — Compare config JSON across two environments (staging/prod) to find inconsistencies.
- Debug regressions — Compare data snapshots from normal and faulty cases to pinpoint differing fields.
- Version comparison — See the actual changes in package.json and similar configs between two git revisions.
- Data validation — Verify that JSON before and after processing changed only in expected fields.
- Schema migration — Compare JSON output after a schema change to confirm only expected fields were added or removed.
- Merge conflict — Paste the two sides of a JSON merge conflict to see exactly which keys differ.
FAQ
Does it ignore key order?
Yes. JSON object keys are inherently unordered, so the tool compares by key name, not position — different order is not flagged as a difference.
How are arrays compared?
Arrays are compared item by item by index. Reordered array elements may be flagged as differences because JSON arrays are ordered.
Can it compare deeply nested JSON?
Yes. It recursively compares nesting of any depth and reports difference paths down to the leaf node.
Does formatting affect the result?
No. Indentation and whitespace differences are ignored — only actual data content is compared.
What if one JSON is invalid?
The tool validates both inputs first; syntax errors are reported and must be fixed before comparing.
Any browser compatibility requirements?
This tool works in all modern browsers (Chrome, Firefox, Edge, Safari). No plugins or extensions required.
Can I use it offline?
After initial load, most features work offline. The core logic runs entirely in your browser with no network dependency.
Comments
Comments are stored locally in your browser. Configure Giscus for cloud-based comments.