📝

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

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.