Compare JSON: Find What Changed
See every added, removed and changed value between two JSON files; nothing is uploaded.
Processed on your device. Nothing is uploadedHow to check
Paste text instead
Pasted text stays in this tab and is never sent anywhere.
A free JSON diff tool: open, drop or paste your first JSON document and the page opens on the Compare tab. Paste or open the second one and the two are compared by key and by position, not line by line, so a change in indentation is not a difference. The open document stays on the left and the second one on the right, and the added, removed and changed values are counted, and up to 300 are listed with their paths. Both documents are read in your browser and never uploaded.
Why use Compare JSON
Differences by path
Each difference names where it is, such as $.users[2].email, and whether it was added, removed or changed.
Private and free
Both documents are compared by your own browser and never sent to a server. No account, no watermark.
Works offline
After you have used it once, it keeps working without an internet connection.
How it works: compare two JSON documents
Open the first document
Choose a .json file, drop it on the page, paste the text into the box, or try one of the two samples.
Add the second one
On the Compare tab, paste the other JSON or open its file. It appears on the right, beside the open document.
Read the differences
Added, removed and changed values are listed with their paths. Key order is ignored by default; turn Ignore key order off to report reordered objects too.
What the JSON compare tool handles
- Comparison by key in objects and by position in arrays, so whitespace and indentation never count as changes.
- Ignore key order, on by default; turned off, objects whose keys moved are reported.
- Added, removed and changed values counted, and up to 300 listed with their paths.
- Side-by-side view with the open document on the left and the second one on the right.
- Big integer IDs compared digit by digit, so two IDs that differ only in the last digits are told apart.
Compare JSON: what it can't do
- Arrays are compared by position: an item inserted near the start shows as changes to the items after it.
- Both documents up to 10 MB each, and both must be valid JSON. A .jsonl or .ndjson file is compared as a list of its lines.
- The comparison is not saved and has no share link; it lasts as long as the tab is open.
Questions about comparing JSON
- Is my file uploaded?
- No. Both documents are read and compared by your browser, on your device, and are never sent anywhere. Pasted text stays in this tab. Your browser's network panel shows no upload.
- Why is this better than a text diff?
- A text diff shows every line that moved, so a change in indentation or key order looks like a big change. This compares the data itself, key by key, so you only see values that really differ.
- What does Ignore key order do?
- In JSON, {"a":1,"b":2} and {"b":2,"a":1} hold the same data, so by default they count as equal. Turn the option off when order matters to you, and objects whose keys were reordered are reported.
- Why does one inserted array item show many changes?
- Arrays are compared position by position. When an item is inserted, every item after it moves one place, and each of those positions is reported as changed.
- Can I compare an API response with a saved copy?
- Yes. Open the saved .json file first, then paste the new response on the Compare tab, or the other way round.
- Can I send someone a link to the comparison?
- No. Nothing is stored on the site, so there are no share links. Send both files, and the other person can compare them here.
- How do I compare two JSON files online?
- Open the first JSON file in OpenAnyDoc's JSON compare tool, then paste or open the second on the Compare tab; added, removed and changed values are listed with their paths. Key order is ignored by default, and both files stay in your browser.
Why it's private: your files never leave your browser
Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.
How we tell you about new features
Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.