Convert Word DOCX to Markdown in 55 ms

Weavon converts a 106 KB Word DOCX file in 54.65 ms and 35.9 MiB RSS, 33.0 times faster than Pandoc 3.13, with lossless round-trip and tracked changes support.

Fast DOCX parsing without bloated memory

  • 54.65 ms106 KB DOCX to JSON median, Pandoc needs 1,805.26 ms
  • 35.9 MiBPeak RSS, Pandoc needs 463.2 MiB
  • 33.0xFaster than Pandoc 3.13 with identical bytes
  • LosslessRound-trip DOCX and PPTX preservation in v0.2.0

Weavon reads styles, tables, footnotes, comments, and embedded media directly from OOXML in pure Rust. It uses 12.9 times less peak memory than Pandoc 3.13 on the 106 KB DOCX benchmark.

Tracked changes, lossless round-trip, and Git diffs

--track-changes=accept
Apply all Word insertions and deletions into clean Markdown.
--track-changes=reject
Discard pending Word revisions and keep the original text.
--track-changes=all
Preserve insertions, deletions, and reviewer comments in output.
weavon extract doc.docx
Produce clean LLM Markdown or JSON Lines chunks in one step.
weavon git-setup
Configure Git textconv so git diff renders readable Word changes.
Lossless round-trip
Preserve OOXML structure and styles across DOCX and PPTX edits.

Known limits for Word conversion

  • When writing new DOCX files from Markdown without --reference-doc, Weavon uses its own clean-room styles instead of Pandoc's GPL reference template.
  • Complex Word macros and ActiveX controls are ignored by design for safety.

Convert Word files from the terminal

  1. Convert DOCX to Markdown

    Convert a Word document to clean GitHub Flavored Markdown and extract media.

    weavon proposal.docx -t gfm --extract-media=./media -o proposal.md
  2. Choose tracked changes mode

    Pass --track-changes=accept, reject, or all when reviewing edited contracts.

    weavon contract.docx --track-changes=all -t markdown -o review.md
  3. Enable Git diffs for Office files

    Run weavon git-setup once so git diff shows readable changes for .docx, .pptx, and .pdf.

    weavon git-setup

Common questions

How fast is Weavon at reading DOCX files?

On the 106 KB DOCX benchmark on Apple Silicon, Weavon 0.2.0 takes 54.65 ms and 35.9 MiB peak RSS compared with 1,805.26 ms and 463.2 MiB for Pandoc 3.13, 33.0 times faster.

Does Weavon support Word tracked changes?

Yes. Pass --track-changes=accept, --track-changes=reject, or --track-changes=all when reading DOCX, or use weavon diff to generate new tracked changes.

Can Weavon diff Word files inside Git?

Yes. Run weavon git-setup to configure Git textconv filters for DOCX, PPTX, and PDF files automatically.

Does Weavon work with Python or Node for batch DOCX conversion?

Yes. Install pip install weavon or npm install weavon to convert DOCX files in process with zero subprocesses.