Skip to content
iyziTool

JSON Diff

Paste the original and the modified document. The tool compares them as data, not text, so re-ordered keys and different indentation do not count as changes.

Paste two documents to compare them. Key order does not matter.

About this tool

A text diff of two JSON files is noisy: re-ordering keys, changing indentation or trailing commas produces dozens of changed lines that mean nothing. A structural diff parses both documents and walks the data, reporting only real differences: a value that changed, a key that appeared or disappeared, an array element that was added or removed. Each finding carries a path such as $.users[2].email so you can locate it instantly.

Both inputs accept JSON or YAML, so you can compare an API response with a config file or a Kubernetes manifest before and after an edit. Arrays are compared position by position, which is what most tools do; if an element is inserted at the start, later elements report as changed. Everything happens in your browser.

Frequently asked questions

Does key order matter?
No. Objects are compared by key, so {"a":1,"b":2} and {"b":2,"a":1} are identical.
How are arrays compared?
Element by element, by index. Inserting an item in the middle shows the shifted elements as changed and the last one as added.
Can I compare YAML?
Yes. Either side may be YAML or JSON; both are parsed to the same data model before comparison.
I need a line-by-line diff.
Use the Diff Checker tool, which compares text and highlights changed lines.

Related tools