How diff works
This tool uses a simple LCS (longest common subsequence) algorithm to find the minimal set of changes between two texts. Words in red were removed; words in green were added. Unchanged text stays neutral.
When to use
- Before/after refactoring: confirm only the intended lines changed.
- Config file versions: spot what a teammate changed.
- Writing edits: see revisions clearly.
All processing happens client-side — nothing is uploaded.
Formats, sizes and other limits
Both texts are cut into comparable units — words and punctuation, with optional case folding and whitespace collapsing driven by the two checkboxes — and then compared with a longest-common-subsequence table. That dynamic-programming grid is what lets the tool report the minimal set of edits instead of simply marking every line as changed: tokens missing from the second text are painted red, tokens added in the second text are green, and everything they share stays neutral. The result reads like an inline review, so you can paste a function before and after a refactor and see at a glance which words actually moved, and the checkboxes let you ignore cosmetic churn such as trailing spaces or capitalisation before you judge the change.
Where it stops working
The comparison is token-level, not line-level and not character-level, so a single changed character inside a word shows up as that whole word being replaced rather than as a highlighted letter, and moved blocks are reported as deletions plus insertions rather than as a move. Whitespace and case handling are all-or-nothing toggles with no way to ignore punctuation or normalise Unicode. The LCS table costs time and memory proportional to the product of the two token counts, so two very long documents — tens of thousands of tokens each — can stall the tab or exhaust it; paste excerpts instead of whole novels. Output is visual only: there is no unified diff, no patch file and no line numbers to copy.
Privacy: nothing is uploaded
Both versions of the text stay in the two boxes and are compared by an algorithm running in the page; the differences are rendered, not recorded. There is no upload, no revision history and no server-side comparison service involved.
Frequently asked questions
Can it ignore whitespace or capitalisation?
Yes, with the two checkboxes: one lowercases before comparing and the other collapses runs of spaces and tabs. They apply to the whole comparison rather than per line, so decide which kind of change you care about first.
Why is a rearranged paragraph shown as a big change?
Because the algorithm finds the longest common subsequence rather than detecting moves. Text that was relocated appears as a deletion where it used to be and an insertion where it now sits, which is accurate but noisier than a move-aware diff.
How much text can I compare at once?
Comfortably a few thousand tokens per side. The table is quadratic, so doubling the input quadruples the work: two 20-page documents may freeze the interface, while two paragraphs respond instantly.