Text Diff
Runs in browserCompare two blocks of text and highlight what changed — line by line.
Original
Revised
- 1
Compared line by line
Both texts are split into lines in your browser. Matching lines at the start and end are set aside first to keep big comparisons fast. Your file never leaves this tab, and nothing is sent to a server.
- 2
Longest common subsequence
The middle is compared with the classic LCS algorithm, which finds the largest set of lines both versions share. Everything else is shown as removed (red) or added (green), with original and new line numbers.
- 3
Options
Ignore whitespace and Ignore case change how lines are matched, not what's shown. Extremely large changed regions are shown as a block replacement to keep your browser responsive.