{"uid":"cap_bZAhzV1R_7fG8JMlxcc_A","slug":"24k-labs-html-to-markdown-converter-443027e8","name":"24K Labs HTML to Markdown Converter","description":"Convert a supplied HTML string to clean Markdown: strips scripts/style/nav, preserves headings, bold, italic, links, lists, code, and blockquotes. No fetch.","url":"https://api.24klabs.ai/api/v1/html-to-markdown","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string"}}},"responseSchema":{"type":"json","example":{"markdown":"# Title\n\nHello **world** and [link](http://x.io).\n\n- one\n- two"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ump06wXwuv3U5h7qKvprj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a supplied HTML string to clean Markdown by stripping scripts, styles, and navigation while preserving semantic content elements.","exampleAgentPrompt":"Take this HTML snippet I have and convert it to clean Markdown — strip out any scripts, nav, and styling but keep the headings, bold, links, lists, and code blocks intact.","exampleUseCases":[{"title":"Convert scraped article HTML to Markdown","prompt":"I just scraped this blog article HTML and need it converted to clean Markdown — keep the headings, links, and code blocks but strip out all the nav, scripts, and styles."},{"title":"Prepare CMS content for Markdown-based docs","prompt":"Here's the raw HTML from our CMS export — can you convert it to Markdown so I can paste it into our documentation site? Make sure bold, italics, and blockquotes are preserved."},{"title":"Clean newsletter HTML for plain-text pipeline","prompt":"I have an HTML email template and need it turned into Markdown, removing all the navigation, inline scripts, and styling while keeping the actual text content and links."}],"resultDescription":"A clean Markdown string derived from the input HTML, with scripts, styles, and navigation removed, and semantic elements (headings, bold, italic, links, lists, code blocks, blockquotes) preserved as proper Markdown syntax.","failureModes":["Malformed or unparseable HTML may produce incomplete or garbled Markdown output","Very large HTML payloads may exceed size limits or time out","HTML with no semantic content (pure script/style) returns an empty or minimal Markdown string","Nested or deeply complex table structures may not convert perfectly to Markdown"],"whenToPreferThis":"Choose this endpoint when you already have an HTML string in memory and need it converted to Markdown without making an additional HTTP fetch — it is a pure transformation, not a scraper. Ideal for processing HTML from CMS exports, scraped content, or API responses when you need clean, readable Markdown output for documentation, LLM context, or plain-text pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:58:13.683Z","isFirstParty":false}