- JSON Formatter
- JSON Diff
JSON Diff
Compares two JSON documents by content, not by text. Indentation and key order are ignored.
Input
The result appears here.
Snippets
Validate against schema
More than 50 MB, many files at once, or an API? That is what Pro is for. See Pro
A text diff flags every line that moved. This comparison reads both documents as data and reports only real differences: what changed, what is new and what is gone, each with a path such as customer.address.zip.
It is handy for comparing two API responses, two versions of a configuration, or test data against production data.
How it works in 3 steps
- Paste your JSON into the left field or drop a file onto it.
- Pick the indentation: 2 spaces, 4 spaces or tab. The result shows up on the right straight away.
- Copy it, save it as .json or share it as a link. If the tool reports errors, "Auto-fix" repairs the usual ones in one click.
Frequently asked questions
Does key order matter?
No. {"a":1,"b":2} and {"b":2,"a":1} count as equal. In arrays the order does matter, because it carries meaning there.
What do the symbols in front of the lines mean?
The tilde (~) means changed, plus means added in the second JSON, minus means removed.
Can I compare broken JSON?
Only after repairing it. The tool shows the error, "Auto-fix" resolves it, then the comparison runs.