Markdown to Word
Turn Markdown into a real .docx — headings, lists, tables, quotes, code blocks and links all mapped to Word styles. The file is assembled in this tab; nothing is uploaded.
What maps
- # to ###### → Heading 1–6
- - / 1. → bullet and numbered lists, two levels of nesting
- > → quote block
- ``` → code block, monospaced with grey band
- | a | b | → table with borders and a bold header row
- **b** *i* `c` ~~s~~ → bold, italic, code, strikethrough
- [text](url) → clickable hyperlink
What does not
- Images stay as text — a remote URL is not downloaded, and a relative path has nothing to resolve against.
- HTML inside Markdown is copied as plain text, not rendered.
- Footnotes, math and definition lists are not supported.
The output uses Word's own style names (Heading 1, List Paragraph, Quote), so the navigation pane works and the document can be restyled later without touching the text. The .docx is written as a plain ZIP without compression — a few kilobytes either way, and every Word version reads it.
About Markdown to Word
Turn Markdown into a real .docx, with headings, lists, tables, quotes, code blocks and links mapped onto Word's own styles.
The result is a document you can keep editing
Markdown is not dumped into a single paragraph, and nothing is exported as HTML with the extension renamed. The package carries a styles.xml; headings use Word's built-in "heading 1" through "heading 6", lists use numbering definitions, quotes and code blocks are paragraph styles.
Which means: the navigation pane jumps between headings, theme fonts apply in one click, a table of contents can be generated, and Word's style inspector recognises the structure. What the reader opens is an ordinary document, not a pile of manually bolded paragraphs.
The mapping
#to######→ headings 1–6-and1.→ bullets and numbering, with nesting>→ quote (left rule, grey text, indent)- Three backticks → code block (monospaced, grey band)
| a | b |→ bordered table, bold header row that repeats across pagesbold,italic, inline code,~~strike~~→ the matching character formatstext→ a working hyperlink
No images
Image links are not fetched. A remote URL means a cross-origin request that hands the reader's behaviour to a third party, and a relative path has no base directory here. Image positions stay as a text note; drag the picture in yourself.
For the same reason, HTML embedded in the Markdown is copied as plain text. Rendering it properly would mean shipping a small layout engine in the browser — a different order of magnitude.
The package is an uncompressed zip
A few kilobytes of XML gain nothing from compression, and skipping the dependency means every Word version can read the file. You can edit immediately; on save, Word repacks it its own way.
Table width and borders
Borders are set directly on the table (tblBorders) rather than through a table style, so switching templates cannot make them vanish. Columns split the text width evenly — drag a boundary if you need uneven ones.
Frequently asked questions
Will Word open the generated file directly?
Yes. The package is assembled to the OPC rules: every part has a content type, every relationship target exists, and every rId used in the body is declared. Those three are what produce Word's "unreadable content" message, and each is checked in the tests.
Where did the images in my Markdown go?
Not downloaded, not embedded — the position is kept as a text note. Remote images need cross-origin fetches, which brings privacy questions and a high failure rate; a relative path has no base directory to resolve against.
Will Chinese text come out garbled?
No. Everything is written as UTF-8, with SimSun as the East Asian font and Calibri for Latin text. Change the theme or the styles in Word to switch fonts; the text itself does not need touching.
Can I restyle the tables?
Yes. Borders are set directly rather than through a built-in table style, so borders, shading and column widths are all editable. The header row is marked to repeat across pages, so it follows long tables.
Can it go the other way — Word to Markdown?
Yes, there is a separate page for that. A round trip is not guaranteed: Markdown cannot express columns, headers and footers or footnotes, so those do not come back.
Is my text uploaded?
No. Parsing and packing happen in the browser, and it works offline.