Paste two texts; additions show in green and deletions in red. Compare by line or by word.
No sign-up, no fees.
Compare text: paste the old and new text side by side.
Additions in green, deletions in red and struck through.
Line-level or word-level comparison.
A summary says how many additions and deletions there are.
What you type is processed, but never shared with anyone.
Text compare: how to compare text with the diff checker
What changed in the new version of the contract? You don't need to read it line by line:
Paste the texts. Paste the first version into the Old text box and the corrected version into the New text box.
Pick the comparison level.Line or Word.
Look at the result. The result shows below as a single text. Green parts were added in the new text; red, struck-through parts were deleted from the old text. A summary like "5 added, 3 deleted" is written on top. If the two texts are the same, you see "The two texts are identical."
What is finding the difference between two texts?
Finding the difference between two texts means automatically showing what was added and deleted between two versions of the same writing. Programmers call this a diff. A diff checker saves hours with contract and quote versions, assignments corrected by a teacher, articles returned from an editor, the old and new versions of a translation, or the changed text of a web page.
The tool finds the longest common sequence of the two texts: parts that appear in the same order on both sides count as "same", and parts that appear on only one side count as "added" or "deleted". In the end you can rebuild the old text completely: same + deleted parts give the old text, same + added parts give the new text.
Line or word?
Line: for code, lists and documents written line by line. Even if a single letter changes in a line, the whole line counts as changed.
Word: for plain prose, paragraphs and contracts. It shows which word changed. Punctuation marks count as separate pieces.
Limits
If the beginning and end of the texts are the same, those parts aren't counted; only the different middle part is compared.
The different part can be at most 4,000 pieces (lines or words) on each side; the tool warns you beyond that.
Differences in upper and lower case, spaces and line breaks count as differences too.
Tips for comparing documents
Word documents: copy the content and paste it. Formatting (bold, color) isn't compared, only text.
PDF documents: to compare page by page there's Compare PDFs; if pages are shifted, take the text of both PDFs with Extract text from PDF and compare them here.
Lists: to see which items two lists share, Compare two lists is more suitable.
Contracts: this tool gives a quick pre-check; we still recommend reading the changed clauses carefully.
Common mistakes
Filling the boxes the wrong way round: if old and new swap places, additions look like deletions.
Hidden spaces: extra spaces at the end of a line count as a difference too. If needed, first trim the spaces with Remove duplicate lines / sort.
Frequently asked questions
Is comparing text free?
No cost at all. Not bad, right?
Are my texts sent anywhere?
The comparison happens in your browser. What you type is processed, but never shared with anyone.
Can I compare files?
For now you paste text. You need to copy the content of the file and paste it.
Why does even one space show up as a difference?
The tool compares the text as it is. If there's a hidden space or a line-break difference, it shows that too.
Is it suitable for comparing code?
Yes. Pick the Line level; the changed lines show up.
What does diff mean?
It's the name of the output that shows the differences between two texts or files; programmers use it often.
Can I compare very long texts?
Yes, but if the different part goes past 4,000 pieces on either side, the tool warns you.
Can I use it on my phone?
Yes. Paste the two texts in turn; the differences are shown one under the other.
Can I save the comparison result?
The result is shown on screen. To save it, you can use the "Save as PDF" option in your browser's print menu, or take a screenshot.
When is the word level better?
For any text made of paragraphs. The line level shows a whole paragraph as "changed"; the word level marks only the changed words. For contracts, articles and assignments, the word level is more readable.
Can I ignore case differences?
Not for now. If you don't want to see the difference, first convert both texts to lowercase with Uppercase / lowercase converter, then compare.
What do the numbers in the summary line show?
The number of added and deleted pieces. At the word level, words are counted; at the line level, lines.