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.

Drop files here or choose files
Files stay on your device · the .docx is written in your browser · up to 10 MB per source · or just paste your Markdown
Layout preview (check before converting)

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.

Leading and trailing whitespace is removed before this value is stored in the .docx file properties and used to build the download name. Leave it empty and the first level-1 heading in your text is used; with no level-1 heading at all the file is document.docx. Only the file name is cleaned up — the characters a file system refuses become underscores and the stem is cut to 80 characters — so a:b downloads as a_b.docx while the document is still titled a:b.

Word keeps a separate font slot for Chinese, Japanese and Korean characters. This tool writes that slot alongside the Latin font on every run of text, so CJK characters mixed into your Markdown do not fall back to boxes. In an all-Latin document the setting makes no visible difference. The font has to be installed on the machine opening the file, or Word will substitute another one.

Only inline images written as a data: URL in PNG, JPEG, GIF or BMP are really embedded — a data: WebP or SVG is not. No picture is downloaded while the document is written: an http(s) or relative address is not fetched for it, which is what keeps the conversion on your device. What the modes actually do: embedding and ignoring both leave a placeholder line in place of the image, so Ignore images does not leave the spot empty, while Turn into a link line writes one line holding the alt text and the address, losing nothing.

Code blocks become paragraphs in a monospaced font, with a light grey background behind each line when shading is on. Word gets no syntax highlighting here — no colour, just the monospaced font and the optional shading.

🔒 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

  1. 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.
  2. 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.
  3. 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 MarkdownIn the .docx
# to ###### headingsWord's built-in Heading 1-6 styles
GFM tableReal Word table, bold repeating header, column alignment
- and 1. listsWord bullets and numbering, each top-level list restarting at 1
- [x] task itemA ☑ or ☐ character, not a tickable checkbox
Fenced code blockOne paragraph per line in Consolas, optional grey shading, no highlighting
> blockquoteIndented italic paragraphs with a grey rule down the left
data: PNG / JPEG / GIF / BMPEmbedded picture, scaled to at most 600 px wide
http(s) or relative imageA 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.

How we build and test our tools →

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.

Add this tool to your website

Free for any website, personal or commercial. Paste the code where you want the tool to appear — it works on WordPress, Blogger, Google Sites, Notion and plain HTML.

<div class="gingertool-widget" data-embed="https://gingertool.com/embed/en/file-tools/markdown-to-word/" data-height="640" style="font-size: 13px; line-height: 20px; margin: 6px 0 16px; text-align: left">Markdown to Word Converter &#183; <a href="https://gingertool.com/en/file-tools/markdown-to-word/">Gingertool</a></div>
<script src="https://gingertool.com/embed.js" async></script>

Please keep the credit link below the tool. Embedded tools show no ads.

Step-by-step: Google Sites · Blogger · WordPress · Notion

Cite this tool

Using a result in a report, paper or assignment? Copy a ready-made reference.

APA
Gingertool. (2026). Markdown to Word Converter [Online tool]. Retrieved December 2, 2026, from https://gingertool.com/en/file-tools/markdown-to-word/
MLA
“Markdown to Word Converter.” Gingertool, December 2, 2026, https://gingertool.com/en/file-tools/markdown-to-word/. Accessed December 2, 2026.
BibTeX
@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}
}