Text diff checker
Paste an original and a changed text to see line by line what was added, removed or kept, with colors and counts. It is free and runs in your browser, so nothing is uploaded.
How to use it
- Paste the first version in Original text.
- Paste the new version in Changed text.
- Tick Ignore uppercase/lowercase or Ignore extra spaces if you want to skip those differences.
- Read the colors: green lines were added, red lines were removed, gray lines are the same.
Complete guide to comparing two texts
What a text diff is for
"Diff" is short for difference. When you have two versions of the same text, a diff shows exactly what changed instead of leaving you to read both and guess. Writers compare a draft with the edited version, students check what a source changed, teams compare two versions of a contract clause, a configuration file or a list of e-mails, and developers check what a colleague touched. Reading two near-identical texts side by side is tiring and you will miss a changed number or a single deleted line. A diff does not miss.
How the comparison works
The tool compares whole lines. First it finds the longest group of lines that both texts share, in the same order. Those lines are the unchanged ones. Everything else is a difference: a line only in the original is shown as removed, and a line only in the new text is shown as added. The result is a single list in reading order, colored like this:
| Color | Marker | Meaning |
|---|---|---|
| Green | + | Line added in the Changed text |
| Red | - | Line removed from the Original text |
| Gray | (blank) | Line unchanged |
Three counters summarize the result: Lines added, Lines removed and Lines unchanged. The comparison runs in your browser, so contracts, code and private notes are never uploaded. Special characters are displayed as plain text, not interpreted, so pasting HTML code is safe.
Worked example
- In Original text put three lines:
apple,banana,cherry. - In Changed text put four lines:
apple,blueberry,cherry,date. - The Differences show, in order: apple in gray, banana in red, blueberry in green, cherry in gray and date in green. The counters read 2 lines added, 1 removed and 2 unchanged.
Notice that banana replaced by blueberry appears as one removal and one addition. The tool does not show edits inside a line, so for a changed line, read the red and green lines together to spot the edit.
The two options
- Ignore uppercase/lowercase: Hello and hello count as the same line. With the lines Hello and World against hello and world, the result is 0 added, 0 removed and 2 unchanged. Without the option, all four lines are reported as different.
- Ignore extra spaces: runs of spaces and tabs count as a single space and spaces at the ends of a line are ignored, so
one twomatchesone two.
Tips and common mistakes
- If almost every line shows as changed, the line breaks probably differ, for example one text wraps paragraphs into many short lines and the other keeps long ones. Make both use the same layout first.
- A line that moved to another position appears as removed in the old place and added in the new one.
- Trailing spaces and different capitalization are invisible to the eye but count as differences. Use the two options when only the content matters.
- Each text can have up to 2,500 lines. For longer files, compare them in parts.
- This is a line comparison, not a word-by-word one. For prose with long paragraphs, split sentences onto their own lines to see finer changes.
Related tools
Before comparing lists, you can remove repeats with the duplicate line remover or put both lists in the same order with the line sorter. To clean inconsistent spacing first, use the extra space remover.
Questions
How does the comparison work?
The tool compares whole lines and finds the longest set of lines both texts share. Everything else is shown as added (green) or removed (red).
Does it show which words changed inside a line?
No. A line that changed appears as one removed line and one added line. Compare the two to spot the edit.
Is there a size limit?
Each text can have up to 2,500 lines, which keeps the comparison fast on any device.
Is my text uploaded anywhere?
No. The comparison runs only in your browser and nothing is sent or stored.