ToolsTray

Star a tool to keep it here.

Markdown to Word (DOCX)

Markdown to Word, done properly: paste your notes and download a real .docx that Word, Google Docs or Pages will edit. Headings map onto Word's own Heading 1 to 6, code lands in Courier New.

24 lines · 359 characters

Preview

Document title

A short paragraph with bold, italic, and inline code, plus a link.

Section

  • First point
  • Second point
    1. Nested ordered item
    2. Another nested item

A blockquote for emphasis.

Item Qty
Apples 3
Pears 5
function hello() {
  return "world";
}

7 blocks — h1 · p · h2 · list (two levels) · blockquote · table · pre

View

Page

from the first heading, editable before the download

The file this builds

—

One .docx, A4, built on this device

What lands in Word

Headings2Word's Heading 1 to 6 styles
Lists4Word numbering, lettered when nested
Tables1the header row repeats on every page
Code1Courier New on a grey ground
Links1Word hyperlinks
Pictures0embedded from the document
PageA411906 × 16838 twips, as Word measures it

How to use

  1. Drop your notes into the Markdown pane, replacing the sample that loads with the page.
  2. Use the View switch under the panes to go Editor, Split or Preview. On a wide screen, drag the divider between the panes instead.
  3. Choose A4 or Letter, and press Use a template .docx if your team has a house style; the cards under the preview say what lands where.
  4. Press Download. The document is assembled in a worker and named after your first heading, or the name you type.

About this tool

Markdown to Word is the handoff nobody enjoys doing by hand. You drafted in Markdown because it is quick, and now a reviewer wants to leave tracked changes in Word. Paste the Markdown here and the strip under the preview already says how big the file is, because it is built while you pause; press Download and you get a real Open XML file, named after your first heading, that opens for editing anywhere.

The mapping is the useful part. A single # becomes Word's built-in Heading 1 style, ## becomes Heading 2, on down to ###### and Heading 6. That is what fills the navigation pane and makes an inserted table of contents work without touching a thing. Bullets and numbered lists arrive as genuine Word lists, so pressing Enter at the end of one continues it.

Code keeps its own look. Fenced blocks and inline code are set in Courier New, and a block sits on a pale grey shade so it reads as code at a glance. Blockquotes indent a quarter inch with a grey rule down the left edge. Tables come in at full page width with the header row bold and flagged as a header, which is what makes Word repeat it when a table spills onto the next page. Links stay real hyperlinks in Word's Hyperlink style.

It is aimed at people who write in Markdown and hand off to people who never will. Use a template .docx takes the styles and the theme's fonts and colours from your team's own Word file, so the download opens already in house style, and a reload keeps the template on this device. Pictures written inline as PNG or JPEG data URIs are embedded; one that points at the web lands as its alt text, and the page says so before you download.

What the built-in sample turns into

Open the page and the editor already holds a short sample: a title, a paragraph carrying bold and italic and a link, a two-level list, a blockquote, a small table of apples and pears, and a JavaScript function in a fenced block.

Press Download and open the file in Word. The title comes in as Heading 1 and Section as Heading 2. The two nested items under Second point are lettered a. and b. rather than numbered, because the second level of a Word list uses letters. Item and Qty sit in bold across the top of the table, and the hello() function is a Courier New block on grey.

Good to know

  • Pictures that point at a file or a URL do not come across. A .docx that has to survive being emailed cannot go and fetch them, so what lands is the alt text in italics; inline PNG and JPEG data URIs are embedded.
  • A template gives its styles and its theme, not its page size or margins, which belong to the section rather than the styles.

Frequently asked questions

Will Word's navigation pane and table of contents pick up my headings?

They will. Headings use Word's built-in Heading 1 through Heading 6 styles rather than hand-set bold text, and those styles are exactly what the navigation pane and the Insert Table of Contents command read.

Can I open the file in Google Docs?

Upload document.docx to Drive and open it with Docs. The heading styles map onto Docs' own Heading 1 and Heading 2, so its outline sidebar fills in the same way Word's does.

What happens to my code blocks in Word?

They land as Courier New paragraphs on a pale grey shade, with each line break kept as a soft break inside one paragraph. Selecting a whole block and changing its font therefore hits every line at once.

Why is my nested numbered list lettered a, b, c?

Word's list levels go digits, then letters, then roman numerals, and the file asks for that arrangement so nesting stays readable. Change it from Word's multilevel list menu if you want digits all the way down.

Do bold and strikethrough survive the conversion?

Bold carries. So does italic, and so does the double-tilde strikethrough, all as genuine character formatting you can select and switch off in Word.

Can I convert a folder of .md files in one go?

One document at a time. There is a single editor and a single Download DOCX button here, so a batch job is better served by something like Pandoc on your own machine.

Missing something in Markdown to Word (DOCX)? Suggest a feature →

Tell someone who needs this.