Diff checker
Paste the original on the left and the changed version on the right. Added lines show in green and removed lines in red, with a count of each.
runs in your browser · nothing uploaded
How to use it
- Paste the original text in the left box and the changed text in the right box.
- Choose Lines to compare whole lines (best for code and config) or Words to see changes inside sentences.
- Tick "ignore whitespace" to hide changes that are only indentation or trailing spaces.
How the comparison works
The diff uses the jsdiff library, which implements Eugene Myers' algorithm: it finds the smallest set of insertions and deletions that turns one text into the other. It is the same idea git diff is built on, so the output reads the way a code review does.
Lines or words?
Line mode is right for code, JSON and config files, where a changed line is the unit you review. Word mode suits prose and long single-line values, where a line diff would just mark the whole paragraph as changed.
To compare JSON whose keys are in a different order, run both sides through the JSON formatter with "sort keys" first. Then the diff shows only real data changes.
Questions
Is what I paste sent to a server?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is uploaded, logged or stored by us, so it is safe to use with real data.
Can I compare files?
Open each file in a text editor and paste the contents. Nothing is uploaded, so it is safe for private code and configs.
Why does a moved block show as removed and added?
A diff only knows insertions and deletions, so moving a block shows as deleting it in one place and adding it in another. That is how git shows it too.