NanoFile
Menu

Markdown to Word

Paste markdown, get a .docx. Headings become Word heading styles, so the navigation pane and any table of contents work; tables stay tables and lists stay lists.

Markdown
Preview

The result appears here as you type.

Converted in your browser. Nothing is uploaded.

How it works

  1. Your markdown is rendered to HTML, then wrapped in a Word-readable document with a stylesheet that maps headings, code, tables and quotes to sensible Word formatting.
  2. The file is a real .docx, built from the markdown rather than from rendered HTML. Word's own model is a flat list of styled paragraphs, which is much closer to markdown than HTML is, and going via HTML is where a conversion loses its structure.
  3. If you would rather paste than download, use Copy for Word: it puts formatted content on your clipboard, ready to paste straight into a document.

What it does not do

  • The download is .doc, not .docx. A true .docx would need a zip writer and a full OOXML mapping in the browser, which would be a large download for a result that looks the same once Word has opened it.
  • Images referenced by URL are linked rather than embedded, so Word will fetch them when it opens the file.

Questions

Is my markdown uploaded?

No. The conversion runs in your browser with code that is already part of this page. There is no upload endpoint on this site, so the file cannot reach us even in principle. Open your browser's network tab and watch: no request carries your document.

Will Word complain about the file format?

No. It is a genuine .docx, so it opens without the format warning that the older HTML-in-a-wrapper trick produces.

Do the headings become real Word headings?

Yes, Heading 1 through Heading 6, which is the point of writing a .docx rather than styled HTML. Word's navigation pane works, and inserting a table of contents finds them.

Related tools

Converting more than one file

This page converts the file in front of you. The app works on the folder: point it at a directory and convert everything in it at once, offline, without a browser in the way. That is the same on an iPhone, an iPad and a Mac.

For iPhone, iPad and Mac.