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.
0 characters0 bytes
0 characters0 bytes
How to Use It
- Paste the original text into the first box and the changed text into the second.
- Choose to compare by lines, words, or characters.
- 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.
Related Tools
- Remove Duplicate LinesRemove repeated lines from a list and keep the first copy of each line in its original order. You can ignore spaces at the start and end of a line, and letter case.
- Persian Text NormalizerChange Arabic yeh and kaf to Persian, remove tatweel and extra ZWNJ, and convert digits to Persian or Latin. You see every change before you copy.