HomeText ToolsText Diff

🔍 Text Diff — Compare Two Texts

Paste two versions of any text and see exactly what changed. Added words highlighted green, removed words in red. Word, character, and line-level modes.

Original Text
0 words · 0 chars
Modified Text
0 words · 0 chars
🔒 100% Free · No Login · Text Never Leaves Your Browser
📖 How to Use
1
Paste Texts
Paste the original text on the left and modified version on the right
2
Choose Mode
Word-level for prose edits, Character-level for typos, Line-level for code
3
Compare
See additions in green, removals in red strikethrough, and a similarity score
❓ Frequently Asked Questions
How does the word-level diff work?+
Word-level diff uses the Longest Common Subsequence (LCS) algorithm. It finds the maximum sequence of words that appear in the same order in both texts, then marks everything outside that sequence as added or removed. This produces the minimal set of changes needed to transform one text into the other.
When should I use character-level diff?+
Use character-level when you need to spot exact typos, spelling changes, or precise punctuation differences within words. It is more granular than word-level and can be noisy on larger texts, but is the most precise option.
When should I use line-level diff?+
Line-level diff is best for code, configuration files, and structured documents where each line is a logical unit. It shows entire lines that were added or removed, similar to how tools like git diff work.
Is my text uploaded to any server?+
No. All comparison runs entirely in your browser using JavaScript. Your text never leaves your device and is never stored anywhere. The tool works fully offline once the page is loaded.