100% Offline, Air-Gapped Text, Code, Word (.docx), PowerPoint (.pptx), and PDF Diff & Merge Suite with Interactive Automated Showcase.
Developed by Jayanth (@JayAnthKolli46) with the assistance of Google Antigravity.
🌐 Open Live Tool • ✨ Interactive Auto-Demo • 📖 Features • ⌨️ Shortcuts • 🔒 Security
Most online text comparison tools send your proprietary source code, confidential agreements, API tokens, and corporate logs to remote servers for processing.
Local Text Compare & Document Suite executes 100% in your browser's local RAM using native Web APIs (DecompressionStream, DOMParser, TreeWalker). It never makes a single network request, stores cookies, or triggers telemetry.
local-text-compare/
├── index.html # ⚡ Production Diff & Merge Workstation (Ultra-fast, zero-overhead)
├── demo.html # 🎬 Standalone 22-Chapter Interactive Guided Showcase Edition
├── Launch-DiffTool.ps1 # 🚀 1-Click Windows launcher for index.html
├── Launch-Demo.ps1 # ✨ 1-Click Windows launcher for demo.html
├── LICENSE # 📄 MIT Open Source License
├── SECURITY.md # 🔒 Air-Gapped Compliance & Privacy Policy
├── CONTRIBUTING.md # 🤝 Contributor Guidelines
├── llms.txt # 🤖 AI Agent & LLM Semantic Discovery Standard
├── sitemap.xml # 🗺️ SEO Sitemap for search crawlers
├── robots.txt # 🤖 Crawler directives
├── manifest.json # 📱 Web App / PWA metadata
└── README.md # 📖 Documentation & User Guide
- Synchronized Row Heights: Eliminates the classic word-wrap vertical drift found in traditional diff engines. Left and Right cells share locked table rows.
- Visual Color Highlights: Soft green for additions (
+), red for deletions (-), and yellow for intra-line modifications (~).
- Native In-Memory Parsing: Uses browser
DecompressionStream('deflate-raw')to extract text and styling directly from OpenXML.docx/.pptxand binary compressed PDF FlateDecode streams. - Encoding Auto-Detection: Automatically detects Windows
UTF-16LE,UTF-16BE, andUTF-8BOM files without generating\0null-byte artifacts.
- Casing: To lowercase, To UPPERCASE, Title Case / Capitalize Words.
- Sorting: Natural alphanumeric line sorting (A to Z and Z to A).
- Cleaning: Unwrap paragraph line breaks into single lines, collapse excess whitespace, purge empty/blank lines symmetrically, and remove duplicate lines.
- Scoping: Apply to Both Panes, Left Only, or Right Only in 1 click.
- CSV / TSV Column Aligner: Auto-measures max column widths and pads comma/tab-separated values into clean tabular grids.
- Fault-Tolerant JSONC: Tolerates single-line
// commentsand trailing commas without syntax errors; formats with 2 spaces or sorted keys. - Safe SQL Prettifier: Formats SQL keywords into uppercase multi-line queries while protecting string literals.
- XML / HTML Formatter: Indents and cleans markup trees cleanly.
- Word vs Character Level: Switch to Character Level to isolate single-letter typos (e.g.
subcriptionvssubscriptionisolatess). - Regex Ignore Pattern: Provide patterns like
\/\/.+(strip comments) or\d{4}-\d{2}-\d{2}(strip timestamps) before diffing. - Filters: Toggle Ignore Case (
A == a), Ignore Trim, Ignore Spaces, and Blank Lines normalization.
- Single-Line Gutter Arrows: Click
→or←to merge individual lines. - Atomic Multi-Line Chunk Merging (
Alt + →): Splices entire multi-line block insertions atomically into array and DOM nodes without index drift.
- Searches within diff rows using pure DOM
TreeWalkertext node traversal, preventing<mark>highlights from corrupting underlying diff<span>tags.
- Git Patch (
.diff): Generates standard unified diff files with@@ -L,S +L,S @@hunk headers. - Self-Contained HTML Reports: Adaptive dark/light styled single-file HTML reports ready for sharing.
Double-click Launch-Demo.ps1 or open demo.html to experience an automated, self-running feature walkthrough:
- Glowing Spotlight Overlay: Dims the screen and illuminates the active UI component.
- Simulated Animated Cursor: Glides to buttons and generates click ripples.
- Live Data Injections: Dynamically loads before/after scenarios (e.g. casing differences, uneven indentation, or rich formulas) so diff calculations are visible live.
- Interactive Controls: Play/Pause (
Spacebar), Speed selector (0.5xto2.0x), Chapter selector dropdown, and a Minimizable HUD (_).
| Shortcut | Action |
|---|---|
Alt + S |
Switch Left and Right documents |
Alt + N / F7 |
Jump to Next Difference |
Alt + P / Shift + F7 |
Jump to Previous Difference |
Alt + → |
Merge active diff chunk to Right |
Alt + ← |
Merge active diff chunk to Left |
Alt + V |
Toggle Split vs Unified View |
Ctrl + F |
Search inside Diff |
Ctrl + B / I / U |
Bold, Italic, Underline (in Rich Edit Mode) |
Spacebar |
Play / Pause interactive demo tour (in demo.html) |
? |
Open Help dialog |
Esc |
Close search, modal, or exit demo |
Access the live, private web application in any browser:
👉 https://jayanthkolli46.github.io/local-text-compare/
- Clone or download this repository:
git clone https://github.com/JayAnthKolli46/local-text-compare.git
- Double-click
Launch-DiffTool.ps1(Windows) or openindex.htmldirectly in any web browser. - For the self-running automated feature showcase, open
demo.htmlor double-clickLaunch-Demo.ps1.
- Zero External Network Calls: No CDNs, external web fonts, tracking cookies, or remote server endpoints.
- In-Memory Execution: All files are parsed in browser RAM. No data is stored or transmitted.
- Enterprise Ready: Compliant with HIPAA, GDPR, SOC 2, and strict corporate air-gapped workstations.
Distributed under the MIT License. See LICENSE for details.
Created with ❤️ by Jayanth (@JayAnthKolli46) with the assistance of Google Antigravity.