Skip to content
Runs local · no upload

Markdown to DOCX

Generates structured DOCX from markdown — headings as real Word style refs, not bold text.

100 % in the browser. Nothing is uploaded.

Markdown
Local images (optional)

Add the images your markdown references — they get embedded into the DOCX.

Nested paths like assets/screens/foo.png? Pick the whole image folder.

Profile

How It Works

  1. 01

    Bring in the markdown

    Paste field or file drop. Up to 25 MB per file.

  2. 02

    Profile and format

    Four profiles, A4 or Letter. Optional: add local images that get embedded as binary images in the DOCX.

  3. 03

    Generate the DOCX

    The tool assembles the Open XML document in the browser and hands you the .docx file straight away.

Privacy

Markdown stays in your browser tab. The Open XML generation runs through a browser-capable open-source library; embedded images are written into the DOCX as bytes, not uploads.

DOCX is still the format editors, customers and offices revise in — because it opens everywhere. Markdown is where most text starts today. This tool bridges them and does it right: real Word heading styles (not bold text), tables with repeating headers, embedded images, Word-native numbering for lists. Tracked changes work, the file opens in Word, Pages and LibreOffice.

01 — How to Use

How do you use this tool?

  1. Paste markdown or load a .md file — up to 25 MB.
  2. Pick a profile (Clean, Business, Academic, Web article) and page size (A4 or Letter).
  3. Optional: add local images — they get embedded into the DOCX, not linked externally.
  4. Click the Generate-DOCX button and download the .docx file.

Why markdown to DOCX?

Markdown is the writing language notes, specs, AI chats and pull requests are born in. DOCX is the format editors, customers, government offices and school offices work in. Both worlds need to meet — that is exactly what this tool does.

This is not save markdown as HTML with a Word extension. This is real Word file structure: headings as style refs, tables with repeating headers across pages, images as embedded bytes, lists with Word own numbering definitions. The resulting file is editable, searchable and tracked-changes compatible.

How does the conversion work?

Markdown is tokenised via a well-established open-source library. The token stream is walked and mapped onto Open XML DOCX structures — headings to Heading 1 through Heading 6 style refs, paragraphs to Paragraph with TextRun children, tables to Table with TableRow/TableCell and a tableHeader mark, ordered and unordered lists to named numbering definitions with three nesting levels.

Images go into the DOCX ZIP container as binary streams (word/media folder). Hyperlinks serialise as ExternalHyperlink references. The finished document is packed into a .docx blob via Packer.toBlob() and delivered through the browser standard download API.

What are common use cases?

  • Editorial workflow. Writers work in markdown, editors get the DOCX for tracked-changes review.
  • Reports for the office. Markdown becomes a Word file with correct heading outline for the official review.
  • Polish AI-chat output. A long AI-chat answer becomes an editable DOCX that travels through the Word workflow.
  • Term papers. Academic profile plus Times typography plus real heading outline for automatic TOC generation in Word.
  • Template migration. Existing markdown templates become Word templates that colleagues without markdown experience can fill in.

What stays intact?

Preserved: heading hierarchy as real style refs, paragraphs with profile-specific typography, ordered and unordered lists with three nesting levels, GFM tables with header repetition across page breaks, inline formatting (bold, italic, inline code as monospace), hyperlinks as ExternalHyperlink refs, block quotes with indent, code blocks as monospace paragraphs with shading, horizontal rules, local images as embedded binaries.

Intentionally not mapped: footnotes (phase two — the DOCX footnote API is Word-version dependent), math, diagrams, custom containers, definition lists, external image URLs (CORS and privacy). Strikethrough is not rendered visually — the text is preserved but the strike effect is Word-version fragile.

How does the tool keep my markdown private?

If your markdown is a draft contract, an employee briefing or a confidential spec, the last thing you want is for it to be uploaded somewhere. None of that happens here.

Markdown is parsed in your browser tab. A browser-capable open-source library assembles the Open XML document in the tab, packs it as a ZIP and returns a download blob. Embedded images are written as binary streams directly into the DOCX container — they do not travel through an external server. Open the Network panel of the developer tools and check.

More tools from the converter ecosystem worth knowing:

  • Markdown to HTML — same markdown input, finished HTML as standalone or body fragment.
  • Markdown to PDF — vector PDF via the browser print path with live internal links.
  • DOCX to Markdown — the reverse direction if your source is already Word.

Last updated:

You might also like