Text Diff Tool
Compare two text files and see all differences highlighted line by line.
Text Diff Features
Fast, accurate line-by-line text comparison.
Compares text line by line and highlights every change.
Added lines in green, removed lines in red.
Option to ignore leading and trailing whitespace.
About This Tool
A text diff tool compares two blocks of text and highlights what changed between them: lines or words added, removed, or kept. It is the same idea behind version control diffs, applied to any pair of documents rather than to code alone.
The comparison works by finding the longest common sequence between the two versions and marking everything else as an insertion or deletion. This makes it far quicker than reading both versions side by side to spot a single altered figure, a moved sentence, or a subtle wording change in a contract or draft.
Diffs come in two granularities: line-level, which flags a whole line as changed, and word-level or character-level, which pinpoints the exact edit within a line. Word-level is far more useful for prose, where a single altered figure in a long sentence would otherwise light up the entire line. Knowing which mode you are viewing prevents a small change from looking larger than it is.
How to Use It
- Paste the original text on one side and the revised text on the other.
- Run the comparison.
- Read the highlighted additions and deletions between the two versions.
This space is available for sponsored content. Advertise here