Text Compare (Diff Checker)

Paste the original on the left and the changed version on the right. Added lines are highlighted in green, removed lines in red, so you can see exactly what was edited.

Both texts are compared in your browser and never uploaded — safe for contracts, code and config files.

How to compare two texts

  1. Paste the earlier version into Original text and the later version into Changed text.
  2. Click Compare (the result also refreshes as you edit).
  3. Read the result from top to bottom: lines starting with − on a red background were removed, lines with + on green were added. A changed line shows as a removal followed by an addition.
  4. With “Hide unchanged lines” on, only the changes and three lines of context around each are shown; untick it to see the whole text.

How the comparison works

The tool uses the Myers diff algorithm — the same approach used by git diff — to find the smallest set of line insertions and deletions that turns the original into the new version. Comparing whole lines makes the result easy to read for code, lists, CSV files and documents with one paragraph per line.

Copy as unified diff gives you the changes as plain text with + and - prefixes, ready to paste into an email, ticket or chat.

What people use it for

Because the comparison runs locally, you can safely use it for confidential documents and files containing passwords or keys.

Frequently asked questions

Does it show changes inside a line?

The comparison is line by line: a line where one word changed appears as the old line removed and the new line added, one above the other, so the edited word is easy to spot. For long paragraphs, putting each sentence on its own line gives a more precise result.

Is there a size limit?

Up to 50,000 lines per side. Typical documents and source files compare instantly. Very different large texts take longer, because the work grows with the number of changes.

Are my texts uploaded?

No. Both texts stay in your browser; the comparison is JavaScript running on your device.

Can I compare Word or PDF files?

Not directly. Copy the text out of each document and paste it into the two boxes. Formatting such as bold or fonts isn’t compared, only the text.