DOCX Compare
Compare two Word documents and produce a tracked-changes redline .docx.
Install
irm https://raw.githubusercontent.com/chayprabs/localtools/main/docx-compare/install.ps1 | iexlocaltools-docx-compare updatelocaltools-docx-compare uninstall
curl -fsSL https://raw.githubusercontent.com/chayprabs/localtools/main/docx-compare/install.sh | bashlocaltools-docx-compare updatelocaltools-docx-compare uninstall
brew install chayprabs/localtools/localtools-docx-comparebrew upgrade localtools-docx-comparebrew uninstall localtools-docx-compare
scoop bucket add localtools https://github.com/chayprabs/homebrew-localtools; scoop install localtools-docx-comparescoop update localtools-docx-comparescoop uninstall localtools-docx-compare
winget install localtools.DocxComparewinget upgrade localtools.DocxComparewinget uninstall localtools.DocxCompare
Opens at http://127.0.0.1:47134 in your browser. Run localtools-docx-compare --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.
Direct download
| Platform | File | Size |
|---|---|---|
| Linux ARM64 | docx-compare-1.0.3-linux-arm64.zip | 14.3 MB |
| Linux x64 | docx-compare-1.0.3-linux-x64.zip | 14.6 MB |
| macOS Apple Silicon | docx-compare-1.0.3-macos-arm64.zip | 14.0 MB |
| macOS Intel | docx-compare-1.0.3-macos-x64.zip | 14.5 MB |
| Windows x64 | docx-compare-1.0.3-windows-x64.zip | 14.4 MB |
SHA-256 checksums are in the release notes; the install scripts verify them for you.
See it
How to use
- Run localtools-docx-compare (or open DOCX Compare from your app menu); it opens in your browser.
- Drop the original .docx and the revised .docx.
- Set the author and date the tracked changes should carry, and tick Ignore case if letter case does not matter, then press Compare.
- Read the inline preview (insertions underlined, deletions struck through) or the Changes tab, then download the redline .docx and open it in Word or LibreOffice.
- To finish a reviewed document, drop it in "Accept or reject all tracked changes". From scripts: localtools-docx-compare a.docx b.docx -o redline.docx --author "Reviewer", and localtools-docx-compare accept redline.docx -o clean.docx.
FAQ
Are these real Word tracked changes?
Yes. The redline contains w:ins and w:del revisions with the author and date you set, so Word and LibreOffice show them in Review and can accept or reject each one. Accepting all of them gives the revised document text; rejecting all gives the original.
What if a document already has tracked changes?
They are accepted first, so the redline shows the difference between the two documents as they currently read. The number of revisions that were accepted is shown with the result.
Are headers, footers, comments, formatting changes and moves shown?
Headers and footers are compared and their changes tracked, including image, link and field changes; unsupported header/footer layouts produce a warning. Body/note hyperlinks and bookmarks are re-anchored where possible; failure produces a warning and can drop all of them. Formatting-only changes are not marked, moved text appears as deletion plus insertion, and comments are not carried into the redline (accept/reject all keeps them). Resolving tracked moves or redlines can change empty paragraphs.
How big can the documents be?
Up to 50 MB per file. Each comparison runs in its own process with a 3-minute deadline; about 2,000 paragraphs compare in roughly 11 seconds. Zip bombs and XML entity bombs are refused.
Is anything uploaded?
No. The tool runs on 127.0.0.1 on your computer and works offline.