Diff checker

Paste the original on the left and the changed version on the right to see exactly which lines were added or removed.

How the diff is computed

The tool finds the longest common subsequence (LCS) of lines between the two texts. Lines in the LCS are unchanged; lines only in the original are shown as removed (−), lines only in the new text as added (+). This is the same idea behind diff and git diff, which use faster variants such as the Myers algorithm.

Reading the output

The two number columns are the line numbers in the original and in the changed text. A modified line appears as one removal followed by one addition.

Frequently asked questions

Is there a size limit?
About 2,000 lines on each side, because the comparison table grows with the product of both lengths.
Is my text uploaded?
No, the comparison runs in your browser.