Compare two texts and highlight line-by-line differences
The Text Compare tool performs a line-by-line comparison of two texts, highlighting what was added, removed, or unchanged. It's similar to the diff output you see in version control systems like Git, but accessible directly in your browser without any setup.
The tool uses a Longest Common Subsequence (LCS) algorithm to find the best match between the two texts. Lines that appear in the modified text but not the original are marked as "added" (green). Lines that appear in the original but not the modified are marked as "removed" (red). Lines that appear in both are shown in grey as "unchanged".