Skip to content

Text Diff Checker

Compare two pieces of text or code and see additions and deletions highlighted by line, word or character.

  • Free, no sign-up
  • Runs in your browser
  • Reviewed Nov 6, 2026

How to use the Text Diff Checker

  1. Paste the original text on the left and the changed version on the right.
  2. Choose line, word or character comparison.
  3. Optionally ignore case or extra whitespace; read the highlighted result.

How it works

Both texts are split into tokens (lines, words or characters). Identical leading and trailing tokens are trimmed, then a longest-common-subsequence table finds the smallest set of insertions and deletions that turns one into the other. Everything runs in your browser — nothing you enter is uploaded.

Worked examples

Contract edit

Comparing “payment within 30 days” with “payment within 14 days” in word mode highlights just “30” removed and “14” added.

Limitations and assumptions

  • Very large inputs (over ~5,000 changed lines or words) are refused to keep your browser responsive — use line mode for big files.
  • Moved blocks show as a deletion plus an insertion.

Frequently asked questions

Can I compare code?

Yes. Line mode works best for code; word mode for prose.

G

Built and reviewed by Guru G

Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.