Skip to main content

Diff Viewer

Paste two blocks of text and get a color-coded line-by-line diff using the LCS algorithm. See additions, deletions, and unchanged lines at a glance.

Features

Frequently Asked Questions

What algorithm is used for the diff?
The tool uses a Longest Common Subsequence (LCS) algorithm to produce an accurate line-by-line diff.
Can I compare code files?
Yes. Paste any text including source code, config files, or prose and the diff will highlight every changed line.
Is the comparison done locally?
Yes. All processing happens in your browser. No data is sent to any server.