Text Diff Checker
Paste an original and a changed version. See exactly what was added and removed, by line, word or character, and download the result as a unified diff.
Free, no sign-up. Both texts stay in your browser.
The two texts
Paste two texts to compare them.
How to
Compare two texts in three steps
Paste both versions
Put the original on the left and the changed version below it. Windows and Mac line endings are treated alike.
Choose how to compare
Lines suit code and lists, words suit prose, characters suit short strings. Tick the options to ignore case or extra spaces.
Read or download the changes
Line mode shows a numbered table with context and a unified diff you can copy or download. Word and character modes mark changes inline.
Getting a useful comparison
- Use line mode for code and configuration, and word mode for articles and contracts.
- If everything shows as changed, check line endings and indentation, then try ignoring extra spaces.
- Character mode treats an emoji or an accented letter as one unit, so it will not split them.
- The comparison finds the fewest edits. It does not understand meaning, so a moved paragraph shows as removed and added.
FAQ
Text diff questions
Is my text uploaded?
No. Both texts are compared by code running in your browser and are never sent anywhere.
What algorithm does it use?
Myers shortest-edit-script, the same family of algorithm used by common diff tools. It finds the smallest number of additions and removals.
What does the unified diff mean?
It is the standard patch format: lines with – were removed, lines with + were added, and the @@ lines say where each block sits in the two texts.
Why does it say the texts are too different?
To keep the page fast and the result readable, comparisons stop after 2,000 edits. Compare a smaller part, or switch to a coarser mode such as lines.
How are emoji and accented letters handled?
In character mode each visible character counts as one unit, so a letter with an accent or an emoji is not cut in half.