How it works
The comparison is done line by line using the longest common subsequence (LCS) algorithm — the same principle behind git diff. Identical lines show in gray, lines removed from the original text show in red (with a "−"), and lines added to the modified text show in green (with a "+").
When to use it
Useful for comparing two versions of a config file, a code snippet before/after an edit, or any text where you need to quickly spot what changed.
Reading a result in practice
If the original has the lines host=localhost and port=80 and the new version changes the second to port=8080, the output shows the first in gray, port=80 in red and port=8080 in green. An edited line always appears as a removal followed by an addition.
Invisible differences
Trailing spaces, tabs instead of spaces, and Windows line endings (CRLF) versus Linux ones (LF) all count as changes even when the text looks identical. If every line shows as modified, suspect that. For long single-paragraph text, break sentences onto separate lines before comparing, or the difference will be one whole line.
Frequently asked questions
Is the comparison done by line or by word?
By whole line — each line is treated as a unit, matching git diff's default behavior.
Is my text sent to any server?
No — the entire comparison happens locally in your browser.
Can I ignore case or whitespace differences?
The comparison is exact. To ignore case or extra spaces, normalize both texts first (for example, lowercase everything) and paste the adjusted versions. That way only real content differences are highlighted.
Is there a size limit for comparing?
The algorithm compares every line of one text against the other, so run time grows quickly with very large inputs. With thousands of lines the browser may take a while; huge files are better handled by git diff on the command line.