Markdown 转 DOCX
在浏览器中将 Markdown 转换为 Word .docx 文件,无需上传、无需 pandoc、无需注册。支持标题、粗体、斜体、列表、表格、代码块和引用。
Paste Markdown above and click Convert to DOCX.
How to convert Markdown to DOCX in browser
- Paste your Markdown into the editor above, or click Upload .md file
to load a local
.mdfile. The content is read entirely on your device — nothing is sent to a server. - Click Convert to DOCX. The tool parses your Markdown and builds a valid Office Open XML document using JSZip — no pandoc, no Node.js, no backend.
-
Click Download to save the
.docxfile. Open it in Microsoft Word, LibreOffice Writer, Google Docs, or any application that supports the .docx format.
Why convert Markdown to Word in the browser?
Markdown is the default writing format for README files, documentation, and technical notes.
But many workplaces and clients still require Word documents. The usual conversion path —
pandoc input.md -o output.docx — requires installing pandoc and a terminal.
This tool removes that requirement: paste your Markdown, click Convert, and get a
properly styled .docx in seconds.
The output is a real Office Open XML document, not an HTML-to-Word hack. Heading styles (Heading 1–6), list numbering, code block formatting, table grid borders, and blockquote indentation all use native Word styles that work with Word's built-in style gallery.
Supported Markdown elements
The converter handles the most common GitHub Flavored Markdown constructs:
headings (ATX # and setext underline), bold,
italic, bold-italic, inline code, fenced code blocks,
unordered and ordered lists, blockquotes, horizontal rules, and pipe tables.
Images and raw HTML are passed through as plain text — this is intentional, since
.docx cannot embed arbitrary HTML inline.
Related tools
- OpenAPI to TypeScript Types — convert API specs to TypeScript in the browser
- JSON Formatter — pretty-print and validate JSON
- YAML Validator — check YAML syntax before converting
- PDF Merge — combine multiple PDFs in the browser
- Markdown to Word document
- GitHub Markdown to DOCX
常见问题
- Does my Markdown leave my device?
- No. The entire conversion runs locally in your browser using JavaScript and JSZip. Your text is never sent to any server — paste it, click Convert, and download the .docx file. Works offline too.
- Which Markdown elements are supported?
- Headings (# through ######), paragraphs, bold (**text**), italic (*text*), bold-italic (***text***), inline code (`code`), fenced code blocks (```), unordered lists (-, *, +), ordered lists (1. 2. 3.), blockquotes (>), horizontal rules (---), and tables (| col | col |). Nested lists and setext-style headings (underlined with === or ---) are also handled.
- Do I need Word, LibreOffice, or pandoc installed?
- No. This tool runs entirely in your browser and builds a valid Office Open XML (.docx) file from scratch using the JSZip library. No desktop app, no CLI tool, and no npm package is required. Open the downloaded file in Microsoft Word, LibreOffice Writer, Google Docs, or any other .docx-compatible application.
- Can I upload a .md file instead of pasting?
- Yes. Click "Upload .md file" below the textarea to pick a local Markdown file. Its content is read locally and placed into the editor — no upload occurs. You can then edit before converting.
- What does the output DOCX look like?
- The output uses standard Word heading styles (Heading 1–6 with blue color matching the default Word theme), a monospaced code block style with a light gray background, indented blockquotes, bullet/numbered lists, and a striped table with a dark blue header row. The styles are compatible with Word's built-in style gallery, so you can apply your own theme after opening the file.
- Is there a file size or character limit?
- There is no enforced limit. The converter handles documents with thousands of lines in under a second. Very large documents (100 000+ words) may take a moment to ZIP, but there is no hard cap.
Last updated: By jarvisbox