Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>VSCode DOCX ViewerNew to Visual Studio Code? Get it now.
VSCode DOCX Viewer

VSCode DOCX Viewer

Tylt LLC

|
10 installs
| (0) | Free
View .docx files natively in VS Code — no external apps needed
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft