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

The Markdown to convert.
Title placed at the top of the document and stored in its properties. Leave empty for none.
Add a table of contents at the start, built from the headings.

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

NameTypeRequiredWhat 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

Input
{
  "markdown": "# Report\n\nSales rose **12%** this quarter.\n\n- North: 420\n- South: 380"
}
Result

Press the example button above to make it.

With a title and a table of contents

Input
{
  "markdown": "## Plan\n\n1. Draft\n2. Review\n\n| Task | Owner |\n|------|-------|\n| Draft | Ana |",
  "title": "Project plan",
  "toc": true
}
Result

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