Text Diff. Every change, line by line.
Paste two versions of any text and see exactly what changed — additions in green, deletions in red. Unified or side-by-side, with ignore-case and ignore-whitespace options. Runs entirely in your browser; nothing is uploaded.
A free online tool by Digital HeroesRuns entirely in your browser — nothing is uploaded anywhere.
A diff you can trust, with no upload
Text Diff compares your two texts line by line using a longest-common-subsequence algorithm — the same core idea behind git diff. Lines only in the original are marked as removed (red); lines only in the changed version are marked as added (green); everything else lines up untouched with its real line numbers on both sides. Toggle Unified for a single stacked column or Side by side for two aligned panes, and switch on ignore-case or ignore-whitespace when trailing spaces or capitalisation shouldn't count as a change. Because the whole comparison runs in your browser, your content never leaves your device — good for code, config, contracts, essays or anything else you'd rather not paste into a server.
Everything a diff should do.
- Compare any two texts line by line — code, config, documents, essays or plain notes — with every change highlighted.
- Read it your way in a stacked unified view or two aligned side-by-side panes, switchable any time.
- Spot additions and deletions instantly: green for added lines, red for removed, with real line numbers on both sides.
- Ignore case or whitespace so capitalisation or trailing spaces don't get flagged as real changes.
- Swap Original and Changed in one click to reverse the comparison direction and re-run instantly.
- Private by construction: the diff runs entirely in your browser — nothing is uploaded and it keeps working offline.
Four steps, no manual.
- Paste your original text into the left box and your changed text into the right box.
- Optionally tick Ignore case or Ignore whitespace so those differences are skipped.
- Choose Unified or Side by side, then click Compare.
- Review the result — green lines were added, red lines were removed — and use Swap to flip the direction.
Frequently asked questions.
Is Text Diff free?
Is it private? Is my text uploaded anywhere?
What is the difference between Unified and Side by side?
+, removed lines with a − — like a Git patch. Side by side shows the original and changed text in two aligned panes so you can read matching lines across from each other. Both use the same diff underneath.What do Ignore case and Ignore whitespace do?
Does it work offline?
Can it compare code or JSON?
Published · Last updated .