Text Compare (Diff)

Paste two versions of a text and see the differences highlighted line by line. Case and whitespace options — everything happens locally.

Accurate diff

A longest-common-subsequence algorithm finds the minimal set of changes between the two texts.

Clear highlighting

Green for added, red for removed lines, plus a change counter.

In your browser

Neither text is sent anywhere — the comparison is entirely local.

Frequently asked questions

Are my texts sent anywhere?

No. The comparison runs entirely in your browser with JavaScript — nothing is uploaded or stored.

At what level does it compare?

Line by line. A single edited line shows as removed (old) and added (new) — the standard behaviour of most diff tools.

What do the case and whitespace options do?

“Ignore case” treats upper and lower case as equal; “ignore leading/trailing whitespace” disregards surrounding blanks when comparing (the original text is still shown as-is).

Is there a size limit?

Yes — up to 4,000 lines per side, to keep the comparison fast in the browser.

Find & Replace →Sort & Dedupe Lines →All text tools →