Text Diff logo

Prescosoft

Text Diff

Open Tool
Line · Word · Character · Invisible-char scanner

Text
Diff

Compare two texts or files with line, word, or character granularity — and catch the invisible characters that make files look identical but be different. All in your browser, nothing uploaded.

Compare Text Free forever · No account · No watermark
Nothing is uploaded Invisible-char detector Side-by-side + inline No account needed
0 chars
0 chars
Nothing leaves your device. Comparing proprietary source code or documents under embargo? The diff runs entirely in this tab — close it and your text is gone.

How it works

The classic Myers diff algorithm, with a hidden-character scanner on top.

1

Align the texts

A Myers shortest-edit-script algorithm aligns the two versions, finding the minimal set of changes — the same algorithm family git uses.

2

Pick a granularity

Line for code, word for prose, character for byte-level forensics. Changed lines get a second inline pass so you see the exact words that moved.

3

Scan the invisible

A code-point scanner flags zero-width spaces, BOMs, no-break spaces, and mixed CRLF/LF endings — the classic 'files look identical but aren't' trap.

Why Prescosoft Text Diff

  • Invisible-character scanner — ZWSP, BOM, NBSP, ZWJ/ZWNJ, thin spaces, mixed line endings. Others treat these as invisible.
  • Three granularities: line, word, character — with a second inline pass on changed lines.
  • Inline and side-by-side views, similarity score, unified-patch export.
  • Nothing uploaded — safe for proprietary code and embargoed documents.

Typical diff tools

  • diffchecker: freemium, pastes are uploaded to their cloud, invisible chars pass as identical.
  • Server-side pastes: your code becomes training data or sits in a public pastebin.
  • Desktop IDEs: powerful but heavy for a quick comparison.
  • CLI diff: no side-by-side, no invisible-char forensics.

Frequently Asked Questions

What is a text diff?
A diff (short for difference) is a comparison of two texts that highlights exactly what changed — which lines were added, removed, or modified. Diffs are the foundation of version control (git diff), code review, and document comparison. This tool shows you the same kind of output with line, word, or character granularity, plus side-by-side and inline views.
What are invisible characters?
Invisible characters are Unicode code points that take up no visible space or look like normal spaces: zero-width spaces (U+200B), zero-width joiners (U+200D), no-break spaces (U+00A0), byte-order marks (U+FEFF), and thin spaces. They're often invisible in editors, so two files can look identical yet contain different bytes — which breaks code, comparisons, and automated checks. Most diff tools ignore them entirely; this tool flags them explicitly.
Is my text uploaded anywhere?
No. Everything runs locally in your browser — your code, documents, and data never leave your device. There is no server, no account, and no tracking. This matters when comparing proprietary source code, drafts under embargo, or personal documents.
What's the difference between line, word, and character diff?
Line diff compares whole lines and is best for code and structured text. Word diff compares within lines, highlighting the exact words that changed — best for prose and documents. Character diff compares every individual character, which is essential for finding invisible-character changes and byte-level differences.
Why do two files that look identical show a diff?
Almost always because of invisible characters: a zero-width space, a BOM at the start of the file, a no-break space where a regular space should be, or mixed line endings (CRLF vs LF). These characters are real bytes but render invisibly. Switch to character granularity and check the invisible-character panel — the tool will name exactly which code points differ and where.
Is it free?
Yes — completely free, no account, no watermark, no usage limits. Popular alternatives are freemium or server-side: diffchecker limits pastes and uploads them to their cloud, which is a problem for proprietary code.

Related guides

Email Header Analyzer

Email Header Analysis: SPF, DKIM & DMARC

Headers are just text — and invisible characters can break parsing. See how security checks work.

Read guide
Log File Analyzer

How to Analyze Server Log Files

Diff old and new configs, compare log formats, and spot what changed between deploys.

Read guide

More Prescosoft tools

Aa

Text & Productivity Toolkit

Case, count, dedupe, sort, regex.

🧹

CSV Cleaner & Data Wrangler

Dedupe, filter, sort, convert.

✍️

Markdown Editor

Write with live preview.

🛡️

Email Header Analyzer

SPF, DKIM & DMARC verdicts.

See the difference — including the invisible one

Line, word, and character diffs with a hidden-character scanner. Nothing uploaded, ever.

Compare Text Now