Text Diff Checker

Compare two texts side by side and see differences highlighted.

About the Text Diff Checker

This tool compares two blocks of text line by line using the Longest Common Subsequence (LCS) algorithm, the same approach used by git diff and other professional diff tools. Lines present only in the original are highlighted in red, lines present only in the modified text are highlighted in green, and unchanged lines are shown without highlighting.

Use Cases

Compare configuration files, code snippets, document revisions, or any two pieces of text to quickly spot what changed. This is useful for code reviews, debugging, and verifying edits before committing changes.

How to Read the Output

The left line-number column corresponds to the original text and the right column to the modified text. A - prefix marks removed lines, + marks added lines, and a space means the line is unchanged in both versions.