Text Diff Checker

Paste two texts and see exactly what changed: added, removed and changed lines highlighted, with word-level detail on changed lines and counts for each kind of change.

Developer Tools 100% in your browser
0
Lines added
0
Lines removed
2
Lines changed
1
Lines unchanged
The quick brown fox
≠ jumps leaps over the lazy dog.
≠ It runs very fast.

Green = added, red = removed, amber = changed (with the exact words highlighted). Blank lines are ignored and each line is compared after collapsing extra spaces.

How to use

  1. Paste the original text in the first box and the changed text in the second.
  2. Read the counts: lines added, removed, changed and unchanged.
  3. Scan the comparison — green is added, red is removed, amber is changed, with the exact words highlighted.

Example

Input: Original 'jumps over the lazy dog' vs changed 'leaps over the lazy dog'

Output: 1 line changed · 'jumps' → 'leaps' highlighted in amber

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

  • 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.

Privacy

Both texts are compared locally in your browser. Nothing is uploaded, logged or stored.

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.