Text Diff (line-by-line)
Paste two texts; LCS computes a line-by-line diff with **added / removed / changed** colour-coded. Toggle to **ignore whitespace** or **ignore case**, export as **unified diff** (git / patch compatible).
added 1removed 0changed 1unchanged 3
LLeft (before)RRight (after)
1apple1apple
2~banana2blueberry
3cherry3cherry
4date4date
+5elderberry
βΊHow to use
- Paste the old version on the left and the new on the right (empty input counts as 0 lines).
- The side-by-side table updates live: + green insert, β red delete, ~ amber replace (adjacent delete+insert merged), grey = unchanged. Both line numbers (L / R) shown.
- (Optional) toggle Ignore whitespace to collapse runs of spaces, or Ignore case to compare case-insensitively β great for checking 'did anything substantive change' after a formatter.
- Copy unified diff for a git / patch-compatible blob you can drop into a PR description, Linear, Slack.
Tips
- LCS (Longest Common Subsequence) is the algorithm behind git diff, O(nΓm). 1000 Γ 1000 lines finishes in <10ms.
- Replace = delete + insert merging β adjacent removals + insertions are treated as a 'line was changed' for a more intuitive read.
- Ignore whitespace is great for checking 'did prettier change anything meaningful'.
- vs diffchecker.com β they paywall ignore options; we're free + no upload.
π‘ Diff runs entirely in the browser (the JS LCS is fast enough). No upload β fine for contracts, confidential docs.
Related tools
- Taiwan test data generatorValid TW national ID, BAN, mobile, Luhn credit cards
- JSON formatter + Schema validatorFormat / minify / sort + JSON Schema validation
- Unix time & timezone converterSeconds / ms / ISO interop with timezone-aware display
- Markdown batch translatorBring-your-own OpenAI / Anthropic / Google API key. Batch-translate .md files while preserving frontmatter / code / links