{"uid":"cap_-U5i7V0B9nTwxeMi_mbH3","slug":"coinslot-html-to-markdown-converter-72779812","name":"Coinslot HTML-to-Markdown Converter","description":"Convert HTML to clean Markdown: headings, links, images, lists, tables, code blocks, emphasis. Strips scripts, styles, and comments. POST { html } (max 500KB).","url":"https://coinslot.dev/api/html-to-markdown","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"HTML document or fragment, max 500KB"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_geP8N9kzk0kG4branC6G3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts HTML documents or fragments into clean, structured Markdown, stripping scripts, styles, and comments.","exampleAgentPrompt":"Take this raw HTML and convert it to clean Markdown — strip out all the scripts, styles, and comments, and preserve the headings, links, images, lists, tables, and code blocks.","exampleUseCases":[{"title":"Feed clean content to an LLM","prompt":"I have this big HTML page I scraped and I want to feed it to an LLM — can you convert the HTML to clean Markdown first so it's easier for the model to parse?"},{"title":"Documentation from HTML export","prompt":"Our CMS exported this article as HTML but I need it as Markdown for our GitHub docs repo — convert the HTML for me, keeping headings, code blocks, and tables intact."},{"title":"Sanitize newsletter HTML","prompt":"I have an HTML email newsletter and I just want the readable content as Markdown with no inline scripts or style junk — can you clean it up and convert it?"}],"resultDescription":"Returns a plain Markdown string with the HTML content faithfully converted: headings (h1–h6), hyperlinks, images, ordered and unordered lists, tables, fenced code blocks, and inline emphasis (bold/italic) are all preserved. Scripts, stylesheets, and HTML comments are stripped. The response is clean, human-readable Markdown ready for downstream use.","failureModes":["HTML payload exceeds 500KB size limit — request is rejected","Malformed or non-parseable HTML may result in degraded or partial Markdown output","Deeply nested or non-standard HTML structures may not convert with full fidelity","Empty HTML body returns empty Markdown string","Network timeout if the payload is very large but within limits"],"whenToPreferThis":"Choose this endpoint when you have raw HTML and need clean, human-readable Markdown output — especially when you want scripts, styles, and comments stripped automatically. It is ideal for preprocessing scraped web content before feeding it to an LLM, converting CMS or email HTML to documentation-ready Markdown, or transforming HTML fragments into portable text. Prefer this over a full URL-fetch-to-Markdown endpoint when you already have the HTML content in hand and don't need a network fetch.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:31:25.272Z","isFirstParty":false}