Text Compare

Paste the original text on the left and the changed version on the right. Every added, removed and changed line is highlighted, down to the words that changed.

How to compare two texts

  1. Paste the original on the left and the new version on the right.
  2. The result updates as you type. Removed lines are red, added lines are green, and inside a changed line the exact words that changed are highlighted.
  3. Turn on Ignore case or Ignore spaces to skip differences you don't care about.
  4. Tick Hide long unchanged parts to fold away long stretches that didn't change, and click a folded part to open it. ⇄ Swap exchanges the two texts.

A summary above the result counts the added and removed lines, so you can see at a glance how much changed.

How it works

The tool uses the Myers difference algorithm, the same approach behind git diff. It finds the smallest set of added and removed lines that turns one text into the other, then compares the words inside each changed line.

Common uses

FAQ

Is my text sent to a server?

No. The comparison runs in your browser, so it's safe for contracts, code and private documents.

Can it compare Word or PDF files?

Copy the text out of the documents and paste it here. Formatting like bold or fonts isn't compared, only the text.

Why does it say the texts are too different?

When almost every line differs, a line-by-line comparison would be a wall of red and green that helps nobody, so the tool tells you instead. Check that you pasted two versions of the same text.