Text Diff & Compare
Free online text diff tool. Compare two texts in line, character or word mode with side-by-side or unified views, and live added/removed/unchanged counts. Runs entirely in your browser.
How to use
What it does
A text diff finds the differences between two pieces of text. This tool supports three granularities: line (split on newlines, great for code and prose), character (per-character, for small edits) and word (split on words, great for natural language). The view can be side-by-side (original on the left, changes on the right) or unified (stacked with -/+ markers). Every comparison reports the added, removed and unchanged counts.
Example
Paste the original on the left and the changed version on the right:
function add(a, b) {
return a + b;
}function add(a, b) {
// sum
return a + b;
}Pick "Line + Side-by-side" and the new comment line is highlighted in green while the rest stays unchanged.
Use cases
- Spot exactly which lines a colleague changed during code review
- Compare two versions of a config, log or translation
- Review copy edits across document revisions
All computation happens in your browser, and it keeps working offline.