Text Diff Viewer

Compare two blocks of text line by line. Runs entirely in your browser — nothing is sent anywhere. Capped at 2,000 lines per side to stay fast.




How it works

This compares the two texts line by line using an LCS (longest common subsequence) diff — the same underlying idea Git and most diff tools use. Lines present in both stay unmarked, lines only in the original are marked - (removed), and lines only in the changed text are marked + (added). A modified line shows up as a removal immediately followed by an addition.