Text Diff Checker
Compare two texts and see what was added or removed.
6 words added, 2 words removed.
Added Removed
Runs in your browser. Nothing you enter is uploaded.
How to use the Text Diff Checker
- Paste the original text into the first box.
- Paste the changed text into the second box.
- Choose whether to compare by words or by lines.
- Read the highlighted result: additions are underlined and removals are crossed out.
About the Text Diff Checker
Need to see exactly what changed between two versions of a document, an email, a contract clause or a piece of code? Paste the original text on the left and the changed text on the right. The diff checker highlights what was added and what was removed, and counts the changes, so nothing slips through when you proofread or review an edit.
The tool finds the smallest set of changes that turns the first text into the second, using the standard longest-common-subsequence approach that underlies tools such as Git. Anything the two texts share is shown normally, text that appears only in the original is marked as removed, and text that appears only in the changed version is marked as added.
Comparing by words is best for prose, because a single changed word is shown on its own and differences in spacing are ignored. Comparing by lines is better for lists, configuration files and code, because a whole line is marked when any part of it changes. The comparison is case sensitive, so Hello and hello are different. To keep your browser responsive, each text is limited to 200,000 characters. Added and removed items are counted in words or lines, depending on the mode you pick.
Frequently asked questions
What is the difference between word and line mode?
Word mode highlights individual words that changed. Line mode marks entire lines, which suits code, lists and files where each line is a unit.
How are additions and removals shown?
Added text is underlined with a green background and removed text is crossed out with a red background, so they can be told apart without relying on colour.
Is the comparison case sensitive?
Yes. A change from Hello to hello is shown as a difference.
Why does word mode ignore extra spaces?
Differences in spacing are rarely meaningful in prose, so word mode concentrates on the words. Use line mode if exact spacing matters.
Are my documents uploaded?
No. Both texts stay in your browser, which makes the tool safe for private drafts.