Text Diff Checker
Paste an original and a changed version to see exactly what changed — every added line in green, every removed line in red. It runs entirely in your browser, so your text stays private.
How to compare two texts
- Paste the original text on the left.
- Paste the changed text on the right.
- Read the highlighted result — added lines in green, removed lines in red.
About text diffing
A diff compares two pieces of text line by line and shows what was inserted, deleted or left unchanged — the same idea behind code review and version control. It is the fastest way to spot what changed between two drafts, two config files, or two copied-and-pasted blocks.
This tool computes a line-level diff using a longest-common-subsequence match, so unchanged lines line up and only genuine changes are highlighted. Everything is calculated in your browser — no account, no upload — which makes it safe for comparing private documents, contracts or code.
A diff earns its keep whenever someone says only one thing changed. A client returns a contract claiming a single clause was edited — compare and confirm it. An AI assistant rewrites your copy — see exactly what it touched before accepting. A config file stopped working after an update — line up the old and new versions and the culprit is highlighted in seconds.
Because the comparison works on whole lines, how the text is wrapped matters as much as what it says. Prose that has been rewrapped — one version hard-wrapped at 80 characters, the other in long paragraph lines — shares almost no identical lines, so nearly everything lights up as changed even when the wording is the same. Normalise the two versions to the same wrapping before comparing and the real edits stand out.
Frequently asked questions
Is my text uploaded?
No. The comparison runs entirely in your browser, so both texts stay on your device — safe for private or confidential content.
Does it compare line by line or word by word?
It compares line by line: each line is marked added, removed or unchanged. To compare a single sentence, put each part on its own line.
Is there a size limit?
Very large inputs (thousands of lines each) are capped so your browser stays responsive; for typical documents and code there is no practical limit.
Can it compare code?
Yes. Any plain text works, including source code, JSON, CSV or logs — paste both versions and the changed lines are highlighted.
Why does an edited line show as both removed and added?
That is how line diffs represent change. The tool has no concept of a partly modified line — the old version no longer exists, so it is marked removed, and the new wording is marked added. Read the red and green pair together to see the edit; even a one-character change to a line is shown this way.