How to convert Markdown to Word
- Paste Markdown into the editor, open a
.mdfile, or drop one anywhere on this page. - Check the preview. Read shows the document with a contents list built from its headings.
- Press Download Word. The
.docxfile is built in this tab and saved to your downloads, named after the file you opened, or else its first#heading. - Open it in Microsoft Word, LibreOffice Writer or Pages, or upload it to Google Drive and open it with Google Docs.
How Markdown maps to Word
| In the Markdown | In the Word file |
|---|---|
The top heading level (usually #) | Heading 1, then Heading 2 to 4 for the levels below |
| Paragraphs | Normal text, Calibri 11 pt |
**bold**, *italic* | Bold, italic |
~~struck~~ | Plain text: the strike is dropped |
- item, 1. item | Word bullets and numbering, nested up to nine levels, numbered lists keeping their first number |
- [x] done | A list item that starts with ☒ (☐ when it is not done) |
| Tables | A Word table, columns sized to their text |
> quote | Indented italic text |
Fenced code and inline code | Consolas, with code blocks on a light grey background |
[text](url) | A clickable hyperlink for web, email and phone links; a relative link becomes plain text |
--- | A thin rule across the page |
| Images | The image's alt text in square brackets |
YAML front matter at the top of the file is left out, and so is raw HTML.
Styles, a table of contents and page size
Because the headings use Word's built-in heading styles, the rest of Word works on them:
- The Navigation pane lists them, so you can jump through a long document.
- References → Table of Contents builds a contents list from them.
- Changing the Heading 1 style changes every top-level heading at once, which is the quickest way to put the document in your house style.
Pages are US Letter. For A4, change it in Word under Layout → Size.
Converting Markdown to Word with Pandoc
Pandoc does the same from the command line:
pandoc notes.md -o notes.docx
Add --reference-doc=house-style.docx to take the styles, margins and page size from a Word file of your own. Pandoc also reads .docx, so pandoc notes.docx -o notes.md turns a Word document back into Markdown.
Your file stays on your device
The converter is JavaScript that does all of its work in this browser tab.
- The Word file is built in your browser from the text in the editor. No request carries your text, which you can confirm in the browser's network panel. Like every page on this site, the page records an anonymous visit, which sends its own address and nothing you open.
- The text is kept in this browser's local storage, so it is still there when you come back, here or in the Markdown viewer. Clear removes it.
- The file carries nothing we added: no watermark, no footer, no link back to this site.
- Images with a full
https://address load from their own servers, as they would in any viewer.