๐Ÿ†š

Compare two texts (diff checker)

Paste two versions of a text and see every added, removed and changed word highlighted.

โœ“ Freeโœ“ No sign-upโœ“ Files stay on your device

๐Ÿ”’ Works offline in your browser. Your files are not uploaded anywhere.

How to use Text Compare

  1. Paste the original text on the left (or on top on a phone) and the new version in the second box.
  2. The differences appear right away. Press Compare for very long texts.
  3. Read the colours: red is removed, green is added, and inside a changed line the exact words are marked.
  4. Tick Ignore case, Ignore spaces or Show only changes to focus on what matters, then copy the result as a unified diff if you need it.

About this tool

This diff checker shows exactly what changed between two versions of a text: a contract and its revised draft, an essay before and after a teacher's edits, two versions of a configuration file, a product description you suspect was changed, or two lists of names. It compares line by line first, then highlights the individual words that changed inside each modified line, so a single changed number in a long paragraph is easy to spot.

How the comparison works

The tool uses the Myers difference algorithm, the same method behind git diff and most code review tools. It finds the smallest set of lines to delete and insert to turn the first text into the second. Lines that were edited rather than replaced are paired up and compared again word by word. Everything runs in your browser, so confidential documents never leave your device, and texts of thousands of lines are compared in a fraction of a second.

Reading the result

MarkMeaning
+ green lineLine exists only in the changed text (added)
โˆ’ red lineLine exists only in the original (removed)
Strong highlight inside a lineThe exact words that were changed
โ‹ฏ N unchanged lines โ‹ฏIdentical lines hidden by "Show only changes"

Tips

  • Text copied from PDFs or Word often has different line breaks. If every line shows as changed, the wording may be the same but wrapped differently. Use our Text Cleaner to join lines first, or tick Ignore spaces.
  • Ignore case is useful for lists of emails or names where capitals don't matter.
  • Ignore spaces treats runs of spaces and tabs as one space and ignores spaces at line ends, which is handy for code that was re-indented.
  • Use Copy as unified diff to paste the changes into an email, a bug report or a code review in the standard ---/+++/@@ format.

Frequently asked questions

Is my text uploaded to compare it?

No. Both texts are compared inside your browser. Nothing is sent to a server, so you can safely compare private contracts, code or student work.

Can it compare Word or PDF files?

Paste the text from the files. Open the document, select all, copy and paste each version into a box. Formatting such as bold or fonts is not compared, only the words.

Why are whole lines marked even though only one word changed?

Lines that changed a lot are shown as removed and added. If only a few words changed, the line is shown once on each side with just those words highlighted.

Is there a size limit?

No fixed limit. Texts up to about 150,000 characters update as you type; for bigger texts press Compare. Extremely different texts are shown as whole blocks instead of word by word to keep your browser fast.

Does it work as a plagiarism checker?

It shows the differences between two texts you have, for example to see how much a copied text was changed. It does not search the internet for copies.

More Text Tools