Back to Developer
JSON diff — structural compare of two documents

JSON diff — structural compare of two documents

Compare two JSON documents structurally. Walks nested objects and arrays recursively and highlights added / removed / modified / moved entries. Runs entirely in your browser.

developerJSONdiff

How to use

Paste two JSON documents into the left/right textareas (must be valid JSON — errors show the line and column). Toggle between Inline and Side-by-Side views, optionally hide unchanged nodes, and review additions / deletions / modifications / moves. Reordered array entries are detected as moved. Use the Sample button to try it out.

FAQ

Is the JSON uploaded?
No. Comparison runs entirely in your browser; nothing leaves your device.
How is this different from the text diff?
JSON diff is structural — key reorderings and whitespace differences are treated as equal, while text diff would mark them as different.
How does moved work?
Entries whose value is identical but whose path (key or array index) changed are labelled moved — useful for reordered arrays.
Does it handle large JSON?
A few MB is fine. Extremely deep nesting or huge arrays may slow the browser.

Related tools