Markdown to Word Converter
Paste Markdown or pick a .md file up to 10 MB and download a .docx that uses Word's built-in Heading 1-6 styles, real Word tables, bulleted and numbered lists, monospaced code blocks and clickable links. The whole conversion runs in your browser, so your Markdown is not uploaded.
Paste or drop Markdown and the layout preview appears here.
The preview renders this Markdown as a web page, with the same renderer as our Markdown to HTML tool, so you can confirm the structure: heading levels, lists, tables, code blocks. It is not Word's layout engine, so fonts, line spacing and where pages break have to be judged in Word itself.
🔒 The .docx is written in your browser, so your Markdown is not uploaded and does not leave your device; the preview is sanitized and rendered in a sandbox.
How to use
- Paste your Markdown or choose a file: Type or paste into the Markdown (live preview) box — it opens with a short example you can replace. Or drop one .md, .markdown or .txt file onto the box above it, up to 10 MB. Drop several files at once and the whole batch is refused with a count, so add one at a time.
- Set the title, page size and fonts: Fill in Document title / file name, or leave it empty to use the first level-1 heading. Page size is A4 by default and can be Letter; East Asian font and Latin font control the two font slots Word keeps; Images, GFM and Code block shading change how the body is built.
- Convert and save the .docx: Click Convert to Word, then use Download in the result card. On a phone, Save to device opens the system share sheet when the browser offers file sharing and otherwise downloads the file straight away. Editing anything afterwards discards the result, so convert again.
How this Markdown to Word converter builds the .docx
Markdown to Word converts pasted Markdown or one .md, .markdown or .txt file into an editable .docx in your browser. The input limit is 10 MB of UTF-8 Markdown. With GFM enabled, headings, tables and lists become Word elements; remote images are not fetched for the document. Click Convert to Word, then download the result.
The technical path is short and entirely local. The page reads your file with the browser's own file API, parses the text with the marked 12.0.2 lexer, and assembles a standard Office Open XML package with docx.js 9.5.1 — the same container Word, WPS Office and Google Docs all read. There is no server step, so your Markdown is converted without uploading it to any online service, and the page is free with no account to create. Converting is a deliberate click rather than a live export — press Convert to Word and the finished file appears in the result card below.
There are two ways in and both end in the same editor box. You can paste or type Markdown directly, and the box already holds a short example when the page opens, which is why the preview beside it is not blank. Or you can choose a single .md, .markdown or .txt file: the page reads the whole thing as text into that same box, and if Document title / file name is still empty it also puts the file name there without its extension. Once a file is attached the drop zone is no longer shown, so to swap files click the ✕ on the file row first — the text already in the editor stays where it is.
The result is a snapshot, not a live export. Editing the text, changing any setting, swapping the file or pressing Clear discards the .docx that was generated before, so you cannot download a file that disagrees with the settings on screen. The download is named after the resolved document title: what you typed in the title field, or else the first level-1 heading, or else document. The document title keeps punctuation and its full length after leading and trailing whitespace is removed; only the download name replaces reserved characters with underscores and truncates the stem to 80 characters. Type a:b and you download a_b.docx from a document still titled a:b.
Want a web page instead of a document? Markdown to HTML Converter runs the same Markdown through the same renderer and hands back HTML.
What survives the trip into Word, and what changes
Structure is mapped onto Word's own features rather than faked with formatting. Headings become the built-in Heading 1 to Heading 6 styles, so you can restyle a whole document from Word's style gallery afterwards; note that docx.js writes those styles in its own look, Heading 1 at 16 pt and Heading 2 at 13 pt, both in blue rather than black. Bold, italic, strikethrough and inline code are real character formatting. Links become genuine external hyperlinks with Word's Hyperlink style, and reference-style links resolve too, while the definition line itself does not appear in the document.
A GFM table becomes an editable Word table: the header row is bold and marked to repeat across page breaks, the :-- / :-: / --: markers set per-column alignment, the table spans the full text width, and bold, inline code, links and inline images inside cells are kept. Bulleted lists use Word's own bullets, numbered lists use real numbering, and each new top-level list restarts at 1. Task list items get a ☑ or ☐ character at the start of the line; those are ordinary characters, not Word checkbox controls, so you cannot tick them in Word. Chinese, Japanese, Korean text and emoji come through unchanged.
Some things deliberately come out differently, and it is worth knowing which before you send the file to anyone. Code blocks are monospaced but have no syntax highlighting — colour is not part of the mapping. A heading inside a blockquote keeps the quote decoration but is an italic paragraph, not a Heading style. A code block nested inside a list item is flattened into that item's own paragraph as plain text. A top-level numbered list that starts at 5. still displays as 1. in Word, because the numbering definition starts at 1. Inline and block HTML is stripped down to its text; a tag carrying no text at all, such as a line-break tag or an HTML comment, disappears entirely. YAML front matter is not recognised and is rendered as ordinary body text, and a footnote definition line is dropped.
| In your Markdown | In the .docx |
|---|---|
| # to ###### headings | Word's built-in Heading 1-6 styles |
| GFM table | Real Word table, bold repeating header, column alignment |
| - and 1. lists | Word bullets and numbering, each top-level list restarting at 1 |
| - [x] task item | A ☑ or ☐ character, not a tickable checkbox |
| Fenced code block | One paragraph per line in Consolas, optional grey shading, no highlighting |
| > blockquote | Indented italic paragraphs with a grey rule down the left |
| data: PNG / JPEG / GIF / BMP | Embedded picture, scaled to at most 600 px wide |
| http(s) or relative image | A placeholder line, or a link line in Turn into a link line mode |
How each Markdown element lands in the Word document.
Why an image can turn into a placeholder line
Only inline images written as a data: URL in PNG, JPEG, GIF or BMP are actually embedded, and only in the Embed inline images (data:) mode. Images pointed at by an http(s) address or a relative path are not fetched while the .docx is written — that is the direct cost of keeping everything on your device and making no outside request for your content. Tested here, a data: WebP and a data: SVG are not embedded either, because only those four formats are recognised. An embedded picture is scaled down to at most 600 px wide, roughly the text width of an A4 page with one-inch margins, and a picture narrower than that is not enlarged.
Anything that is not embedded leaves one placeholder line where the image was — and that line is written in Chinese by the conversion engine, which is a known defect of this page rather than something you did wrong. The notice counts non-data image syntax in the Markdown, including syntax inside code blocks. It does not count unsupported data: images or reference-style images, so it is not an exact count of placeholders. There are two clean ways around the placeholder itself: switch Images to Turn into a link line and write alt text for every image, because an image with no alt text puts the Chinese word for picture in that line instead; or leave the mode on Embed inline images (data:) and give each image a valid base64 PNG, JPEG, GIF or BMP data: URI. If you only find the Chinese line after the fact, select it in Word and delete or replace it.
The three modes behave less symmetrically than their names suggest. Ignore images is not silent: it leaves the same placeholder line as the embed mode, which is why the notice appears in both. Turn into a link line embeds nothing at all, not even a valid data: image — and because it writes the address as text, a large data: picture becomes one extremely long line of base64 in your document. Use link mode for documents whose images live on the web, and embed mode for documents whose images are already inlined.
Page size, fonts and the default layout
Page size is A4 by default, 11906 by 16838 twips in portrait, with Letter at 12240 by 15840 twips as the alternative. The body text defaults to 12 pt with about 1.3 line spacing and 6 pt of space after each paragraph, which is a readable report setting rather than Word's own blank-document default. Code blocks are set in Consolas with no space above or below, and Code block shading adds a light grey background behind each line; turn it off and the monospaced font stays. Blockquotes get a grey rule down the left edge, an indent of one step per nesting level, and italic text.
Word keeps a separate font slot for Chinese, Japanese and Korean characters, and that is what East Asian font sets. This converter writes both slots on every run of text, so Latin letters take the Latin font — Calibri by default, with Arial, Times New Roman and Georgia available — while CJK characters take the East Asian font, Microsoft YaHei by default, with SimSun, DengXian, SimHei and KaiTi available. Setting only the Latin font leaves Word to choose a fallback for CJK characters. In a document that is entirely Latin letters the setting makes no visible difference.
Fonts are referenced, not embedded. If you pick KaiTi and the person opening the file has not installed KaiTi, Word will substitute something else, and this tool cannot change that because it does not embed font subsets. Nothing identifying you is written either: the author field in the file properties is left at the converter library's own default placeholder, not your name.
Limits, and what this converter will not do
One source at a time, up to 10 MB. That 10 MB is the size of the input Markdown in UTF-8 bytes, not of the finished document; a file over the limit is refused by the drop zone, and pasted text over the limit stops before the conversion starts with a message naming the limit. Only .md, .markdown and .txt are accepted. A file that is not really text is caught after it has been read: the page decodes the whole file as UTF-8 and refuses it if it contains a null character, or if replacement characters make up more than a tenth of the first few thousand characters. That is a decision based on the content, not a guess from the extension, so a PNG or a .docx renamed to .md is stopped here.
Text is decoded as UTF-8 only, with no encoding detection and no encoding option. A GBK or Big5 .md will not report a wrong encoding; it will decode into replacement characters, which either trips the check above or ends up as garbled text inside the .docx, so re-save such a file as UTF-8 first. There is no cancel button once a conversion starts. Nested lists are capped at nine levels, with anything deeper flattened to the ninth. And because Markdown has no syntax for them, the converter produces no table of contents, page numbers, headers, footers, manual page breaks, columns or typeset equations, and LaTeX is left as plain text.
The preview is for structure, not for pagination. It renders the same Markdown as a sanitized web page inside a sandboxed frame, so it confirms your heading levels, lists, tables and code blocks — but it is not Word's layout engine, and fonts, line spacing and where pages break have to be judged in Word itself. One privacy detail follows from that: an http(s) image you wrote in the Markdown is loaded by the preview frame, so its address becomes visible to whoever hosts it, even though your Markdown text stays on your device and the .docx step fetches nothing. If the preview fails to render, the conversion still works.
Going the other way — a Word file you want back as Markdown — is Word to TXT Converter, whose Markdown output is this page's input.
How this tool is checked
- The logic behind this tool is covered by 37 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
- Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
- Your files are processed in your browser and are never uploaded to our server.
- Formulas, figures and definitions are checked against the sources listed at the end of this page.
Frequently asked questions
- Is my Markdown uploaded to a server?
- No. The file is read, parsed and packed into a .docx inside your browser, with no server step for your content. Nothing is stored either, so closing or reloading the page leaves nothing behind. The one exception to be aware of: an http(s) image address you write in the Markdown is requested by the live preview frame, so that host sees the request.
- Which Markdown features carry over into the Word document?
- Headings become Word's Heading 1-6 styles, GFM tables become real Word tables, lists become Word bullets and numbering, and bold, italic, strikethrough, inline code and links all survive. Code blocks arrive monospaced with optional grey shading. Task items arrive as a ☑ or ☐ character rather than a checkbox you can click.
- Why are my images missing from the .docx?
- Because only inline images written as a data: URL in PNG, JPEG, GIF or BMP are embedded. Images with an http(s) or relative address are not fetched while the document is written, which is what keeps the conversion entirely on your device. Convert such a picture to a data: image first, or switch Images to Turn into a link line to keep the address in the text.
- There is a line of Chinese text in my Word file — what is that?
- That is the placeholder the conversion engine writes where an image could not be embedded, and its wording is hard-coded in Chinese. It is a known defect of this page. Avoid it by using Turn into a link line, or by inlining the image as a data: URL; if the file is already generated, select the line in Word and delete it.
- Why does my numbered list restart at 1 instead of 5?
- Because a top-level numbered list takes its numbers from the document's numbering definition, which always starts at 1. Writing 5. and 6. in the Markdown still produces 1. and 2. in Word. Change the starting number in Word's numbering options after converting, or renumber the paragraph there.
- Will Chinese or Japanese text turn into boxes in Word?
- CJK rendering depends on fonts installed on the device opening the document; this converter records an East Asian font but does not embed it. Every run of text carries that East Asian slot alongside the Latin one, so pick the face you want under East Asian font — and prefer one that is commonly installed where the file is going, because Word substitutes another when the one named is missing.
- Does the finished .docx look exactly like the preview?
- No, and it is not meant to. The preview renders your Markdown as a web page to confirm structure: heading levels, lists, tables, code blocks. Word applies its own layout engine, so fonts, line spacing and page breaks differ. Check structure in the preview and typography in Word.
- Can I convert a Word document back to Markdown here?
- Not on this page — it only goes from Markdown to Word. A .docx or .pdf is rejected by the file-type check. If renamed to .md, it is read as UTF-8 and rejected when the binary-content check detects it. For the reverse direction, use the Word to TXT tool, whose Markdown output keeps heading levels, lists, emphasis and link addresses.
Related tools
Cite this tool
Using a result in a report, paper or assignment? Copy a ready-made reference.
Gingertool. (2026). Markdown to Word Converter [Online tool]. Retrieved December 2, 2026, from https://gingertool.com/en/file-tools/markdown-to-word/
“Markdown to Word Converter.” Gingertool, December 2, 2026, https://gingertool.com/en/file-tools/markdown-to-word/. Accessed December 2, 2026.
@misc{gingertool-markdown-to-word,
author = {{Gingertool}},
title = {Markdown to Word Converter},
year = {2026},
url = {https://gingertool.com/en/file-tools/markdown-to-word/},
note = {Accessed: 2026-12-02}
}