Compare two texts with word-level highlights
โถ Open it on navigatorslab.com โ free, no sign-up, nothing uploaded
navigatorslab.com/Text-Diff ยท ๐ Watch Narrated Step-by-Step Tutorial Video ยท Watch Full Suite Hands-On Video
This repo's Pages site runs the actual tool: demo.html
Line diff with word-level highlights, similarity percentage, whitespace/case options, unified-diff export.
- How to do it: Paste or type the baseline version of your contract clause, code snippet, or prose into
#textA. - Expected result: Original text is loaded in local browser memory.
- How to do it: Paste the updated or redlined text into
#textB. - Expected result: Both versions are ready for Longest Common Subsequence (LCS) comparison.
Step 3: Click Compare Texts to Inspect Word-Level Highlights (Compare Button (#btnDiff) & Diff Output (#diffOut))
- How to do it: Click Compare (
#btnDiff). Inspect#diffSummary(added/removed line counts and similarity percentage) and#diffOut, where intra-line word changes are highlighted in green (.w-add) and red (.w-del). - Expected result: Subtle single-word edits (like
30 daysโ45 days) stand out immediately.
- How to do it: Click Download .diff (
#btnDl) to save a standard unified diff file with-and+hunks. - Expected result: Standard
.diffpatch file downloaded locally.
| Control / Shortcut | What It Does |
|---|---|
Version A (#textA) & Version B (#textB) |
Side-by-side text areas for original and revised text. |
Compare (#btnDiff) |
Runs the deterministic LCS diff algorithm with intra-line word highlighting. |
Diff Summary (#diffSummary) & Output (#diffOut) |
Shows similarity score, added/removed counts, and color-coded word diffs. |
Download .diff (#btnDl) |
Exports a standard unified .diff text file. |
- ๐ก Use Text Diff before signing a counter-party's 'clean final PDF' of an NDA or MSA: copy the text from your draft into
#textAand the text from their PDF into#textBto catch silent edits. - ๐ก AI agents can also call this exact diff engine deterministically via
POST https://navigatorslab.com/tools/mcp(text_difftool). - ๐ก You can pre-populate inputs via URL parameters (
textdiff.html?a=...&b=...).
| Stage | What Happens | Details |
|---|---|---|
| 1. Raw Input | Contract-v1.txt vs Counterparty-Redline-v2.txt | Counterparty claims 'minor typos fixed', but changed '30 days notice' to '90 business days notice' |
| 2. On-Device Engine | Custom Longest-Common-Subsequence (LCS) line + intra-line word diff engine highlights exact token mutations | Runs 100% client-side in your browser tab under strict CSP (connect-src 'none'). |
| 3. Verified Output | Inline Word-Diff + Unified Patch (.diff) | 91.4% similarity badge ยท '-30 +90 +business' highlighted inside line 14 ยท Exportable unified diff patch |
@@ -14,1 +14,1 @@
-terminate with [-30-] {+90 business+} days written notice | Similarity: 91.4%
- ๐ Narrated Step-by-Step Usage Tutorial Video (
32s):demo.mp4(also live athttps://navigatorslab.com/tools/videos/textdiff.mp4) - ๐ฌ Full Suite Hands-On Video Guide:
https://navigatorslab.com/tools/videos/notebooklm-overview.mp4
- Compare two texts with word-level highlighting inside changed lines
- Similarity percentage, whitespace/case options, unified-diff export
- Handles code, contracts and prose alike
- Paste both texts
- Read word-level highlights and the similarity %
- Export a unified diff
- 100% on-device โ files are processed in your browser and never uploaded to any server
- No accounts, no tracking, no cookies, nothing retained โ open the page and work
- Works offline once loaded; fully mobile-friendly
- Free & open source (MIT) โ use it at home, at work, anywhere
- Deep-linkable via URL parameters โ see the Agent Mode guide
- Machine-readable catalog: llms.txt ยท llms-full.txt
- MCP endpoint:
POST https://navigatorslab.com/tools/mcp(tool catalog + deterministic text tools โ see the main repo) - No build step required to use any tool โ just the URL
Custom LCS diff with word-level intra-line highlighting
Third-party components are catalogued in NOTICE; this repo is MIT-licensed (LICENSE).
The full catalog โ every tool in the hub with the same zero-upload promise, plus the lab's apps, CLIs and engines:
| Tool | What it does | |
|---|---|---|
| ๐ก Photo Privacy Kit | Strip GPS, camera model and timestamps before posting | Open |
| ๐ Password Breach Checker | Has this password been breached? โ it never leaves your tab | Open |
| ๐ Metadata & Hidden-Data Checker | See what's really inside a file โ then strip it | Open |
| ๐ Image Shrinker | Hit โmax 2 MBโ portal limits without TinyPNG | Open |
| ๐ Scan & Screenshot Cleaner | Phone photos of documents โ clean, straight PDFs | Open |
| โ Local E-Sign Pad | Sign this lease tonight โ not DocuSign | Open |
| ๐งพ Receipts โ One PDF | Shoebox of receipt photos โ one date-sorted PDF | Open |
| ๐ข Receipt OCR โ CSV | Read totals off receipt photos, export for expenses | Open |
| ๐ณ QR Studio | Generate QR codes and decode QR images โ no site sees them | Open |
| ๐ง Audio Trimmer | Cut voice notes and clips on a waveform | Open |
| ๐งฎ Invoice / Quote Generator | One-person shops: hours in, clean PDF out | Open |
| ๐ Batch Rename & Sort | IMG_5847.jpg โ 2026-09-05-receipt-home-depot.jpg | Open |
| ๐จ Print-Shop Prep | Exact sizes, bleed, DPI checks, print-ready PDF | Open |
| ๐ PDF Pages | Reorder, rotate, delete and extract PDF pages | Open |
| ๐ฌ Text Diff | Compare two texts with word-level highlights | Open |
| ๐จ Reimagine | Redesign any HTML page from its own content | Open |
| ๐ Text Stats | Words, reading time, readability, keyword density | Open |
| ๐ PDF Studio | Edit the text inside your PDF โ private, free, open source | Open |
| ๐ฉบ Design Health | 18 deterministic design-quality checks for HTML โ no LLM, no API key | Open |
| ๐ช Skill Slice | Copy one Read-verified skill folder โ a slice, not the pie | Open |
| ๐ต liecatchers | Your agent said Done. Prove it โ ten sensors, one RECEIPT.json | Open |
| ๐ Book Guide MCP | Ship improvements with your books โ agents cite, run playbooks, learn | Open |
| ๐ก Data Insights | Founder intelligence โ daily & weekly tech signal briefs | Open |
| ๐ช Iron Axe: Legacy | An original side-scrolling beat 'em up โ Godot 4 | Open |
One hub, twenty-four projects: https://navigatorslab.com/tools
Source & the whole suite: https://github.com/Kayforkind/NavigatorsLab-Tools

