Editor
7,282 characters
Preview

Markdown to Word Converter ✨

Convert your Markdown to Word (.docx) instantly — no sign-up, no file upload. Everything runs in your browser. Click the blue Download as Word button (📄 icon) in the preview toolbar to export.


LaTeX Math — Native Word Equations

Math exports as real, editable Word equations (not images). Open the .docx and edit them directly in Word's equation editor.

Inline math

Einstein's equation: E=mc2E = mc^2. The Pythagorean theorem: a2+b2=c2a^2 + b^2 = c^2.

Display equations

The quadratic formula:

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Euler's identity:

eiπ+1=0e^{i\pi} + 1 = 0

Summation and integral:

∑i=1ni=n(n+1)2∫0πsin⁡x dx=2\sum_{i=1}^{n} i = \frac{n(n+1)}{2} \qquad \int_0^{\pi} \sin x \, dx = 2

Greek letters: α\alpha, β\beta, γ\gamma, δ\delta, θ\theta, λ\lambda, μ\mu, π\pi, σ\sigma, ω\omega


Tables

Tables export with header row shading, cell borders, and GFM alignment.

AlgorithmTimeSpaceNotes
Binary SearchO(log⁡n)O(\log n)O(1)O(1)Sorted arrays only
Quick SortO(nlog⁡n)O(n \log n)O(log⁡n)O(\log n)In-place, unstable
Merge SortO(nlog⁡n)O(n \log n)O(n)O(n)Stable sort
Hash TableO(1)O(1) avgO(n)O(n)Key-value lookup

Lists

Unordered lists

  • First item
  • Second item
    • Nested item
    • Another nested
      • Deep nested
  • Back to top level

Ordered lists

  1. Download the .docx
  2. Open in Microsoft Word or Google Docs
  3. Edit, format, and share

Task lists

  • LaTeX math → native Word equations ✅
  • Tables with alignment ✅
  • Code blocks with syntax structure ✅
  • Mermaid diagrams → embedded SVG ✅
  • Emoji shortcodes 🚀
  • Your custom content — start writing above!

Mermaid Diagrams

Diagrams export as crisp SVG images embedded in the .docx.

Loading diagram...

Code Blocks

// TypeScript — full type safety
interface DocxConverter {
input: string;
outputType: 'blob' | 'buffer' | 'base64';
}
async function convert({ input, outputType }: DocxConverter) {
const { md2docx } = await import('@m2d/md2docx');
return md2docx(input, {}, undefined, outputType);
}
# Python — clean and readable
def fibonacci(n: int) -> list[int]:
"""Generate Fibonacci sequence up to n terms."""
a, b = 0, 1
result = []
for _ in range(n):
result.append(a)
a, b = b, a + b
return result
print(fibonacci(10))
# [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]

Text Formatting

Bold, italic, bold italic, strikethrough, and inline code.

Blockquotes render with a left border in the Word document — perfect for pull quotes, callout notes, or cited passages in academic writing.

Horizontal rules become page dividers:


Visit MarkMath — links stay clickable in Word.

Emoji shortcodes: 🚀 ✨ ✅ 🔥 🎉


How to Export

  1. Write your Markdown (with optional LaTeX math) in the editor on the left
  2. Preview the rendered output in real time on the right
  3. Click the blue Download as Word button (📄 icon) in the preview toolbar
  4. Open the downloaded .docx in Word, Google Docs, or LibreOffice

💡 Tip: The .docx uses Word's built-in heading styles (Heading 1, Heading 2, etc.), so you can auto-generate a Table of Contents via References → Table of Contents in Word.

💡 Math tip: Equations are exported as native OOXML math — not images. You can click any equation in Word to edit it directly in the built-in equation editor.

Page Numbers, Table of Contents and Google Docs

  • Page numbers: tick Page numbers under the preview to add "Page X of Y" to every page's footer.
  • Table of contents: tick Table of contents to insert a clickable contents page. Word fills it in when you open the file.
  • Google Docs: click Google Docs in the preview toolbar and paste into a document, or upload the .docx to Google Drive and choose Open with → Google Docs — this keeps equations editable.

Markdown to Word — FAQ

How do I convert Markdown to Word online for free?

Write or paste your Markdown in the editor on the left. The preview on the right renders it live. Click the blue Download as Word button (document icon) in the preview toolbar to download a .docx file. No sign-up or file upload required — the conversion runs entirely in your browser.

How do I convert a .md file to Word?

Click the Upload button in the editor toolbar to open any .md, .markdown, or .txt file from your device. The content loads into the editor instantly. Then click Download as Word in the preview toolbar to get your .docx file.

Does the Word file preserve LaTeX math equations?

Yes — and this is a key differentiator. LaTeX math written with $...$ (inline) or $$...$$ (display) is exported as native OOXML math elements in the Word document, not as images. You can click any equation in the downloaded .docx and edit it directly in Word's built-in equation editor.

What Markdown elements are supported in the Word export?

The converter supports headings (H1–H6 mapped to Word styles), bold, italic, strikethrough, inline code, code blocks, blockquotes, ordered lists, unordered lists, nested lists, task lists, GFM tables with alignment, horizontal rules, clickable links, LaTeX math equations, Mermaid diagrams, images, and emoji shortcodes.

Can I open the converted .docx in Google Docs?

Yes. The .docx file is a standard Office Open XML document. It opens correctly in Microsoft Word, Google Docs (via upload), LibreOffice Writer, Apple Pages, and any other application that supports the .docx format.

How do I add a Table of Contents to my converted Word document?

The converter maps Markdown headings to Word's built-in heading styles (Heading 1, Heading 2, etc.). In Microsoft Word, go to References → Table of Contents and select a style. Word will auto-generate the TOC from your headings.

Are Mermaid diagrams included in the Word document?

Yes. Mermaid code blocks (flowcharts, sequence diagrams, class diagrams, etc.) are rendered to SVG and embedded as images in the .docx file, so they appear cleanly at any zoom level.

Is there a file size limit for the Markdown to Word converter?

The editor supports up to 100,000 characters of Markdown content. For most documents — technical docs, research papers, README files — this is more than sufficient.

How do I convert Markdown to Google Docs?

Click the Google Docs button in the preview toolbar and paste into a Google Doc. For native, editable equations, download the .docx, upload it to Google Drive and choose Open with Google Docs.

Can I add page numbers and a table of contents to the Word file?

Yes. Tick Page numbers to add "Page X of Y" to the footer, and Table of contents to insert a clickable contents page that Word fills in when you open the document.

7,282 characters