Diff Checker: Compare Two Texts Line by Line
Runs 100% in your browser — your text never leaves this page, and nothing is uploaded or stored.
This diff checker compares two texts line by line and shows exactly what changed — added lines in green, removed lines in red — free, in your browser. Paste an original and an edited version to compare two texts online and check what changed between versions — added lines in green, removed lines in red, with a count of each.
How to use the Diff Checker
- Paste the original version into box A (Original text) and the changed version into box B (New text). Two samples are pre-filled, so you can study a finished comparison before pasting anything of your own.
- Press Compare now — or simply start typing, because the comparison refreshes automatically whenever either box changes.
- Read the result from top to bottom: lines marked + in green exist only in version B, lines marked − in red exist only in version A, and unmarked lines are identical in both.
- Check the summary line for the totals — how many lines were added, how many removed, and how many left unchanged.
- Fix a typo in either box and watch the highlights update instantly; that makes it easy to iterate until two drafts agree. Clear empties both boxes when you are done.
About this tool
Whether you are reviewing a revised contract, checking what a client changed in a draft, or comparing two versions of a web page, reading two documents side by side and hunting for differences is slow and error-prone. This diff tool compares your texts line by line and highlights every change, with a summary of added, removed and unchanged lines. The comparison runs entirely in your browser, which makes it safe for sensitive documents — contracts, unpublished manuscripts and private correspondence are never uploaded anywhere. A diff earns its keep at the moments when two versions of the "same" text quietly diverge: a client returns a contract with one clause reworded, a colleague edits an article after you proofread it, a config file changes between backups, or a terms page is updated and you want to know exactly how. Reading both versions in full and hoping to spot the change is how mistakes slip through; a line-by-line comparison turns an hour of squinting into a ten-second scan of green and red. Because the comparison is line-based, this diff checker suits prose, lists, data exports and code alike — anywhere a line is a natural unit. A changed word marks its whole line, which keeps the output readable; if you need to find where inside a long line the change sits, split the text into shorter lines first — a paragraph per line, or even a sentence per line — and compare again.Worked example
The tool arrives with two versions of a short meeting note already loaded. Version B moves the meeting, drops the lunch line and adds parking details: Version A (original)The meeting is scheduled for Monday at 10 AM. Please bring the quarterly sales report. Lunch will be provided for all attendees. The venue is the main conference hall.Version B (new)
The meeting is scheduled for Tuesday at 11 AM. Please bring the quarterly sales report. The venue is the main conference hall. Parking is available in the basement.What the checker reports
2 lines added · 2 lines removed · 2 lines unchangedThe changed first line appears twice — in red as it was ("Monday at 10 AM") and in green as it is now ("Tuesday at 11 AM") — because the comparison works whole line by whole line. The lunch line shows only in red (it was deleted), the parking line only in green (it was added), and the two untouched lines are listed without colour.
Features
- A true line-by-line comparison using a longest-common-subsequence algorithm — the same approach professional diff tools use — so lines are matched intelligently, not just compared by position.
- A clear colour language: green with a + for additions, red with a − for removals, and plain text for unchanged lines, readable at a glance on long documents.
- A live summary counts added, removed and unchanged lines after every comparison.
- It compares as you type — edit either version and the highlights refresh automatically — with a Compare now button to re-run it on demand.
- Room to work: documents of a few thousand lines are handled comfortably, up to about 6,000 lines across both versions.
- Completely private: both texts are compared in your browser and never uploaded, which makes it safe for contracts, manuscripts and correspondence.