Text Compare (Find the Differences)

Paste two versions of a text and see exactly what was added and removed, line by line or word by word.

Free, no sign-up Your text never leaves your browser
Compare by

Differences

Compared in your browser. Your text is never sent or saved.

How to compare two texts

  1. Paste the original in the first box and the changed version in the second.
  2. Choose "Lines" or "Words". Lines suits lists, code and long documents; Words shows small edits inside sentences.
  3. Read the differences: removed text is red with a line through it, added text is green. The summary counts them.

How it works

We look for the smallest set of additions and removals that turns the original into the changed version, using the Myers difference method, the same idea behind most "diff" tools programmers use. Everything that isn't added or removed is shown as the same. A changed line shows as the old line removed and the new line added.

"Ignore capital letters" treats Hello and hello as the same. "Ignore extra spaces" treats several spaces, tabs and spaces at the ends of lines as one space, which helps when text has been copied between apps.

Worked example

Original: The price is $1,200 for the full project. Changed: The price is $1,350 for the whole project. By words: The price is $1,200 $1,350 for the full whole project. 2 words added, 2 words removed, 6 words the same By lines (a 5-line email where the price line changed and one line was added): 2 lines added, 1 line removed, 4 lines the same

Frequently asked questions

What can I use it for?

Checking what a client changed in a contract or brief, comparing two drafts of an essay or proposal, spotting edits in a list, or comparing two versions of a settings file or code.

Can it compare Word or PDF files?

Not directly. Copy the text out of each file and paste it in. For PDFs, our PDF to text tool can copy the words out for you. Formatting such as bold or fonts isn't compared, only the words.

Is there a size limit?

Texts of thousands of lines work well. If two texts are almost completely different, we stop and say so, because the result wouldn't be useful.

Is my text sent anywhere?

No. Both texts stay in your browser, and they're gone when you close or reload the page. We never see them.

Keep going

Related tools

All Text tools

Please note: these tools change text by fixed rules, so check the result before you use it, especially names, codes and anything legal or official. Read the full disclaimer.

Last updated: