๐Ÿ“

Markdown to HTML API

Convert Markdown text to HTML in one API call. Perfect for AI agents generating formatted content, documentation, and reports.

API Docs $0.001 / request

About this tool

Convert Markdown text to clean HTML using the marked library (CommonMark compliant). Supports headings, bold, italic, lists, links, code blocks, blockquotes, and tables. Runs entirely locally โ€” no external API calls, fast and private.

Quick Start

curl -X POST https://api.iteratools.com/markdown/render \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"markdown": "# Hello\n\nThis is **bold** text.", "sanitize": true}'

Response

{"html": "<h1>Hello</h1>\n<p>This is <strong>bold</strong> text.</p>\n", "input_length": 35, "output_length": 58}

Parameters

Field Type Description
markdown string (required) Markdown text to convert (max 100,000 chars)
sanitize boolean (optional) Sanitize output โ€” default: true (marked v9+ is safe by default)

Pricing

$0.001 per request via x402 micropayment on Base (USDC).

Full Documentation Browse All Tools