Overview
Editing is easy; remembering what you changed is not. Whether you revised a contract clause, rewrote a product description, or let a colleague loose on your draft, the question afterwards is always the same: what is actually different? Reading two long documents side by side and hoping your eye catches every change is slow and unreliable, especially when the change is a single word buried in the fortieth paragraph.
This diff checker answers the question mechanically. It splits both texts into lines, works out the longest sequence of lines the two versions share, and then reports everything around that shared backbone: lines that only exist in the original are marked as removed, lines that only exist in the revision are marked as added, and everything else is shown as unchanged context. You get a clear, colour-coded picture of the edit in about a second.
What is a diff?
"Diff" is short for difference, and the idea comes from software development, where programmers have compared versions of files for decades. A diff is not a summary or an opinion — it is an exact, line-by-line account of how one text can be turned into another using only additions and deletions. If you delete every red line from the original and insert every green line in the right place, you end up with the revised text, word for word.
That strictness is what makes a diff trustworthy. Unlike a person skimming two documents, the algorithm cannot get tired, skip a paragraph, or assume that two similar-looking lines are the same line. If a single character differs, the line is reported as changed: one removal plus one addition.
Features
- True line-based comparison. The tool uses a longest-common-subsequence algorithm, the same family of methods behind professional version-control diffs, so moved and repeated lines are handled sensibly.
- Colour-coded output. Added lines are tinted green, removed lines are tinted red, and unchanged lines stay plain, with + and − markers for anyone reading in black and white.
- Live results. The comparison refreshes as you type or paste; the Compare button is there when you want an explicit refresh.
- Instant statistics. Counts of added, removed and unchanged lines, plus a plain verdict when the two texts are identical.
- Swap in one click. Flip the original and the revision to read the edit backwards — useful when a review goes in the wrong direction.
- Serious capacity. Documents of up to roughly two thousand lines per side compare comfortably; a built-in guard warns you instead of freezing your tab if you paste something enormous.
- Private by design. Both texts stay in your browser's memory. There is no upload, no account and no history of what you compared.
Benefits of checking a diff
- Nothing slips through. A silent one-word change in a price, a date or a "not" is exactly the kind of edit human proofreading misses.
- Faster reviews. Instead of re-reading the whole document, you read only the lines that changed, with context around them.
- Clearer conversations. "You changed these four lines" settles discussions that "I think you changed something" never will.
- Safer publishing. Check the final version against the approved draft before it goes live, and catch last-minute accidents.
Who can use it
Writers and editors use it to see what a revision really did to a manuscript. Students use it to compare an essay draft against feedback. Developers use it for configuration files, emails templates and any snippet that is not inside a version-control system. Lawyers, managers and freelancers use it on contracts, proposals and terms — anywhere two versions of a document exist and the difference between them matters more than either document alone.
How to use the diff checker
- Paste the earlier version of your text into the Original text box on the left.
- Paste the newer version into the Revised text box on the right.
- Read the result panel: green lines were added, red lines were removed, and plain lines are unchanged.
- Check the counters at the top of the panel for a quick sense of how big the edit was.
- Use Swap sides if you pasted the versions in the wrong order, and Clear to start over.
Frequently asked questions
Why does one edited line show as a removal plus an addition?
Because this is a line-based diff. If a line changes in any way — even by one character — the old line counts as removed and the new line as added. That pair of red and green lines sitting next to each other is a single edited line.
Is my text uploaded or stored?
No. The comparison runs in JavaScript on your own device. You can disconnect from the internet after the page loads and the tool will still work.
How large a document can I compare?
Up to about 2,000 lines on each side works smoothly. Extremely large pastes are stopped with a warning, because the comparison table grows with the product of the two line counts and would otherwise slow your browser down.
Does it compare word by word?
Not at the moment — it compares whole lines, which is the clearest view for documents, lists and code. A changed word therefore highlights its entire line, which most people find easier to scan.
What counts as a line?
Every press of the Enter key starts a new line. Two texts that look identical on screen can still differ if one has trailing blank lines, and the tool will show that.
Can I compare code with it?
Yes. The tool is text-agnostic, so source code, markup, CSV rows and configuration files all work. Just remember it treats each line as a unit, regardless of the language.
Conclusion
When two versions of a text exist, guessing what changed is a waste of your eyesight. Paste both versions here, read the green and the red, and know — in seconds, and without handing your documents to a server — exactly what the edit did.