Two texts. One exact edit script.

Myers diff with line, word & character granularity — inline highlights, 3-line context folding, zero upload.

granularity
Original
0 lines
Changed
0 lines
§ 01 — THE PROOF DESK

Built for version checks and change audits

The features you need when two versions of anything must be reconciled — code reviews, config audits, copy edits.

Myers Engine

The same O(ND) algorithm behind Git: the shortest edit script — minimal insertions and deletions, never a spurious change. 2,500-line configs diff in milliseconds.

Three Granularities

Lines for code and configs, words for Chinese copy (CJK split per character, English per word), chars for spelling — one engine, three token streams.

Context Folding

Every change ships with ±3 lines of surrounding context; untouched regions collapse into @@ bands you click to expand — long files stay readable.

Zero Upload

Normalization, diffing and rendering all run in your browser. Nothing is sent to any server — safe for source code, secrets in configs and unpublished copy.

§ 02 — HOW THE DESK READS

From raw paste to proven script

Three stages turn two texts into one auditable edit script — the same pipeline every serious diff tool runs.

i

Normalize

Both texts split on newlines into line matrices. Trailing whitespace is trimmed per line — indentation is preserved exactly, because indentation is meaning in YAML and Python. Case can be ignored for case-insensitive audits.

ii

Difference

The Myers algorithm walks an edit graph diagonally, greedily following the longest common subsequences. It provably returns the shortest edit script (SES) — the fewest deletions plus insertions that transform A into B — in O(ND) time, where D is the true difference size. Similar texts finish fast precisely because they are similar.

iii

Render

Adjacent delete and insert runs pair up as modifications, each diffed again at word level so the changed words glow inside the line. Unchanged regions fold into @@ context bands; everything maps into split or unified views with full line numbers.

fig. 1 — the edit graph: right edge deletes, down edge inserts, diagonals are free matches.

paste, compare, and ship the delta

Text Diff Hub gives developers, QA engineers, and technical writers a fast way to verify exactly what changed between two text snapshots. Paste an original string and its revised counterpart, pick a granularity, and read the inline or unified output immediately. It handles source code, JSON configs, CSV exports, and prose without sending anything to a server. Use it before a commit to catch stray whitespace, confirm a patch only touches the lines you intended, or audit a vendor's changelog against your own records.

§ 03 — PROOF NOTES

Frequently Asked Questions

How do I compare two texts online?

Paste the original text on the left and the changed text on the right. The desk proofs them instantly as you type — every insertion, deletion and modification is highlighted with line numbers and counts. Press Ctrl+Enter (Cmd+Enter on Mac) to force a re-compare.

What is the difference between line, word and character mode?

Line mode diffs whole lines and is made for code and config files. Word mode tokenizes the text — Chinese characters individually, English words whole — and is ideal for copy review. Character mode diffs letter by letter, which catches spelling changes like license vs license. All three run the same Myers algorithm on different token streams.

How does the diff algorithm work?

TextDiffHub uses the Myers diff algorithm: it finds the shortest edit script (SES) — the minimal sequence of insertions and deletions that turns text A into text B — in O(ND) time, where D is the size of the difference. Lines are normalized first (trailing spaces trimmed, indentation preserved, case optionally ignored), then matched into a longest common subsequence.

What does the @@ unchanged lines @@ band mean?

Unchanged regions farther than 3 lines from any change are folded into a context band, exactly like a unified patch hunk. Click the band to expand those lines and see the full file. This keeps long files readable — you see every change with enough surrounding context, without scrolling through untouched code.

Can it compare code files and configuration files?

Yes. Line mode preserves indentation and whitespace exactly as pasted, renders monospaced output with line numbers, and highlights the changed words inside modified lines — the same treatment Git gives a patch. YAML, JSON, INI, nginx configs, source code, logs and CSV all work; the comparison is purely textual, so any file you can paste is fair game.

Does it handle Chinese and other multilingual text?

Yes. Word mode splits CJK characters individually while keeping English words whole, so a Chinese copy edit highlights exactly the characters that changed, not the whole sentence. Character mode works for any Unicode text, including emoji.

What is the difference between split and unified view?

Split (side-by-side) shows the original on the left and the changed text on the right, aligned row by row — easiest for review. Unified shows a single patch stream where deleted lines appear with a minus sign and inserted lines with a plus — the format used by Git and patch files. Switch anytime; both share the same folding and inline highlights.

Is my text uploaded to a server?

No. The diff engine runs entirely in your browser with client-side JavaScript. Nothing you paste is transmitted, logged or stored — safe for source code, credentials in configs, and unpublished copy. Close the tab and everything is gone.

Latest Articles

Highlighting Micro-String Modifications in Offline Code Version Comparisons
You're staring at two versions of the same configuration file. One is from last Tuesday's commit. The other is what's sitting on your local machine right now.
Offline Code Branch Comparison: Detecting Subtle String Shifts Without Internet Access
Picture this: you're a developer at a regional bank, working in a strictly air-gapped environment. No GitHub. No cloud-based diff tools. No Stack Overflow.
Leveraging Privacy-Focused Browser Diff Tools for Enterprise Data Compliance
Picture two compliance teams at the same healthcare enterprise, both tasked with reviewing a 340-page HIPAA policy update before the Friday deadline.
Understanding change detection in large config files using the Myers algorithm
You've just run kubectl diff on a generated Helm chart, and your terminal freezes. The config file ballooned from 2,000 lines to 14,000 lines after a values.yaml rewrite, and your go-to text…
How to Perform Secure Code Review in a Privacy-focused Online Diff Editor
You just finished writing a new authentication module. It handles JWT tokens, password hashing, and session management.
Text Comparison: Browser Checks vs Upload Mistakes
Stop risking sensitive string data with cloud uploads. Use no-upload browser-based text comparison. Follow our QA checklist to analyze strings securely today.
3 Text Comparison Tactics Catching Branch String Shifts
Stop missing subtle string changes across version control branches. Learn local text comparison tactics keeping code secure without uploading it. Read guide!
Stop Missing Edits: Text Comparison Needs Context Folding
Stop drowning in text! Compare technical documentation drafts using inline highlights and context folding. Grab our step-by-step checklist and review faster!
Myers Diff Algorithm: Taming Brutal Inline Diffs
Stop highlighting whole code lines. See how the Myers diff algorithm handles inline text highlighting for precise code analysis. Upgrade your diff viewer now!
Comparing Sensitive API Payloads Locally with a Privacy-focused Browser Diff Tool
Picture this: you just got a bug report about a patient records endpoint returning inconsistent data.
Context Folding: 4 Steps Reviewing 1000-Line PRs
Discover context folding in diff tools. We tested 1,000-line PRs across 4 steps, proving it improves code review by cutting scan times 40%. See the test data.
Stop Uploading YAML: Secure Local Text Comparison
Stop exposing API keys during deployments. Compare YAML config files securely without uploading them to any server. Follow our step-by-step checklist now!
How to Use a Privacy Focused Browser Based Diff Tool for Config File Change Detection
Mine was a Tuesday in March. A junior engineer adjusted max_connections in a PostgreSQL config, pushed it through our usual pipeline, and the database refused to restart. The rollback took 38 minutes.
Browser Text Comparison: Diff Configs Without Server
Diff 1,200 sensitive config lines safely in the browser. Our text comparison guide uses context folding without server uploads. See the code example now.
Compare YAML Files: 12MB Upload vs Inline Browser Diff
Compare YAML files: weighing a 12MB upload vs zero-transfer browser diff? See how secure inline text comparison highlights changes locally. Review the test.
3 Text Comparison Mistakes Leaking Config Files Online
Pushing YAML? Avoid 3 text comparison mistakes leaking secrets. Compare config files securely in your browser without uploading to servers. Fix it today!
Compare Config Files: 2026 Local Diff vs Cloud Pitfalls
Cloud uploads leak secrets. Compare config files locally via a no-upload browser diff tool instead! We contrast both methods to avoid pitfalls. Read on!
Compare Config Files: 4 Browser Pitfalls Fixed 2026
Securely compare config files directly in your browser. Avoid common server upload mistakes with this evidence-led, step-by-step pitfalls guide. Start reading today.
Secure Browser Myers Diff: Compare Large Config Files
Compare config files securely without uploads. A browser-based Myers diff keeps data local, working like a side-by-side blueprint checker. Start comparing!
Compare Config Files Safely: Local Diff Beats Cloud
Uploading secrets is risky. Compare sensitive config files locally to get safe inline diff highlights right in your browser. Read the full breakdown today.
How to Compare Large Config Files in Browser Without Uploading Using Context Folding
That question kept me up one night in 2022 after a junior engineer pasted a sanitized—but not sanitized enough— values.yaml into a popular online diff checker.
Compare Code Snippets Privately: Fix Cloud Diff Leaks
Stop leaking proprietary logic into public diffs. Learn how developers compare code snippets securely in a privacy-focused browser editor. Read the fix.
Understanding Myers Algorithm for Change Detection in Text Comparison
If you've ever shipped a patch file to your CI pipeline and watched the diff stage hang for forty seconds on what looked like a trivial change, you've already felt the cost of a suboptimal text comparison backend.
No Upload Diff Tool vs Cloud: Stop Leaking Code
Stop risking sensitive code via cloud diffs. A no upload diff tool analyzes locally, fixing security pitfalls. Compare local vs cloud. Secure your code now!
Detect Config File Changes Online: 5-Minute Solution
Stop manually eyeballing YAML updates. Learn how to detect changes in config files using an online editor to prevent production breaks. Try the diff tool now!
Text Comparison: Local Diff Tools Beat Git 5 Minutes
We tested local text comparison tools vs version control. See why standalone diff apps spot 100% of changes without a server. Read our quick test results now!
3 Browser Code Review Tool Mistakes Myers Algorithm Fixes
Stop guessing during text comparison. See how a browser based code review tool using myers algorithm fixes common diff mistakes. Read the practical guide now.
Inline Highlights Simplify String Analysis Bug Hunts
See how QA testers use inline highlights for string analysis to catch subtle text discrepancies. Learn from one real bug hunt and refine your QA workflow today.
Context Folding vs Flat Diff: Spot Edits 3x Faster
What is context folding? We tested 5 tools to see if hiding unchanged lines beats flat diffs. See how it cuts review time by 40%. Read our quick test results!
Privacy Diff Tool | Text Comparison for Tech Writers
Compare documentation securely with our privacy-focused diff tool. Designed for technical writers, our text comparison keeps your data safe. Try it today!

View All Articles →