Text Comparison

Find the differences between two versions of a document, contract clause, code snippet or list. Added lines are highlighted in green and removed lines in red.

Free · No sign-up Text & Writing

How to use the Text Comparison

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Click “Compare” to see a line-by-line difference.
  4. Optionally ignore case or whitespace changes.

Examples

Comparing “Payment due in 30 days” with “Payment due in 14 days” marks the first line as removed and the second as added, making the change from 30 to 14 days easy to spot.

How it works

The comparison uses a longest common subsequence (LCS) algorithm, the same family of techniques used by version control tools, to find the minimal set of line additions and deletions that turns the original into the changed text.

Frequently asked questions

Is my text uploaded?
No. Both texts are compared locally in your browser.
Can it compare word by word?
This tool compares line by line, which works best for documents, lists and code. Put each sentence on its own line for finer comparisons.

Related guides