Text Diff Checker

Texts to compare
Differences
Enter two texts and click Compare.

How to compare two texts?

Paste the original in the first box and the modified version in the second, then click "Compare". Added lines show in green, removed lines in red, unchanged lines in gray.

Algorithm

We use the LCS (longest common subsequence) algorithm to find matching lines between the two texts, then mark the rest as additions or deletions. Great for comparing code, drafts or configs.