Diff runs as you type and stays on your device - nothing is uploaded, so it's safe for unpublished drafts, contracts, source code and AI prompts. The line diff uses the Myers algorithm to find the minimal set of insertions and deletions that turn the left text into the right one - the same approach that powers git diff - so the highlights track what actually moved instead of going red from one edit onward. On lines that changed in place, a second word-level pass picks out the words that changed, with strike-through on what was removed and a green wash on what was added.
Two toggles tame the noise: Ignore case treats Hello and HELLO as equal, and Ignore whitespace ignores indent changes, trailing spaces and double spaces. Hit Swap sides to flip the comparison direction without retyping, or Copy as patch to grab a unified - / + patch of just the changes.