DOCX Viewer
View .docx files directly inside VS Code. No external apps, no conversion tools, no nonsense.
Features
- Opens
.docx files as rendered HTML in a VS Code tab
- Headings, paragraphs, tables, lists, links, blockquotes
- Embedded images (inline base64 — nothing leaves your machine)
- Respects VS Code light and dark themes
- Auto-refreshes when the file changes on disk
- Locked-down Content Security Policy — no scripts, no external requests
What it doesn't do
This is a viewer, not an editor. It renders the document content faithfully using mammoth.js, which focuses on semantic content over pixel-perfect layout reproduction. Complex formatting (text boxes, SmartArt, precise spacing) may not render exactly as Word shows it.
Install
From the Marketplace
Search for "DOCX Viewer" in the VS Code extensions panel, or:
ext install TyltLLC.docx-viewer
From source
git clone <repo-url>
cd docx-viewer
bun install
bun run build
bun run package
code --install-extension docx-viewer-*.vsix
Usage
Open any .docx file in VS Code. That's it.
If you want to switch between the DOCX viewer and the hex/binary view, right-click the file tab and choose Reopen Editor With....
License
MIT