Paste or type to begin

Original on the left, modified on the right.

Compare two texts online

Need to quickly spot the differences between two blocks of text? This free online text diff tool highlights every change line-by-line. Perfect for comparing drafts, config changes, copy edits, or any two strings. No file uploads, no sign-up — just paste and compare. Works entirely in your browser so your text stays private.

Features

Frequently asked questions

How do I compare two texts?
Paste the original text on the left and the modified text on the right. Differences are highlighted instantly — no buttons to click.
Can I ignore whitespace?
Yes — open Settings and toggle "Ignore whitespace" to focus on meaningful changes only.
Can I compare large texts?
Yes. The editor handles large documents efficiently with virtualized rendering.
Is this the same as diff on the command line?
Similar concept, but with a visual, color-coded UI instead of +/- markers. You can switch between side-by-side and inline views.
How do I find the difference between two strings?
Paste both strings into the editor — one on each side. Every character-level change is highlighted in green (additions) or red (deletions).
Can I compare two paragraphs?
Yes. Paste any text — paragraphs, sentences, documents, or code — and see differences instantly.
Is my text private?
Yes. viewdiff runs 100% in your browser. Your text is never uploaded to any server.
Can I share the comparison?
Yes — click Share to get a URL that anyone can open to see the same diff.

More diff tools