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 does | Shows which lines were added or removed between two versions of a text. |
|---|---|
| Exact rule | 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. |
| How to read the result | Lines 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. |
| Example | Comparing one / two / three with one / 2 / three / four marks two as removed, and 2 and four as added. |
| Limits | It compares whole lines: a changed word marks the whole line as removed and added. It does not highlight changes within a line. |
| Where it runs | In 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)
- Paste the old text in the first box and the new text in the second.
- Read the lines marked + (added) and - (removed).
- 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.