HomeText Tools › Text Diff

🔍 Free Text Diff Checker

Compare two blocks of text and highlight exactly what's different. Line-by-line and word-level diff modes. Fast, free, no login.

✅ Free⚡ Instant🔤 Word-level📄 Line-level

Enter Texts to Compare

Frequently Asked Questions

How does the text diff tool work?
The tool uses a longest common subsequence (LCS) algorithm to find what is common between the two texts. Lines/words unique to text A are highlighted in red (removed), lines/words unique to text B are in green (added).
What's the difference between line diff and word diff?
Line diff shows which entire lines were added, removed, or changed. Word diff breaks each line into words and shows which specific words changed. Character diff is the most granular — it shows individual characters that changed.
Can I compare code with this tool?
Yes! The diff tool works well for comparing code. Use "Line by Line" mode for code comparisons. For code, you may want to keep "Case Sensitive" set to Yes.