Text Diff Checker

By the ToolPocket team · Updated 2026-12-05 · Editorial standards

When two versions of a document drift apart, the useful question is what changed. This tool compares text line by line and marks additions and removals, so you can review a revision without reading the whole thing again.

Paste the original on the left and the revised text on the right. Lines that match are faint, removed lines are struck through, and new lines are highlighted.

Runs locally in your browser — nothing is uploaded.

How to use the Text Diff Checker

  1. Paste the original text on the left.
  2. Paste the revised text on the right.
  3. Press Compare to see the changes.

Frequently asked questions

How are lines matched?

The tool computes the longest common subsequence of lines. That keeps unchanged lines aligned and shows only the true insertions and deletions.

Can I compare whole documents?

Yes, for normal document sizes. Very large files may be slow because the comparison runs in your browser.

Is my text uploaded?

No. The comparison happens locally and nothing is sent to a server.

Good to know

Line-based diffs are the right granularity for code and documents: they show what a reviewer needs without drowning them in character-level noise. Word-level diffs are better for prose edits, where a changed word matters more than a changed line.

The comparison is a longest-common-subsequence problem, which is quadratic in the worst case. Extremely large inputs can be slow, so comparing a few thousand lines at a time is the practical limit for a browser-based tool.