JSON Compare
Compare two JSON documents online for free. Both are normalized and the differences are highlighted line by line, in your browser.
Suggested tools
About JSON Compare
JSON Compare shows the differences between two JSON documents side by side. Both sides are normalised and pretty-printed first, so differences in spacing and indentation are ignored and only real changes are highlighted.
It is ideal for comparing API responses before and after a change, two versions of a config file, or test output against expected results. It runs entirely in your browser, so nothing you paste is uploaded.
How to use JSON Compare
- Paste the original JSON on the left and the changed JSON on the right.
- Press Compare.
- Review the highlighted added, removed and changed lines.
Key features
- Formatting differences ignored
- Line-by-line highlighting of changes
- Validates both sides with clear errors
- Works with large documents
When to use JSON Compare
- Checking what changed in an API response after a deployment.
- Comparing two versions of a config file before merging them.
- Comparing test output with the expected result.
Tips and common problems
- Sort both documents with JSON Sorter first when key order is different.
- Both sides are pretty-printed, so whitespace differences never show as changes.
- For plain text or code, Text Compare offers word- and character-level highlights.
Frequently asked questions
Yes, because the line order differs. Run both documents through JSON Sorter first to compare them regardless of key order.
Yes — use Text Compare for any text, with word- and character-level highlighting.
Open each file in a text editor and paste its contents into one side.