Text Diff Tool

Compare two texts and see the differences highlighted line by line. Find additions, deletions, and unchanged lines.

Input
Result

Frequently Asked Questions

How does the diff algorithm work?

It uses the Longest Common Subsequence (LCS) algorithm to identify matching lines, then highlights added and removed lines.

Can I compare code files?

Yes, the diff tool works with any text including source code, configuration files, and documents.

What do the colors mean?

Green lines were added in the modified text, red lines were removed from the original, and unchanged lines have no highlighting.