Text Diff Checker

Compare two texts with a unified or side-by-side diff: added, removed and changed lines, word-level highlighting, ignore-case and ignore-whitespace options, and a downloadable .diff patch.

Developer Tools Runs in your browser · no upload

Reviewed 17 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Paste the original text in the left box and the changed text in the right (or press Swap to flip them).
  2. Choose Unified for a single annotated stream or Split for aligned columns with line numbers.
  3. Turn on Ignore case, Ignore whitespace or Skip blank lines to filter formatting noise; 'Changes only' collapses unchanged runs to three lines of context.
  4. Copy or download the result as a standard unified .diff file you can apply with git apply.

Example

Input: Original: It runs fast. Changed: It runs very fast.

Output: 1 line changed · 92% similar · word detail highlights “very” as the only addition

How it works

Both texts are split into lines (blank lines dropped, extra spaces collapsed) and compared with a longest-common-subsequence diff: lines in both are unchanged, lines only in the new text are added, lines only in the old text are removed. A removed line immediately followed by an added line is shown as one changed line, with the exact words highlighted.

Lines are aligned by longest common subsequence (LCS). Changed lines are paired del + add rows, and their words are diffed the same way at word level.

Worked example

Original 'jumps over the lazy dog' vs changed 'leaps over the lazy dog' reports 1 line changed, with 'jumps' → 'leaps' highlighted.

Edge cases to know

  • Blank lines are ignored and each line is compared after collapsing extra spaces.
  • Comparison is line-based (up to 4,000 lines per side); word-level detail is shown only for changed lines.
  • Whitespace-only differences inside a line are not highlighted.

Limits & compatibility

  • Up to 4,000 lines are compared per side; the LCS diff is O(n·m), so very large documents are intentionally capped.
  • The diff is textual, not semantic: reordered paragraphs show as removals plus additions.
  • Similarity is the share of unchanged lines, not a character-level score.
  • Word detail splits on whitespace, so punctuation changes may highlight the whole word.

Privacy

Both documents are diffed in your browser. Contracts, drafts and internal notes are never uploaded or logged.

Related tools

FAQ

Questions about Text Diff Checker

How does the comparison work?

Both texts are split into lines and compared with a longest-common-subsequence diff. Lines in both are unchanged; lines only in the new text are added (green) and lines only in the old text are removed (red). A removed line followed by an added line is shown as one changed line (amber) with the exact words highlighted.

Why are blank lines ignored?

Blank lines are dropped and extra spaces inside a line are collapsed before comparing, so formatting noise does not dominate the result. Whitespace-only differences inside a line are not highlighted.

Is there a size limit?

Yes — up to 4,000 lines per side, and word-level detail is shown only for changed lines. Very large documents are better compared with a dedicated diff tool.

Are my texts uploaded anywhere?

No. Both texts are compared locally in your browser; nothing is uploaded, logged or stored.