Markdown to Word (DOCX)
Turn Markdown into a Word document with real headings, lists, tables and code, ready to edit. Converts Markdown to an editable Word file (.docx) that also opens in Google Docs, LibreOffice and Pages. Nothing outside the Markdown is ever loaded.
Input
Result
Choose a file and press Run.
Files you upload and the results are stored for one hour, then deleted. Anyone who has the link can open them, so don't upload anything private.
Use it from code or an agent
curl -s https://setget.net/v1/tools/markdown-to-docx \
-H 'Content-Type: application/json' \
-d '{"input":{"markdown":"# Report\n\nSales rose **12%** this quarter.\n\n- North: 420\n- South: 380"},"wait":30}'
import json, urllib.request
body = {'input': {'markdown': '# Report\n\nSales rose **12%** this quarter.\n\n- North: 420\n- South: 380'}, 'wait': 30}
request = urllib.request.Request("https://setget.net/v1/tools/markdown-to-docx", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/markdown-to-docx", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"markdown":"# Report\n\nSales rose **12%** this quarter.\n\n- North: 420\n- South: 380"},"wait":30}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "markdown-to-docx",
"input": {
"markdown": "# Report\n\nSales rose **12%** this quarter.\n\n- North: 420\n- South: 380"
},
"wait": 30
}
{
"input": {
"markdown": "# Report\n\nSales rose **12%** this quarter.\n\n- North: 420\n- South: 380"
},
"wait": 30
}
This is a file tool, so a call takes three steps: upload the file to get a reference, run the tool with that reference, then read the result and download its files. Uploads and results are public by link and expire after one hour.
Endpoint: POST /v1/tools/markdown-to-docx. Over MCP: run_tool with slug: "markdown-to-docx".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
markdown |
string | yes | The Markdown to convert. |
title |
string | no | Title placed at the top of the document and stored in its properties. Leave empty for none. Default: "". |
toc |
boolean | no | Add a table of contents at the start, built from the headings. Default: false. |
Examples
A short report
{
"markdown": "# Report\n\nSales rose **12%** this quarter.\n\n- North: 420\n- South: 380"
}Press the example button above to make it.
With a title and a table of contents
{
"markdown": "## Plan\n\n1. Draft\n2. Review\n\n| Task | Owner |\n|------|-------|\n| Draft | Ana |",
"title": "Project plan",
"toc": true
}Press the example button above to make it.
Questions
- Which Markdown is supported?
- GitHub-style Markdown: headings, bold and italic, lists and task lists, tables, links, quotes, code blocks, strikethrough, footnotes and maths written between dollar signs.
- Do headings become real Word headings?
- Yes. They use the built-in Heading 1, Heading 2 and so on, so Word's navigation pane, styles and table of contents work with them.
- Why is my picture missing?
- Pictures are never downloaded and files cannot be attached to this tool, so every picture is replaced by its description. Add the pictures in Word afterwards.
- The table of contents is empty or asks to be updated. Why?
- Word fills it in when the file is opened. Answer Yes when Word asks to update the fields, or right-click the table and choose Update field.
- What happens to HTML in the Markdown?
- It is left out. Only Markdown formatting is carried over.
- What does a block between --- lines at the top do?
- It is read as document settings, not as text. A "title:" line there becomes the title unless you give one here.
Conversions this tool does
Related tools
- Markdown to PDFTurn Markdown into a tidy PDF with headings, tables and coloured code, in a choice of page sizes and styles.
markdown-to-pdf - Markdown to HTMLConvert Markdown to clean HTML, with tables, task lists and code blocks, as a fragment or a full page.
markdown-to-html - Word to MarkdownTurn a Word document (.docx) into Markdown with its headings, lists, tables, links, bold and footnotes.
docx-to-markdown - HTML to MarkdownTurn a saved web page into Markdown: the main content, without menus, scripts and styling.
html-to-markdown - Anything to MarkdownTurn almost any document into Markdown: PDF, Word, PowerPoint, Excel, HTML, EPUB, e-mail, notebooks, CSV.
any-to-markdown - Compress a PDFMake a PDF file smaller by packing its contents tighter and, if you allow it, re-saving its pictures at a lower resolution.
pdf-compress