Text Diff Checker

Compare two blocks of text and see exactly which lines were added, removed or left untouched. It uses a longest-common-subsequence comparison — the same approach version control uses — so it identifies the lines that genuinely changed rather than falling out of step after the first difference.

How to compare two texts

  1. Paste the original text in the first box.
  2. Paste the changed version in the second box.
  3. Tap Compare — removed lines show in red, added lines in green.

When you'd use this

Good to know

Frequently asked questions

How does the comparison work?

It uses the classic longest-common-subsequence algorithm — the same approach tools like Git use for diffs — applied line by line, entirely in your browser.

Does it compare word by word?

No, line by line. If a single word changes inside a line, that whole line shows as removed and re-added. For prose, putting each sentence on its own line gives more readable results.

Is there a size limit?

Very large texts (millions of line combinations) are declined with a clear message instead of freezing your browser — split them into sections and compare those.

Does it show which words changed within a line?

No, it works at line level. A line with one altered word shows as a removal plus an addition, which is also how most version control tools present a change by default.

Why does it refuse to compare very long texts?

The comparison grows with the two line counts multiplied together, so a large pair would lock the page up for minutes. The limit is four million line pairs, and an honest message asking for smaller sections beats a frozen browser.

Is my text uploaded in order to compare it?

No. Both sides are compared in your browser and never transmitted — which is rather the point when the thing being compared is a contract or source code that has not shipped.