Compare two JSON objects and see added, removed, and changed values highlighted. Supports nested objects and arrays. This tool runs entirely in your browser — no data is sent to any server.
Comparing JSON objects is a common development task — checking API response changes, debugging configuration differences, reviewing database migration effects, or verifying data transformations. Unlike plain text diff, JSON diff understands structure: it knows that {"a":1,"b":2} and {"b":2,"a":1} are identical despite different key order. This tool performs deep structural comparison, highlighting added properties (green), removed properties (red), and modified values (yellow). It handles nested objects and arrays, showing the exact path to each difference. Both inputs are validated and pretty-printed automatically for easy reading.
No — this tool performs semantic comparison. {"a":1,"b":2} equals {"b":2,"a":1}. JSON objects are unordered by specification, so key order differences are ignored.
Arrays are order-sensitive in JSON (unlike objects). [1,2,3] and [3,2,1] are different. The tool compares arrays element-by-element, showing which elements were added, removed, or changed.
The tool handles JSON up to several MB comfortably. Very large files may slow the browser. For enterprise-scale JSON comparison, consider command-line tools like jq or dedicated diff utilities.
The tool validates both inputs and shows parse errors with line numbers. Fix the JSON syntax before comparing. Use our JSON Formatter to validate and fix formatting issues.
Yes — copy-paste API responses from your browser DevTools, Postman, or curl output. This is one of the most common use cases — checking what changed between API versions.