Beautify or minify JSON with your choice of indentation
JSON Diff
See what really changed between two JSON documents, even when the keys are in a different order.
Loading tool…
How to use json diff
Paste or open the original JSON on the left.
Paste or open the changed JSON on the right.
Read the list of added, removed and changed values with their paths.
Turn on Ignore the order of array items if position in lists does not matter.
What this tool does
- Compares parsed data, so key order, indentation and line breaks never show up as changes.
- Labels each difference as added, removed, changed or type changed, with its full path.
- Can treat arrays as unordered and match items by content.
- Filters the list by kind and downloads the differences as a JSON report.
How the result is verified
Two identical documents always report no differences, whatever their formatting; try pasting the same JSON in both boxes with keys reordered to see it.
Frequently asked questions
Why does a text diff show changes this does not?
A text diff compares lines, so reordered keys or new indentation look like changes. This tool compares the data itself.
Is 1 the same as 1.0?
Yes. JSON numbers are compared by value, so 1 and 1.0 are equal. The number 1 and the string "1" are reported as a type change.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Collapsible, searchable tree view that stays fast on large files
Format, validate, tree view, schema, diff and CSV in one tabbed workspace
Find JSON syntax errors with the exact line and column