A high-performance, cross-platform file comparison, 3-way merge, and multi-format data synchronization desktop suite built with Python (PySide6) and modern Windows 11 Fluent Light design principles.
๐ Product Website & Interactive Guide: Open docs/index.html (or publish
/docson GitHub Pages) for an interactive Fluent Light overview, commercial feature comparison, and CLI reference.
-
โ 2-Way Text, Code & Word (
.docx) Diff:- Synchronized Bottom Line Details Pane: Stacked Left vs Right character-by-character intraline inspector for the active cursor row.
- Display Scope Filtering: Switch between
All Lines,Diffs Only,Context ยฑ3, andSame Onlywith collapsible hidden-line markers while keeping true 1-based line numbers intact. - Read-Only Pane Lock & Interactive Encoding/EOL Converter: Lock baseline files against accidental edits or hunk transfers; click the
UTF-8 | LFpill to convert encoding (UTF-8,UTF-8 BOM,UTF-16 LE/BE,Windows-1252) or line endings (LF,CRLF,CR). - Word
.docxText & Table Extraction: Open Microsoft Word.docxfiles directly side-by-side (auto-locked read-only) without requiring Microsoft Word. - External File Watcher: Non-blocking reload banner notifies you immediately if an external editor, formatter, or Git command modifies an open file on disk.
- Tree-sitter AST Semantic Diffing: Structural diffing for Python and JavaScript/TypeScript that detects reordered functions and docstring updates without false-positive line diffs.
- View Virtualization for 100k+ Lines: Windowed sliding-window rendering keeps memory footprint bounded, rendering massive files smoothly.
- Diff Minimap & Visual Overview Ruler: 16px navigation gutter displaying color-coded tick marks (green additions, red deletions, blue modifications, orange conflicts, purple moves) with hover tooltips and click-to-jump navigation.
- Custom Unimportant Difference Rules & Presets: Define and persist custom regex substitution rules in Noise Filters alongside timestamps, GUIDs, commit hashes, and comments, and toggle
Ignore Unimportantin one click. - Side-by-Side HTML Reports & Unified
.patch: Export Fluent Light interactive Side-by-Side HTML reports,.patchfiles, or copy unified diff directly to clipboard. - Manual Alignment ("Align With..."): Explicitly anchor matching lines across panes by right-clicking and selecting Align With... (or pressing
Ctrl+Shift+A), then clicking the target line on the opposing editor. PressCtrl+F7or click the alignments pill to clear. - Find & Replace Bar: Docked search (
Ctrl+F/Ctrl+H) with Case Sensitivity (Aa), Regex (.*), and Replace / Replace All. - Local-First AI PR Summary & Privacy Shield: Automated Markdown pull request summaries (local Ollama or OpenAI-compatible endpoints) with automated credential and PII scrubbing, or 100% zero-outbound offline heuristics.
-
โง 3-Way Merge Studio:
- 3 synchronized viewports: Mine (Local) | Base (Ancestor) | Theirs (Remote) + collapsible 4th Merged Output Preview with standard diff3 conflict markers.
- Resolution actions:
Accept Mine,Accept Theirs,Accept Base,Take Both,AI Resolve, full resolution Undo stack, and honors CLI--outputdestination on save.
-
๐ Folder, 3-Way Folder Merge, Archive & Remote Comparison Suite:
- True 3-Way Folder Merge Studio: Compares Mine (Left), Base (Ancestor), and Theirs (Right) trees, auto-resolves safe additions/deletions/modifications, flags true conflicts, lets you drill down into 3-Way Text Merge on any file, and writes the merged output cleanly.
- Remote Filesystem Profiles (
sftp://,s3://,ftp://,ftps://): Connect remote SSH/SFTP hosts (with strict OpenSSHknown_hostshost-key verification), Amazon S3 / MinIO buckets, or FTP/FTPS servers directly in Folder Compare and open remote files side-by-side without saving plaintext passwords to disk. - Flatten Folders Mode (
Flatten): View all files across nested directory hierarchies in one sortable list by relative path. - ยฑ2s Timestamp Tolerance & BLAKE3: Handles FAT/SMB/DST timestamp skew alongside SHA-256, BLAKE3, and Rules-Based modes.
- Interactive Folder Sync Hub (
Sync Hub...): Supports Mirror L->R, Bi-directional Sync, and Update Left/Right with per-row checkboxes and Windows Recycle Bin safe-delete support. - HTML & CSV Folder Reports: Export standalone folder audit reports or CSV summaries straight from the ribbon.
- Smart
.gitignore& Virtual Archive VFS: Prunes bloat dirs and browses.zip,.jar,.tar,.tgzentries transparently without extraction.
-
๐ผ Visual Media & Document Diff Studio (Images, Multi-Page PDF, SVG):
- Live (X, Y) RGBA Pixel Inspector: Hover anywhere on the canvas to read Left vs Right RGBA pixel values and per-channel deltas.
- Interactive Zoom (
Fit/100%/Ctrl+Wheel), Swap & Drag-and-Drop. - Multi-Page PDF & EXIF: PyMuPDF (
fitz) page rasterization, aligned extracted text diff, EXIF metadata table, Swipe Curtain, Onion-Skin, Pixel Heatmap, Flicker/Blink, and Side-by-Side views.
-
๐ Tabular / Spreadsheet Diff (CSV, TSV, Excel, Parquet, SQLite):
- Sheet & SQLite table selectors, Float Tolerance, Keyed Row Alignment with duplicate-key reporting, Diff CSV export, and synchronized grids.
-
๐ณ Structured Tree Diff (JSON, YAML, XML) & ๐ก๏ธ 7. API Contract Audit (OpenAPI, GraphQL, Protobuf):
- JSONPath & XPath query filtering, Semantic Unordered Array matching, recursive search, XML tag rename detection, and breaking vs warning vs additive contract audits.
-
โก Hex & Binary Inspection Studio:
- Virtualized
QTableView+ Memory-Mapped I/O (MMF): Inspects multi-GB binaries with byte-delta highlighting, Go-to-Offset, Find Hex/ASCII patterns, and live 8/16/32/64-bit integer Data Inspector.
- Virtualized
-
๐ฟ Git Working-Tree Changeset Browser (
Ctrl+G) & Live Hunk Staging:- Browse modified, staged, untracked, and conflicted files across any Git repo (
Ctrl+Gor Home button) and openHEAD vs Working Copydirectly. - Stage, unstage, or discard individual hunks via
git apply --cached, plus 1-click Tools โ Configure as Git Difftool & Mergetool.
- Browse modified, staged, untracked, and conflicted files across any Git repo (
-
โ Command Palette (
Ctrl+K) & Headless CI/CD Automation:
- Universal keyboard launcher (
Ctrl+K/Ctrl+Shift+P) across all 10 studios, active view actions, Git tools, and Recent Comparisons. - Headless
--folder-diff,--diff, and--contract-diffwith HTML/JSON reporting and exit codes (0 = match,1 = mismatch/breaking,2 = error), plus CLI Stdin Diffing (--diff - <file>), Write-Ahead Log (WAL) crash recovery, and Windows 11 Mica Alt Fluent Light shell integration.
Before getting started, review the following requirements:
- Standalone Windows installer: Designed for Microsoft Windows and does not require a separate Python installation.
- Running from source: Requires Python 3.10 or later.
- Python dependencies: Install the required packages listed in
requirements.txt. - Source-based setup: Ensure Python and
pipare available in your environment before installing the project dependencies.
- Double-Click Standalone Installer:
Run
dist/Setup_diff_and_compare_tool.exe- Full native Windows installation wizard with ultra-compressed single executable payload.
- Automatically registers Windows Explorer right-click context menu, App Paths (
Win+R), UserPATH, Start Menu & Desktop shortcuts, and Windows "Installed Apps" uninstaller. - Installs to
%LOCALAPPDATA%\Programs\diff_and_compare_tool(requires no Administrator privileges).
- 1-Click Batch Installer:
Double-click
Install.cmdinsidedist/diff_and_compare_installer/orwindows/. - PowerShell Script:
.\windows\Install-DiffAndCompare.ps1
What gets installed & registered:
- Deploys application to
%LOCALAPPDATA%\Programs\diff_and_compare_tool. - Windows Explorer Context Menu: Right-click any file, folder, or directory background (
Compare with diff_and_compare_tool,Select Left,Select Right). - Windows App Paths: Launch from
Win+Ror CLI simply by typingdiff_and_compare. - Windows Installed Apps: Full entry in Windows Settings / Control Panel "Installed Apps" with icon, version, publisher, and native uninstaller (
unins000.exe). - Shortcuts: Start Menu and Desktop shortcuts.
- User PATH: Adds directory to user environment
PATH.
To uninstall anytime: run unins000.exe, or double-click Uninstall.cmd, or remove via Windows Settings -> Installed Apps.
# Register all Windows features (Context Menu, App Paths, Installed Apps entry)
python app/main.py --install-all
python app/main.py --uninstall-all
# Shell Context Menu only
python app/main.py --install-shell
python app/main.py --uninstall-shell
# Export customized .reg file for current install
python app/main.py --export-reg Register-MySetup.reg# Configure as git difftool (using standalone binary or PATH)
git config --global diff.tool diff_and_compare
git config --global difftool.diff_and_compare.cmd "diff_and_compare.exe --diff \"\$LOCAL\" \"\$REMOTE\""
# Or configure using Python source:
# git config --global difftool.diff_and_compare.cmd "\"python\" \"/path/to/diff_and_compare_tool/app/main.py\" --diff \"\$LOCAL\" \"\$REMOTE\""
# Configure as git mergetool (using standalone binary or PATH)
git config --global merge.tool diff_and_compare
git config --global mergetool.diff_and_compare.cmd "diff_and_compare.exe --merge \"\$LOCAL\" \"\$BASE\" \"\$REMOTE\" --output \"\$MERGED\""
# Or configure using Python source:
# git config --global mergetool.diff_and_compare.cmd "\"python\" \"/path/to/diff_and_compare_tool/app/main.py\" --merge \"\$LOCAL\" \"\$BASE\" \"\$REMOTE\" --output \"\$MERGED\""# Folder comparison with HTML report and automated exit code (0 = match, 1 = diff)
python app/main.py --folder-diff src_v1/ src_v2/ --report-html folder_audit.html --exit-code
# File comparison with HTML report
python app/main.py --diff config_prod.json config_staging.json --report-html config_diff.html --exit-code# Build binaries for host architecture
python build.py
# Build binaries AND package into turnkey installer folder & release ZIP
python build.py --package
# Build specifically for Windows ARM64
python build.py --target-arch arm64- Native Code Signing & Winget Distribution: Signed Windows installer releases distributed via
winget. - WebAssembly / GitHub Action Marketplace Packaging: Turnkey GitHub Action wrapper around headless
--folder-diffand--contract-diffgates. - Audio & Geospatial Studio Plugins: Optional waveform spectral diffing and GeoJSON/Shapefile layer comparison.
-
Product Website & Feature Explorer: Interactive Fluent Light landing page, commercial comparison matrix, and CLI reference.
-
Functionality & User Guide: Exhaustive manual detailing all features, workflows, and keyboard shortcuts.
-
System Architecture & Design Specification: Deep technical architecture, algorithms (Tree-sitter AST, Myers, DMP, Moved Blocks, Keyed Grid, MMF, VFS, Secret Scrubber), and Windows 11 shell integration.
-
Windows 11 Context Menu Setup: MSIX Sparse package integration for top-level Windows 11 context menu.
diff_and_compare_tool is a free, open-source project created and maintained for developers, engineers, and power users.
If this tool saves you time, streamlines your merge conflicts, or enhances your workflow, please consider sponsoring its development:
- ๐ New Studio Engines: Developing further specialized format comparisons (e.g. 3D meshes, audio waveform, geospatial GIS diffing).
- ๐ Windows Code Signing Certificate: Eliminating Windows SmartScreen warnings on installer executables.
- โก Continuous Maintenance & Performance: Keeping AST grammars, PySide6, and BLAKE3 acceleration up to date.
- ๐ Documentation & CI/CD Pipelines: Automated multi-architecture release packaging (x64 and ARM64).
Even if you cannot sponsor financially, you can support the project by:
- โญ Starring the repository on GitHub.
- ๐ข Sharing it with colleagues and developer communities.
- ๐ฌ Joining GitHub Discussions and submitting feedback or pull requests!
Contributions are welcomed!
- Please read our Contributing Guide for details on code style, architecture, and testing.
- Please review our Code of Conduct for community guidelines.
- To report a security vulnerability, refer to our Security Policy.
This project is licensed under the GNU General Public License v3.0 (GPLv3) with trademark reservations for the Diff & Compare Pro brand and assets.
