Text Diff Checker
Compare two pieces of text or code side by side. Highlights added, removed, and unchanged lines.
How to Use the Diff Checker
Paste your original text in the left panel and the modified version in the right panel, then click Compare. Lines highlighted in green were added, lines in red were removed, and unchanged lines are shown without highlighting.
The Ignore trailing whitespace option treats lines that differ only by trailing spaces as equal — useful when comparing code from different editors.
About Diff Algorithms
This tool uses an LCS (Longest Common Subsequence) based diff algorithm, which finds the minimal set of changes needed to transform the left text into the right text. This produces the same results as the classic Unix diff utility for line-by-line comparison. The output follows unified diff conventions: + for additions and −for removals.