Text Diff
Compare two versions of a text and see exactly what was added and removed, line by line or word by word.
This tool runs entirely in your browser.
Loading tool…
How to use the Text Diff
- 1Paste the original text on the left and the changed text on the right.
- 2Choose line or word comparison.
- 3Review the highlighted additions (green) and removals (red).
What is the Text Diff?
The diff uses a longest-common-subsequence algorithm — the same idea behind git diff — to find the smallest set of changes between the two texts.
Frequently asked questions
Is my text uploaded?
No. The comparison runs entirely in your browser, which makes it safe for contracts and code.
Is the Text Diff free and private?
Yes. The Text Diff is free, needs no account, and runs entirely in your browser. What you type is never sent to a server or stored.
Related tools
All text tools →- Find and ReplaceFind and replace text, with regex support.
- Remove Duplicate LinesDelete repeated lines from a list.
- JSON FormatterFormat and beautify JSON online.
- Word CounterCount words and characters instantly.
- Character CounterCount characters with and without spaces.
- Sentence CounterCount sentences and average sentence length.
