← Back to all APIs

Html To Markdown

$0.002

Convert an HTML string to clean, LLM-ready Markdown. Handles headings, links, images, tables, lists and code blocks. Options: heading style (atx|setext), bullet list marker, code block style, emphasis delimiters.

POST https://x402.freeq.one/tools/html_to_markdown
Try it (x402 payment flow)

⚡ Try with your wallet — live payment

curl -X POST https://x402.freeq.one/tools/html_to_markdown \ -H "Content-Type: application/json" \ -d '{"html":"

Hello

This is rich text being converted to Markdown.

","options":{"headingStyle":"atx"}}'

Without payment, the server returns 402 Payment Required with x402 challenge details. A paying agent signs a USDC transaction on Base and retries with the payment header.