Markdown to HTML
POST
/v1/convert/markdown-to-html
curl -X POST "https://convert.toolkitapi.io/v1/convert/markdown-to-html" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"markdown": "# Hello\n\nThis is **bold** and *italic*."}'
# See curl example
// See curl example
Response
200 OK
{
"html": "<h1>Hello</h1>\n<p>This is <strong>bold</strong> and <em>italic</em>.</p>",
"size": 63
}
How to Use
1
Send a POST request to /v1/convert/markdown-to-html with a markdown string and optional extensions array.
About This Tool
Render Markdown to HTML with support for CommonMark syntax plus extensions: tables, fenced code blocks, footnotes, and task lists.
Returns sanitised HTML suitable for embedding in web pages. Script tags and event handlers are stripped.
Why Use This Tool
- CMS Rendering — Convert Markdown content from a headless CMS to HTML for rendering in your frontend.
- Documentation — Render API documentation written in Markdown as HTML for your docs site.
- Email Formatting — Convert Markdown drafts to HTML for rich-text email content.
Frequently Asked Questions
Is the HTML sanitised?
Yes — script tags, event handlers (onclick, etc.), and other XSS vectors are stripped from the output.
What Markdown extensions are supported?
Tables, fenced code blocks, footnotes, task lists, strikethrough, and auto-linking.
Start using Markdown to HTML now
Get your free API key and make your first request in under a minute.