Word · Conversion

Markdown to Word: how to convert .md to .docx

Markdown files come from AI chats, README files, note apps and documentation. Sooner or later one of them has to become a Word document. Here is what Word can now do on its own, four ways to convert, and what survives each one.

Copying an AI answer into Word has its own guide: How to convert ChatGPT answers to Word. This article starts one step later, with Markdown you already have, as a file or as text, and the question of how to turn it into a proper .docx.

Illustration: a figure carrying a # symbol from loose Markdown symbols to an ordered document with a heading bar and a table

A Markdown file is plain text with a few symbols for structure: # for headings, ** for bold, - for list items, pipes for tables. A Word document stores the same structure as styles: Heading 1, List Bullet, a table object. Converting from Markdown to Word means turning one into the other, so that a heading ends up as a real Heading style that shows in the navigation pane and the table of contents, not as large bold text.

Can you use Markdown in Word?

Partly, and only recently. For most of its history Word had no Markdown support at all: open a .md file and you got the raw text, symbols included, and pasted Markdown stayed plain text.

In October 2026 Microsoft listed Markdown support for Word in its monthly Copilot update. There is no support article for it yet, and how much works depends on where you run Word. Office Watch tested it in early November 2026 and found roughly this:

Headings, bold, italics and lists were converted consistently. Block quotes, code blocks and task lists worked only some of the time, and tables and footnotes were not reliably recognised. Math and diagrams are not part of the feature. So for a short note with headings and bullets, Word itself may now be enough. For anything with tables, code or equations, you still need a converter.

Older versions of Word have one related setting: AutoFormat As You Type (File → Options → Proofing → AutoCorrect Options) can turn *text* into bold and a line starting with - into a bulleted list. It is a typing aid, not Markdown support, and it reads *text* as bold where Markdown means italics.

Four ways to convert Markdown to Word

1
Let Word do it

Where your version of Word has the new Markdown support, paste the Markdown or, in Word for the web with a work account, open the .md file directly. It costs nothing and needs no other tool. Check the result before you rely on it: tables and code blocks are where it falls short, and the same file can give different results in different versions of Word.

2
Convert with Pandoc

Pandoc is a free command-line converter and the most complete option. One command does it:

pandoc notes.md -o notes.docx

Headings become Heading styles, tables become Word tables, and LaTeX math becomes Word equations. Add --reference-doc=template.docx to take fonts, colours and heading styles from your own Word file. The catch is the terminal: Pandoc has to be installed and run from a command line, and Mermaid diagrams stay as code unless you add a filter.

3
Copy from a rendered preview and paste

Open the Markdown somewhere that renders it, such as VS Code's preview, GitHub or a Markdown viewer, select the rendered text and paste it into Word. Word receives HTML, so headings, lists and tables usually come across. The look of the preview often comes along too, and headings may arrive as formatted text rather than Word's Heading styles, so expect some cleanup. Fine for a page or two; tedious for longer documents.

4
Use a Markdown-to-Word converter

Paste the Markdown or open the file, convert, download a .docx. A converter reads the Markdown as structure, like Pandoc, without the command line. Online converters differ mainly in two ways: whether your text is uploaded to a server, and what they do with tables, images, math and diagrams. Try one with a file that has all of them before you settle on it.

The question is not whether a heading looks like a heading. It is whether Word knows it is one.

What survives each method

Typical results. They vary with the Word version, the account type and the Markdown itself, so test with your own documents.

Method Headings Tables Code blocks Math Own template
Word's own Markdown support Converted Not reliable Sometimes Stays as text Apply afterwards
Pandoc Heading styles Word tables Styled code Word equations Via a reference document
Paste from a rendered preview Often formatted text only Usually kept Formatting varies Varies, often broken Apply afterwards
Markdown-to-Word converter Heading styles Word tables Styled code Depends on the tool Depends on the tool

Before you convert

Start from the Markdown source. If the text comes from ChatGPT, Claude or Copilot, use the copy button under the answer rather than selecting the text. The copy button gives you the exact Markdown; a selection gives you whatever the browser made of the page. Copy button vs. select & copy explains the difference.

Check the tables. A Markdown table needs a header row and a separator line of dashes (|---|---|). Without the separator, most converters treat the table as ordinary text with pipes in it.

Check image paths. Images in Markdown are links to files. A converter can only embed an image it can reach, so relative paths only work when the converter knows where the .md file is.

Know what you have in math and diagrams. Equations between dollar signs and mermaid code blocks need special handling. See Math in Markdown and Mermaid diagrams in Markdown for what they are and which tools render them.

Which method to use

The short version

Headings and bullets only: try Word itself. Tables, code or math: use a converter.

Word's new Markdown support is enough for simple notes, if your version has it. For anything with more structure, a converter gives you real Heading styles, Word tables and styled code every time. If you already work in a terminal, Pandoc is free and thorough.

If you don't, MarkdownWord's web app converts Markdown to Word in the browser for free, with nothing uploaded. The Windows app adds your own Word templates, LaTeX as Word equations, Mermaid diagrams as images, PDF export and bulk conversion of whole folders.

Further reading: How to convert ChatGPT answers to Word — every method compared · Copy button vs. select & copy · Math in Markdown · PDF and Word to Markdown for AI