What it does
Compares two blocks of text line by line and shows what was added, removed, or left unchanged between them — handy for comparing config files, code snippets, or any two versions of a text.
Try it
How it works
- Both texts are split into lines and compared using a classic Longest Common Subsequence (LCS) algorithm to find the minimal set of line insertions/deletions between the two versions.
- Lines present in both texts, in the same relative order, are marked as unchanged (no prefix).
- Lines only in the original are marked removed (
-prefix, red). - Lines only in the modified text are marked added (
+prefix, green).
Everything runs locally in your browser — nothing is uploaded anywhere.