Text Compare (Diff Checker)

Paste an original text and a changed version to see exactly what is different. The comparison works line by line: lines that were removed from the original and lines that were added in the new version are marked, while unchanged lines stay in place for context. Options let you ignore upper and lower case or extra spaces.

Text

Loading tool…

At a glance

Inputs
Two texts, compared line by line
Output
Unchanged, removed and added lines in order, with counts
Options
Ignore upper/lower case; ignore extra spaces
Limit
About 5,000 lines per text

How it works

  1. Paste the original

    Put the earlier version in the first box.

  2. Paste the changed text

    Put the newer version in the second box.

  3. Read the differences

    Removed and added lines are labelled, with a count at the top.

Which comparison tool fits?

Pick by what you are comparing.

OptionBest forTrade-off
Text Compare (this page)Pasted text, lists and snippets.Line-level, not word-level.
Compare Two PDFsTwo PDF files.Compares extracted text, not layout.
Remove Duplicate LinesCleaning a list before comparing.Does not compare two texts.
Sort LinesComparing lists whose order differs.Sort both first, then compare.
Word CounterChecking how much text changed in size.No details of the changes.

Example: two versions of rent terms

A landlord sent revised terms and you want to see what changed.

  1. The original has Rent ₹15,000, Deposit ₹45,000 and Notice 1 month.
  2. The new version has Rent ₹16,000, the same deposit, Notice 2 months and a new line about pets.
  3. The result shows 2 lines removed and 3 added: the rent and notice lines changed, and the pets line is new.

When to use Text Compare (Diff Checker)

Use it to review changes in rental agreements, offer letters, notices and assignments, to compare two versions of a list of names or products, or to check configuration and code snippets before replacing one with another.

How the comparison works

The tool finds the longest sequence of lines that appear in both texts in the same order. Lines outside that sequence are reported as removed from the original or added in the new version. This is the same idea used by version control systems.

Ignoring noise

Changes in capitals or spacing often do not matter, for example when text was retyped. The two options normalise lines before comparing, while the displayed text stays as you pasted it.

Working with PDFs and documents

For PDFs, use Compare Two PDFs, which extracts the text first. For Word documents, copy the text from each version into the two boxes.

Reading the result quickly

Removed lines come from the original and added lines from the changed text. A changed line therefore appears as a removed line followed by an added line, which lets you read the old and new versions next to each other. Long unchanged stretches stay in the list for context, so scroll to the labelled lines.

Comparing long documents

For long agreements, compare one section at a time: paste the clause headings and their text from each version. Smaller pieces make the result easier to read and keep the comparison fast on phones.

When line-by-line is the right choice

Contracts, lists, configuration files and code are written in lines or clauses, so a line-by-line comparison shows changes in the units people review. For flowing prose where whole paragraphs are on one line, split sentences onto separate lines first to see changes more precisely.

Comparing documents for review

When negotiating an agreement, compare the version you sent with the version you received rather than reading the whole document again. The differences show exactly what the other side changed, including small edits to dates, amounts and notice periods that are easy to miss.

Comparing code snippets

Developers compare configuration files and short code snippets before replacing one with another. Line-by-line comparison suits code well, because each statement usually sits on its own line.

If something looks wrong

Every line shows as changed
Line breaks or spacing may differ. Tick Ignore extra spaces, or check that one text was not wrapped differently.
A one-word change marks the whole line
That is expected: comparison is line by line. Look at the removed and added pair together.
Lists in different orders show many changes
Sort both lists with Sort Lines first, then compare.
It says the texts are too long
Split them into parts of up to about 5,000 lines.

Common questions

Can I compare code?

Yes, it works on any plain text.

Are blank lines compared?

Yes, blank lines count as lines.

Is anything saved?

No.

Does it compare word by word?

No. It compares whole lines. A changed word marks that line as removed in the original and added in the new text.

Is my text uploaded?

No. The comparison runs in your browser.

How long can the texts be?

Up to about 5,000 lines each. Longer texts are rejected to keep the page responsive.

Both texts are compared in your browser, so drafts of contracts or letters stay private.