Text Diff Checker

Compare two versions of a text and see exactly what changed.

Text Tools Free, no sign-up Runs in your browser

Text Diff Checker tool

Comparison options

About the Text Diff Checker

Text Diff Checker puts two versions of the same text side by side and marks what changed. Added lines are highlighted in green, removed lines in red, and everything untouched is shown plain so the changes stand out. A summary above the result counts the additions, deletions and unchanged lines.

The comparison uses a longest-common-subsequence algorithm, the same approach that version control tools use. That matters because it finds the real alignment between the two versions rather than comparing line one to line one. Insert a paragraph at the top of a document and the tool reports one addition, not a file where every line moved.

Options let you ignore things that do not matter to you: leading and trailing whitespace, differences in capitalisation, or empty lines. You can also switch from comparing lines to comparing words, which is the better view when two paragraphs differ by a handful of words rather than whole lines.

How to use the Text Diff Checker

  1. Paste the original versionPut the earlier or left-hand version into the first box.
  2. Paste the changed versionPut the newer or right-hand version into the second box.
  3. Choose what to ignoreOptionally ignore whitespace, capitalisation or blank lines, and switch between line and word comparison.
  4. Press CompareAdded, removed and unchanged content is marked, with counts above the result.

Features

  • Line-by-line and word-by-word comparison
  • Added, removed and unchanged content clearly marked
  • Counts of additions, deletions and unchanged lines
  • Options to ignore whitespace, case and blank lines
  • Uses proper difference alignment, not naive line pairing
  • Marks changes with words as well as colour, so colour is not the only signal
  • Copy the summary of changes

Who uses this tool

The text diff checker is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Checking what an editor changed in a draft
  • Comparing two versions of a configuration file
  • Spotting the difference between two copied lists
  • Reviewing a rewritten paragraph before publishing
  • Confirming that a copy and paste transferred everything

Frequently asked questions

How does the comparison decide what moved and what changed?

It finds the longest sequence of lines common to both versions and treats everything outside that as added or removed. This is the same family of algorithm that version control systems use, so inserting a line near the top does not mark the rest of the file as changed.

When should I use word comparison instead of line comparison?

When the two versions have the same overall shape but differ inside sentences. Line comparison would mark the whole line as removed and re-added; word comparison shows just the words that changed.

Does it work with code?

Yes. Code is just text as far as this tool is concerned, and the whitespace options help when indentation changed but logic did not. For a review workflow, a proper version control diff is still the better tool.

Is colour the only way changes are shown?

No. Every changed line is also labelled as added or removed in text, so the result is readable without relying on colour vision.

Are my documents uploaded?

No. The comparison runs in your browser, which makes it safe for contracts, unpublished drafts and configuration files containing internal detail.

What is the largest pair of documents I can compare?

Documents of a few thousand lines compare almost instantly. Very large files will take longer because the alignment work grows with the size of both inputs.

If the text diff checker is not quite what you need, these other free tools solve closely related problems.

Find and Replace Text

Replace text everywhere at once, with case options and regex support.

Text Tools Use tool

Text Cleaner

Tidy messy pasted text: extra spaces, empty lines, breaks and special characters.

Text Tools Use tool

Word Frequency Counter

Rank every word by how often it appears, with counts and percentages.

Text Tools Use tool

Remove Duplicate Lines

Deduplicate any list of lines, with case-sensitive and empty-line options.

Text Tools Use tool

Word Counter

Live word, character, sentence and paragraph counts with a reading-time estimate.

Text Tools Use tool