Skip to main content
HandyWeb

Text Diff Checker

Compare two texts line by line, word by word, or character by character, and see what was added and removed. Copy the result as a patch too.

Runs on your device.

Compare by
0 characters0 bytes
0 characters0 bytes

How to Use It

  1. Paste the original text into the first box and the changed text into the second.
  2. Choose to compare by lines, words, or characters.
  3. Additions are green and removals are red. Copy the patch to use the changes somewhere else.

Questions and Answers

Which comparison do I need?

Lines for code and lists. Words for prose and letters. Characters to find a typo or an invisible character.

Are Persian words with ZWNJ compared correctly?

Yes. Words are split with the Persian word segmenter of the browser, so “کتاب‌خانه” is one word.

What is the patch?

The differences as a unified diff, the form that git diff and diff -u write. You can apply it with tools such as patch or git apply.

Good to Know

Character comparison works up to 200,000 characters. If two large texts are very different, the comparison stops after 10 seconds. The patch is always line by line.

Source code of this toolReport a problem on GitHub