Compare two documents in a four-panel workspace with raw inputs and normalized results.
Left Raw
Right Raw
Left Result
Right Result
About JSON Compare
JSON Compare lets you paste two JSON documents side-by-side, normalise both inputs, and inspect the differences line by line. It sorts object keys and standardises whitespace before diffing so that formatting changes do not obscure real data differences. Use it when you need to verify that an API response changed only in the expected ways, or when reviewing a configuration update before deploying it to production.
Common uses
- Compare API responses before and after a backend change to confirm only the expected fields changed.
- Normalize both documents so whitespace and key-order differences do not obscure real data changes.
- Diff configuration files side-by-side to catch accidental overwrites during a deployment.
- Copy or download the normalized diff output for bug reports, code review comments, and documentation.
Related tools
FAQ
How does the JSON comparison work?
Both documents are parsed and normalised — keys are sorted alphabetically and whitespace is standardised — before being compared line by line. This means that two documents with identical data but different key ordering or formatting will compare as equal, while genuine data differences are clearly highlighted.
Can I compare JSON with different key ordering?
Yes. The tool sorts all object keys recursively before comparing, so key order differences are not reported as changes. Only actual value differences, added keys, or removed keys appear in the diff output.
What if my JSON is invalid?
If either document fails to parse, the tool shows a parse error with the line and column number of the problem. Fix the syntax error and the comparison will proceed.
Is JSON Compare free to use?
Yes — JSON Compare is completely free and requires no sign-up or account. There are no usage limits for standard comparison tool tasks.
Does JSON Compare send my data to a server?
No. JSON Compare runs entirely in your browser using JavaScript. Text you paste and files you upload never leave your machine, so it is safe to use with sensitive payloads, API tokens, and internal configuration data.