Text Tools

How to Compare Two Versions of a Document and Spot Every Change

“I only changed a few words” – but which ones? Comparing two versions side by side shows every addition and deletion, so nothing slips past you.

In this article
  1. When you need to compare
  2. How to compare
  3. Reading the result
  4. Getting clean text to compare
  5. The re-wrapped paragraph problem
  6. Keep a version history
  7. How diff tools work
  8. Comparing lists
  9. Confidential documents stay private

When you need to compare

  • Contracts and agreements sent back “with minor edits”.
  • Policies and terms that were updated, to see what actually changed.
  • Essays and articles after an editor’s pass, to learn from the changes.
  • Configuration files and code when one version works and the other does not.
  • Translations to check a revised version against the previous one.
Text Compare (Diff Checker)Paste two versions of a text and see every added, removed and changed line, with the exact words that changed highlighted. Ignore case or spaces if you like.
Open the free tool

How to compare

  1. Open Text Compare.
  2. Paste the original on the left and the changed version on the right.
  3. Tick “Ignore extra spaces” for text copied from PDFs or emails; tick “Ignore case” if capitalisation does not matter.
  4. Press Compare texts.
  5. Read the coloured lines: removed text, added text, and – inside changed lines – the exact words that differ.

Reading the result

The summary shows how many lines were added, removed and unchanged. Then each changed line is highlighted, with the specific words marked, so “30 days” versus “60 days” jumps out. In contracts, pay special attention to numbers, dates, names, “may” versus “must”, and words like “not”, “only” and “exclusive” – tiny changes with big consequences.

Getting clean text to compare

SourceHow to get text
Word or Google DocsSelect all, copy, paste
PDFExtract with PDF to Text
Web pagesCopy the main text; use “Ignore extra spaces”
Code and configPaste as is – spaces may matter

The re-wrapped paragraph problem

Comparison works line by line. If one version has a line break in the middle of each paragraph and the other does not, every line looks changed. Put each paragraph on a single line in both versions first – Remove Extra Spaces can join broken lines.

Keep a version history

Comparison is easiest when you keep each version. Save drafts with dates or version numbers in the file name – “Agreement-v3-2026-11-20” – instead of overwriting one file. When a new version arrives, compare it with the last one you approved, not with the very first draft; the result is shorter and shows only the newest changes.

How diff tools work

Text Compare uses the Myers algorithm, the same approach behind Git’s default diff. It finds the smallest set of insertions and deletions that turns one text into the other, then runs again on changed lines at the level of words. That is why the result highlights only what really changed instead of whole paragraphs.

Comparing lists

For lists – names, product codes, keywords – sort both lists first with Sort Lines so the order does not create false differences. Then the comparison shows exactly which items are missing from each list.

Confidential documents stay private

Contracts and drafts are sensitive. Text Compare runs in your browser, so neither version is uploaded. For legal documents, comparison helps you notice changes – it does not replace reading the final document or getting professional advice.

Text Compare (Diff Checker)Paste two versions of a text and see every added, removed and changed line, with the exact words that changed highlighted. Ignore case or spaces if you like.
Open the free tool
Keep reading

Related articles

All articles
Text

Find and Replace with Regular Expressions – A Beginner’s Guide

Plain find and replace changes one word to another. Regular expressions (regex) let you change patterns – every phone number, every date, every line start – in one go.

3 min read
Text

How to Clean Email, Phone Number and Keyword Lists in Seconds

Lists collected from several places always contain repeats. Sending to the same person twice or paying for duplicate keywords is avoidable – here is how.

3 min read
Text

How Long Should It Be? Word Counts for Essays, Articles, Speeches and Posts

“Write 1,500 words” is easy to say and hard to judge as you type. Here are typical lengths for common writing jobs and practical ways to hit a target.

3 min read