Text Diff
Paste the original text in the left field and the modified version in the right. Differences appear immediately — green lines were added, red lines were removed.
Common questions
What algorithm is used for comparison?
The tool compares the two texts line by line using a Longest Common Subsequence (LCS) algorithm. It finds the longest sequence of lines both texts share and derives the minimal set of added and removed lines from it. Other diff tools, including Unix diff, are also LCS-based but may group and order changes differently.
Does the tool support character-level diff?
No — comparison is line-by-line. The output shows which lines were added, removed, or unchanged. For most use cases (code, configuration, prose) a line diff is more readable than a character diff, which tends to produce noisy output for small edits in long lines.
Is my text sent to the server?
No. The entire diff algorithm runs in your browser. Nothing you type is transmitted over the network.