Markdown to DOCX converter

Open a .md file (or paste Markdown) and get a .docx with Word heading styles, numbered and bulleted lists, tables, hyperlinks and code blocks. No Pandoc to install and no upload: the file is built in your browser.

Open a file: (or drop it on this box) ·

Want to see it rendered first? Use the Markdown viewer. Need a PDF? Markdown to PDF.

What carries over to Word

MarkdownIn the .docx
# Title to ######Heading 1 to Heading 6 styles
The navigation pane and Insert › Table of Contents work.
**bold**, *italic*, ~~strike~~Bold, italic, strikethrough
[text](https://…)Clickable hyperlink
Links to #a-heading jump to that heading (a bookmark).
- item, 1. itemReal Word bullet and numbered lists, nested up to 9 levels
Each numbered list restarts at its own first number.
- [ ] todo, - [x] done☐ and ☒ boxes
| a | b | tablesWord table with a bold, shaded header row that repeats on each page
Left, center and right column alignment kept.
Fenced and indented codeConsolas on a light gray block, tabs as 4 spaces
> quoteIndented paragraph with a left border
![alt](https://…)Embedded image, scaled to the page width
If the image host blocks cross-site reads, a gray [alt] placeholder.

Not converted: raw HTML tags are dropped and their text kept; footnotes, math ($…$) and Mermaid diagrams stay as plain text. Code is not syntax-colored.

How we checked the output

We converted the Express and marked README files plus an edge-case file (nested ordered and bulleted lists, task lists, nested quotes, an aligned table, in-page links) and opened each .docx with LibreOffice Writer 26, python-docx and mammoth: headings came back as Heading styles, lists as numbered list paragraphs, and the table with its alignment. Word, Google Docs and Pages read the same Office Open XML format.

Why not just paste the rendered Markdown into Word?

Copying from a preview pastes web formatting: headings arrive as big bold Normal text (no navigation pane, no table of contents), lists can turn into indented paragraphs, and code picks up the page's fonts and colors. A converted file uses Word's own styles, so changing the Heading 1 style restyles every heading at once. The other route, Pandoc (pandoc README.md -o README.docx), works well if you are happy to install it; this page needs nothing installed.

Markdown to Word from code

This page uses two MIT-licensed npm packages, marked for parsing and docx for writing the file, and both run in Node too. If what you need is a PDF from a script instead, skip Word: render the Markdown to HTML and send it to the Shotmint API, POST https://shotmint.creasework.com/v1/pdf with {"html": "…"}, to get a PDF with selectable text (1 credit; €5 buys 2,000, credits never expire). The Markdown to PDF page has a complete script.

Get 25 free renders a month API docs

FAQ

Is my Markdown uploaded? No. Parsing and the .docx file are made in your browser; this page sends nothing to a server. Only images in your Markdown are downloaded, by your browser, from where they are hosted.

Why did an image become [alt text]? Your browser can only embed an image if its host allows cross-site reads (most CDNs and GitHub's raw URLs do; many sites don't), and a relative path like ./img/logo.png only exists next to the file on your computer. Insert those images in Word afterwards.

Can I go the other way? Yes: Word to Markdown converts a .docx back to Markdown.

Related: Markdown to Word, Markdown to HTML, Markdown to PDF, Markdown editor, Word to Markdown, Word to HTML, Word to PDF, HTML to Word, HTML to Markdown.

Related tools

DOCX to Markdown · PDF to DOCX · HTML to DOCX · DOCX to PDF Converter · DOCX to HTML · PDF to Markdown · Markdown to PDF · Google Docs to Markdown · Markdown table generator · CSV to Markdown table · HTML to Markdown · Markdown to Word · Markdown to HTML · Website to Markdown · Markdown Table to CSV Converter · Markdown Viewer · Online Markdown Editor with Live Preview · URL to Markdown · all free tools