# Diff Viewer
line-by-line ยท LCS algorithm ยท color-coded
Compare two texts and see the differences highlighted line by line. Green lines are additions, red lines are deletions, grey lines are unchanged. Uses LCS-based diff algorithm.
ORIGINAL
MODIFIED
DIFF RESULT
FAQ
What algorithm is used?
This tool uses a Longest Common Subsequence (LCS) based diff algorithm to find the optimal set of changes between the two texts, similar to Unix diff.
Is there a size limit?
The diff runs in your browser, so very large texts (10,000+ lines) may be slow. For typical code and text comparisons it's instant.