Compare two JSON objects and instantly see every difference.
Frequently Asked Questions
What is JSON diff?
JSON diff compares two JSON objects or arrays and identifies all differences: values that were added, removed, or changed. It performs a deep recursive comparison, so nested objects and arrays are compared element by element.
How is this different from a text diff?
Text diffs compare line by line and get confused by formatting. JSON diff parses both inputs first, then compares the actual data structure. Different formatting but identical data = no differences.
Does the order of keys matter?
No — {a:1, b:2} and {b:2, a:1} are considered identical. However, array order does matter since arrays are ordered collections.
Can I compare large JSON files?
Yes, it handles JSON of several MB. For very large files (10+ MB), you may notice a brief processing delay depending on your browser.
Is my JSON data private?
Absolutely. All comparison happens in your browser. No data is sent to any server. Safe for sensitive configuration files or API responses.
What do the colors mean?
Green = added/new values. Red = removed/missing values. Amber/yellow = changed values that differ between the two JSONs.
Can I format/prettify JSON before comparing?
Yes. The tool automatically parses and re-formats both JSON inputs before comparison. Paste minified JSON and it will be properly formatted.
Does this support JSON arrays?
Yes. Arrays are compared element by element by index. Extra elements are shown as additions or removals. Nested arrays within objects are fully supported.