Text Diff Checker – Compare Two Texts Online Free

Text Diff Checker

Compare two or three texts side-by-side and instantly spot additions, deletions and changes — character, word or line level. Pull text from URLs or PDF / Word files, save history, 3-way merge. 100% private.

Original Text
0 chars · 0 words · 0 lines
Modified Text
0 chars · 0 words · 0 lines
🔒 100% private — all comparison happens in your browser. PDF / Word files are converted to text locally; URL fetch uses a public CORS proxy and is the only optional network call.

Recent comparisons

Fetch text from URL

Paste a public URL — we'll pull its raw text via a CORS proxy.

How to Use the Text Diff Checker

  1. Pick a mode — 2-Way Compare or 3-Way Merge (for combining two divergent edits over a common base).
  2. Add your texts — paste, type, drop a file (TXT, PDF, DOCX and more), or fetch from a URL.
  3. Choose granularity — Character (finest), Word (best for prose), or Line (best for code).
  4. Fine-tune options — ignore case, whitespace, blank lines; toggle line numbers, word wrap, sync scroll.
  5. Click "Compare Now" (or enable Auto-compare) to render the diff in real time.
  6. Navigate — jump between changes, search inside the diff, switch views, copy or export as HTML / patch / JSON / PDF.
  7. Save & share — every comparison is auto-saved to your local history; click Share to copy a self-contained link.

What is a Text Diff Checker?

A text diff checker takes two (or three) pieces of text and highlights exactly what changed — what was added, what was removed, what stayed the same. Instead of squinting at two versions side-by-side, you get a clean colour-coded report.

Our checker uses the proven Myers diff algorithm under the hood and runs entirely in your browser. That means even huge documents, source code or sensitive contracts never leave your device — and the comparison is virtually instant.

Common Use Cases

✍️ Writers & EditorsTrack revisions between drafts, see what your editor changed, review co-author edits.
👨‍💻 DevelopersCompare two versions of a config, JSON, SQL or source snippet without opening Git.
📚 Students & ResearchersCheck rewrites, spot plagiarism, compare quotation sources line-by-line.
⚖️ Legal & ComplianceSpot every clause changed between two contract drafts or policy revisions instantly.
📈 SEO & MarketingCompare meta descriptions, headlines or ad copy variants to refine A/B tests.
🛠️ DevOps & SysAdminsDiff log files, server configs, environment variables and YAML manifests offline.
🌐 TranslatorsVerify what changed in a source text before re-translating only the deltas.
📝 QA & DocumentationCompare expected vs actual output, audit changes in manuals and release notes.

Why Choose Our Text Diff Checker

100% Private — local comparison; URL fetch is the only opt-in network call.
Instant Results — handles tens of thousands of lines smoothly.
3-Way Merge — Git-style merge of two branches over a common base with conflict markers.
📄 PDF & Word Support — drop a PDF or DOCX and we extract its text to compare.
🌐 URL Fetch — pull text from any public URL into either pane.
🕘 Diff History — last 10 comparisons saved locally and restorable in one click.
🌙 Dark Mode — full dark theme, persisted.
🔍 Search-in-Diff — find & jump between matches with prev/next controls.
⬆⬇ Jump Between Changes — skip straight from edit to edit.
🎯 3 Granularities — character, word, or line.
👁️ 3 View Modes — side-by-side, unified or inline.
🧠 Smart Options — ignore case / whitespace / blank lines.
📊 Live Stats — additions, deletions and similarity percentage.
📂 File Uploads — TXT, MD, JSON, HTML, CSS, JS, XML, YAML, INI, PDF, DOCX and more.
🔄 Swap & Auto-Compare — flip texts; auto-diff as you type.
📥 5 Export Formats — HTML, unified .diff patch, plain text, JSON, PDF (print).
🔗 Shareable Links — encode the comparison into a single URL.
Fullscreen Mode — distraction-free reviewing.
📱 Fully Responsive — desktop, tablet and mobile.
⌨️ Keyboard Shortcuts — Ctrl/⌘+Enter compare, Ctrl/⌘+F search, Esc exit fullscreen.
💯 Always Free — no sign-up, no watermark, no limits.

Frequently Asked Questions

Is my text uploaded anywhere?

No. Every comparison runs inside your browser. PDF and Word files are parsed locally too. The only optional network call is "Fetch from URL", which routes through a public CORS proxy purely to retrieve that URL's content — nothing of yours is uploaded.

Can I compare PDF or Word documents?

Yes. Upload or drop a .pdf or .docx file and the tool extracts its text in your browser so you can diff it like any other text. Formatting, images and layout are dropped — only the text content is compared, which is exactly what you want for spotting wording changes.

What is 3-way merge?

3-way merge is the technique Git uses. You provide a Base (common ancestor), Yours and Theirs. The tool merges both edits automatically where they don't overlap, and inserts standard <<<<<<</=======/>>>>>>> conflict markers where they do.

What's the difference between character, word and line diff?

Character compares every character — perfect for short strings. Word compares whole words and is best for prose. Line compares whole lines — ideal for source code, configs and logs.

Where is my history stored?

In your browser's localStorage only — the last 10 comparisons are kept on this device. No account, no cloud sync.

How big can my texts be?

Anything up to several megabytes works smoothly. Above ~10MB browsers slow down for any diff tool, so we cap file uploads at 10MB.

What does "Ignore whitespace" do?

It collapses runs of spaces and tabs so reformatted text or differently indented code isn't flagged as changed.

Can I share a comparison with a colleague?

Yes — click Share to copy a URL that encodes both texts and your view settings. Or Export as unified patch (.diff) to send a Git-style patch file.

Does it work on mobile?

Yes — the input panes stack vertically and all toolbars wrap responsively.

Scroll to Top