Convert API
Turn markdown into a Word document with one POST request. Built for scripts, backends, and AI agents. Free to use, no API key required.
Endpoint
POST https://chattoword.com/api/convertRequest body
| Field | Type | Description |
|---|---|---|
| markdown | string, required | The markdown to convert (e.g. a ChatGPT response). Max 2M characters. |
| filename | string, optional | Output filename without extension. |
Example
curl -X POST https://chattoword.com/api/convert \
-H "Content-Type: application/json" \
-d '{"markdown": "# Report\n\n| Item | Value |\n|------|-------|\n| Revenue | $10,000 |", "filename": "report"}' \
-o report.docxResponse
A binary .docx file with headings, tables, lists, links, and code blocks mapped to native Word styles. Invisible Unicode characters are cleaned automatically. Errors return JSON with an error field.
Fair use
The API is free for reasonable use. If you need guaranteed throughput, batch conversion, or custom Word templates for your product, contact us. A commercial tier is coming.