Text Diff: Compare Two Texts Online
Paste two versions of any text and instantly see what changed. This text diff tool compares them line by line, marks added, removed and edited lines in green and red, and highlights the exact words that differ. View the result side by side or inline, ignore case or whitespace, and read a similarity score. Everything runs in your browser, so nothing you paste is ever uploaded.
Everything runs in your browser — no text is ever uploaded.
Your comparison will appear here
Paste text into both boxes to see a line-by-line diff.
Similarity How much the two texts share, based on the longest common sequence of lines.
—
Lines added Lines present in the changed text but not in the original.
—
Lines removed Lines present in the original but not in the changed text.
—
The two texts are identical.
How to use
- Paste the original version into the left box and the changed version into the right box.
- The differences appear instantly: added lines in green, removed lines in red, with word-level highlights.
- Toggle between "Side by side" and "Inline" to view the diff the way that suits you.
- Turn on "Ignore case" or "Ignore whitespace" to skip trivial differences.
- Check the similarity score and the added / removed counts, then click Copy diff to save the result.
Features
- Line-by-line comparison using a real LCS diff algorithm — no guesswork
- Word-level highlighting shows exactly which words changed inside a line
- Side-by-side and inline views, with clear +/− markers, not colour alone
- Similarity percentage plus counts of added and removed lines
- Ignore case and ignore whitespace for cleaner, more relevant results
- 100% client-side — your text never leaves your browser