1. Home
  2. Documents
  3. Markdown to Word

Markdown to Word

Turn Markdown into a Word (DOCX) file with styled headings, lists and tables.

Runs in your browser · No upload
Preview
…
Font size
Paper
Margins

The preview shows only sanitized HTML in an isolated frame where scripts cannot run. External images are not loaded.

Your text is converted in this browser and never uploaded.

How to use

  1. Type or paste Markdown on the left, or drop a .md file. Check the result in the preview on the right.
  2. Pick the body font, font size, paper (A4 or Letter) and margins. Turn on heading numbers (1., 1.1.) if you want them.
  3. Press Save as DOCX. The file is named after the first # heading.

How Markdown maps to Word

Markdown In Word
# … ###### Heading 1–6 styles (usable in the navigation pane and tables of contents)
**bold** _italic_ ~~strike~~ Bold, italic, strikethrough
`code` Monospace font (Consolas) with a grey background
[text](https://…) A clickable hyperlink (http, https and mailto only)
- item, 1. item Bulleted and numbered lists, nested three levels and deeper
> quote A left rule and indent
Code block Light-shaded monospace paragraphs, lines and indentation kept
GFM table A Word table with a bold shaded header row and :---: alignment
--- A horizontal rule
- [x] A list with ☑ / ☐ marks

A numbered list that starts at 3. starts at 3 in Word, and every list restarts its numbering. With A4 paper and normal margins the text width is 9026 twips (about 15.9 cm); tables are fitted to it.

  • Pictures are embedded only when they are data: URLs, like ![alt](data:image/png;base64,…) (PNG, JPG, GIF or BMP, scaled down to the text width when larger). The format is detected from the content, not the label.
  • Pictures from external URLs such as https://… or relative paths such as ./a.png are never fetched; they become [Image: alt] text. This tool does not connect to any address, so convert a picture to a data: URL if you need it in the document.
  • Links with other schemes (javascript:, ftp:, file: and so on) keep their text but lose the link.
  • HTML tags inside Markdown are not interpreted as formatting. Only the text between the tags is kept, and the content of <script> is dropped.

Checking the result

Before the download, the generated file is re-opened with a Word reader (mammoth) and the headings, paragraphs and table text are checked to be present in order; only a file that passes is saved. Fonts can still look different in Word: the font name is recorded in the file but not embedded, so a PC without it substitutes a similar font. Calibri ships with Office; the Korean fonts (Malgun Gothic, Batang) ship with Windows.

To save a PDF instead, use Markdown to PDF; to just see how Markdown renders, use Markdown Preview. Open the result in DOCX Viewer, and for the opposite direction (Word to text or Markdown) use DOCX to Text.

Your text is processed in your browser only and is never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.