Skip to content

Text Compare (Diff Checker)

The text compare tool puts two texts side by side and colours the difference: additions in green, removals in red with a strike-through. Compare two drafts of a contract, an edited essay or two snippets of code at line, word or character level. Your texts never leave your device.

Previewing with sample texts.

Compare by

View

Ignore

Comparing…

abc Addedabc Removed

The similarity is the share both texts have in common; it is not a plagiarism check.

This tool runs entirely in your browser; your text never leaves your device.

How to compare two texts

  1. Paste the old text on the left and the new text on the right.
  2. Pick the level: line, word or character.
  3. Optionally ignore case, whitespace and blank lines.
  4. Read the summary, jump between changes and swap the sides if needed.

Tips

  • Start with word level for prose; character level suits short texts and typos.
  • Ignoring whitespace removes noise from text copied out of Word or PDF.
  • CRLF and LF line endings are treated as the same.

Example: two versions of a sentence

Comparing two drafts at word level shows exactly which words changed.

OldNewDifference (word level)
The meeting is on Tuesday at 10.The meeting is on Wednesday at 11.−Tuesday +Wednesday · −10 +11
The report is attached.The updated report is attached.+updated
Homework is due Friday.Homework is due Friday.No difference · 100% similar

Line, word and character level

  • Line: whole lines are compared; best for code and lists, with word changes highlighted inside changed lines.
  • Word: best for prose. Turkish apostrophe words count as one word.
  • Character: catches single-letter typos; emoji are never split.

How the difference is found

The tool splits both texts into pieces and finds the smallest set of insertions and deletions with Eugene Myers’ 1986 diff algorithm, rewritten for this site. Long texts are compared in a Web Worker so typing stays smooth. Ignoring case follows Turkish rules, so “İSTANBUL” equals “istanbul”.

What the similarity means

Similarity is twice the number of shared pieces divided by the total number of pieces in both texts; whitespace is not counted at word level. It is not a plagiarism check.

Clean the texts first with the text cleaner, sort lists with sort lines or inspect hidden characters with the Unicode lookup.

Who uses text compare?

  • Students and teachers: see what changed between two versions of an essay.
  • Editors and translators: check which sentences were rewritten.
  • Legal and purchasing teams: catch small edits in contract drafts.
  • Developers: compare two config files or snippets line by line.

Text compare FAQ

How do I find the difference between two texts?

Paste them into the two boxes; additions are green, removals red and struck through.

Are my texts uploaded anywhere?

No. The comparison runs entirely in your browser and nothing is stored.

What is the difference between word and character level?

Word level marks whole words and reads better; character level shows single-letter changes.

What does the similarity percentage show?

How much of the two texts is shared. It is not a plagiarism checker.

Related tools