Text Compare (Diff Checker)
Compares two versions of a text and shows what was removed and what was added. It is useful for checking edits to a draft, spotting small changes between two copies of a document, or confirming that a pasted version matches the original.
Differences
Results appear here.
How to use the Text Compare (Diff Checker)
- Paste the original text on the left (or top) and the changed text on the right (or below).
- Choose to compare by lines, words or characters, then select Compare texts.
- Removed text is shown struck through and added text underlined, with counts and a similarity score.
How it works
- The comparison uses the Myers difference algorithm, which finds the smallest set of changes. It runs in a background task with a time limit.
- Ignore differences in spaces treats runs of spaces and tabs as one space and ignores spaces at the start and end of lines. In words and characters mode the difference view then shows one space for each run. Word counts leave spaces out, but the result still says when two texts differ only in spacing.
- The downloaded text marks changes as
[-removed-]and{+added+}, or with - and + at the start of lines.
Limitations
- The two texts together can be up to 200 KiB. When the texts differ in more than 2,000 places, the changed middle part is shown as one block.
- Moved paragraphs are shown as removed in one place and added in another. To compare lists regardless of order, use List Difference.
Worked examples
Original text
The quick brown fox jumps over the lazy dog.
Changed text
The quick red fox jumped over the lazy dog!
Result
Added words: 3
Removed words: 3
Unchanged words: 7
Similarity: 70%
Result: The texts differ
The quick [-brown-]{+red+} fox [-jumps-]{+jumped+} over the lazy dog[-.-]{+!+} Original text
apples bananas cherries
Changed text
apples blueberries cherries dates
Result
Added lines: 2 Removed lines: 1 Unchanged lines: 2 Similarity: 50% Result: The texts differ apples - bananas + blueberries cherries + dates
Practical uses
-
Reviewing edits to a draft
A writer compares two versions of a paragraph by choosing the words mode. Removed text is shown struck through and added text is underlined, with counts and a similarity score. The changes can be checked at a glance without reading both versions line by line.
-
Checking two lists for differences
An administrator compares last month’s and this month’s attendee lists using the lines mode. New names appear as additions and missing names as removals. Turning on Ignore differences in spaces stops stray gaps from being flagged as changes.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 200 KiB.