Text Diff 🔒 Your data never leaves your browser.

Compare two texts line by line — see exactly what changed.

Paste two versions of a text to see what changed.

About this tool

This diff compares two texts line by line using the same longest-common-subsequence approach as git: unchanged lines stay plain, removed lines show in red, added lines in green. Perfect for spotting what changed between two configs, SQL dumps, API responses or document drafts.

Comparison happens entirely in your browser — both texts stay on your machine, so it's safe for anything confidential.

Frequently asked questions

Is my text uploaded to a server when I compare it?

No — the comparison runs entirely in your browser's JavaScript engine; the two texts never leave your device.

What's the difference between unified and side-by-side view?

Unified shows one column with added and removed lines marked +/-; side-by-side shows the original and changed text in two aligned columns, which makes reordered content easier to spot.

Why do some lines get word-level highlights instead of being marked whole-line added or removed?

When a deleted line and an added line are similar, the tool pairs them and highlights only the words that changed, so a one-word edit doesn't look like a full rewrite of the line.

What do 'Ignore case' and 'Ignore whitespace' actually do?

They only affect how lines are compared, not what's displayed — lines that differ solely in letter case or in whitespace are treated as identical, while your original text is still shown untouched.

Is there a limit on how much text I can compare?

Very large inputs (roughly 800,000 characters combined) trigger a warning before diffing, since line-matching gets slow on huge texts — click 'Compare anyway' if you want to proceed regardless.