Word and Text Tools
Word and Text Tools › Clean up and compare text › Text compare (diff)

Text compare (diff)

How do I use a text compare (diff)? Shows which lines were added or removed between two versions of a text.

What it doesShows which lines were added or removed between two versions of a text.
Exact ruleA line-by-line comparison that keeps the longest set of lines that appear in both texts in the same order; every other line is marked removed or added.
How to read the resultLines starting with + are only in the second text, lines starting with - are only in the first, and unmarked lines are in both, in the same order.
ExampleComparing one / two / three with one / 2 / three / four marks two as removed, and 2 and four as added.
LimitsIt compares whole lines: a changed word marks the whole line as removed and added. It does not highlight changes within a line.
Where it runsIn your browser: your text is never uploaded, stored or logged.

Related tools

Remove extra spaces Remove line breaks Remove duplicate lines Sort lines A to Z Sort lines Z to A Reverse text Reverse line order Find and replace

All tools in Clean up and compare text

How to use the text compare (diff)

  1. Paste the old text in the first box and the new text in the second.
  2. Read the lines marked + (added) and - (removed).
  3. Lines with no mark are the same in both.

How it works

A line-by-line comparison that keeps the longest set of lines that appear in both texts in the same order; every other line is marked removed or added.

It compares whole lines: a changed word marks the whole line as removed and added. It does not highlight changes within a line.