Markdown to Word Converter
Operator: Abdulla Al Fahad. How tools are built and checked
Markdown is quick to write, but the people who need your document often expect a .docx. Pasting Markdown into Word leaves the asterisks, pound signs and pipes in place. The Markdown to Word Converter parses the text the way a Markdown renderer does and writes a Word file where a line starting with ## is a Heading 2, a line starting with - is a bullet, **bold** is bold and a pipe table is a real table.
The flavour is CommonMark plus the GitHub extensions people use every day: fenced code blocks, task lists, strikethrough, pipe tables, autolinks and bare URLs. That covers READMEs, notes exported from Obsidian or Notion, documentation sources and the Markdown that chat assistants produce. A YAML or TOML front matter block at the top of a file is recognised and removed, so a blog post source converts without its metadata becoming the first paragraph.
Key features
- Parses ATX and setext headings, emphasis, strikethrough, inline code, fenced code blocks, blockquotes and horizontal rules.
- Nests bulleted and numbered lists by indentation and turns task-list boxes into ☐ and ☑.
- Builds Word tables from GitHub pipe tables, with the first row as the header.
- Resolves inline, reference-style and shortcut links as well as bare URLs and autolinks.
- Strips YAML or TOML front matter and converts raw HTML blocks and inline tags with the HTML rules.
- Reports skipped image references and names the document after its first heading when you paste.
How Markdown syntax maps to Word styles
Headings come from # to ###### lines and from setext underlines (a line of = or - under text). # and ## keep their level; ### and deeper are written as Heading 3. Paragraph lines are joined with spaces; a line ending in two spaces or a backslash forces a line break. Emphasis uses * or _ for italic, ** or __ for bold, *** for both, and ~~ for strikethrough. Underscores inside a word, as in snake_case, are left alone.
Lists nest by indentation: a - or 1. line indented so that it starts under the text of the item above becomes a sub-item. Task boxes [ ] and [x] turn into ☐ and ☑. Every ordered list is renumbered from 1 by Word, so the numbers you typed do not matter. Fenced code blocks (``` or ~~~) become code blocks that keep every line break and indentation; `inline code` becomes monospace text. Blockquote lines starting with > become indented paragraphs. Pipe tables need the header row and the separator row of dashes; the first row becomes the Word table's header and the alignment colons are ignored.
Links work in all three Markdown forms: [text](url), reference style [text][id] with a [id]: url definition anywhere in the document, and bare URLs or <angle-bracket> autolinks. Images are not embedded; the converter counts the  references and reports them. Indented code blocks (four leading spaces) are deliberately not supported, because pasted notes are often indented and would otherwise turn into code. HTML blocks and inline tags such as <br>, <b> and <a> are converted with the same rules as the HTML to Word tool.
How it works
The text is split into lines and read in one pass. Each line is tested for the block it starts: a code fence, a heading, a horizontal rule, a blockquote marker, a list marker, a table header followed by its separator row, or an HTML block. Everything else is paragraph text that is joined until a blank line or another block appears. List items and blockquotes collect their inner lines and parse them again with the same rules, which is how nesting works.
Inside each block, an inline scanner handles escapes, code spans, links, autolinks, emphasis delimiters, inline HTML and character entities, producing text runs with bold, italic, strike, code and link attributes that the Word writer turns into formatted runs.
Common use cases
- A developer turns a project README into a Word document for a client who does not use GitHub.
- A consultant drafts a report in a Markdown note app and needs a .docx with proper heading styles for the deliverable.
- A student converts lecture notes with nested bullet points into a document they can format and print.
- A product manager pastes release notes written in Markdown into Word for the company newsletter.
- A writer saves the Markdown output of an AI assistant as a formatted Word file instead of fixing asterisks by hand.
How to use this tool
- Paste your Markdown into the text box and choose Convert text, or drop a .md file, which converts immediately.
- Look for pipes left in the preview text: they mean a table is missing its separator row.
- Check that sub-items are nested under their parents; if they appear as a separate list, indent them further in the source and convert again.
- Download the .docx, or open it in the Word editor to adjust formatting before saving.
Example
Markdown input
## Phases
1. Research
2. Build
- Prototype the importer
- [x] Review with the team
| Phase | Weeks |
| --- | --- |
| Research | 2 |
See the [brief](https://example.com/brief).Word document structure
Heading 2: Phases
Numbered 1: Research
Numbered 2: Build
Bullet: Prototype the importer
Bullet: ☑ Review with the team
Table (header row): Phase | Weeks
Research | 2
Paragraph: See the [link]brief[/link].Tips for best results
- Put a blank line before and after lists, tables and code blocks. Markdown that runs straight from a paragraph into a list is parsed, but a blank line makes the result predictable.
- Indent a sub-item so it starts under the first letter of the parent's text: two spaces under a - bullet, three spaces under 1., four under 10.
- A pipe table needs the row of dashes under the header. Without it the lines stay as paragraphs with pipes in them, which you will see in the preview.
- Use fenced code blocks with three backticks. Indented code is treated as ordinary text by design.
- Reference-style links can be defined at the bottom of the file; the definitions are collected before parsing, so order does not matter.
Edge cases to watch
Numbering is rebuilt. Lists are always numbered from 1 in the Word file, so a list that starts at 5 in the Markdown starts at 1 after conversion.
A blank line followed by a paragraph that is not indented ends the list. Text that belongs to a list item must be indented under it, otherwise the next list starts numbering again.
Images are left out. The  references are counted and reported, but no picture is embedded and the alt text is not inserted.
Inline math between dollar signs stays as literal text, and fenced math or Mermaid blocks come through as code, since Word has no equivalent for either.
A line starting with a number and a full stop, such as a year like 2024. followed by text, is read as a numbered list item. That is how Markdown works, so escape the dot (2024\.) if it is not a list.
Footnotes written as [^1] are kept as literal text. Markdown footnotes are not part of CommonMark or the GitHub table syntax this tool implements.
Frequently asked questions
Which Markdown flavour is supported?
CommonMark block and inline syntax, plus the GitHub extensions for pipe tables, task lists, strikethrough and bare URL autolinks. Footnotes, definition lists and math are not converted.
Why did my numbered list start again at 1?
Word numbers each list itself. A list that is interrupted by an unindented paragraph is two lists, and the second one starts at 1. Indent continuation text under the list item to keep one list.
What happens to the front matter at the top of my file?
A block between --- lines (or +++ lines) at the very top is treated as metadata and removed. It does not appear in the Word document.
Are image references turned into placeholders?
No. An  reference produces nothing in the Word file, not even its alt text; the count of skipped images is shown after conversion so you can insert the pictures yourself.