{"uid":"cap_SuRv2HNTKqYS3rQHWxvoh","slug":"x402-gateway-html-to-markdown-converter-f3bbd1d4","name":"x402-gateway HTML to Markdown Converter","description":"x402-gateway tool: html_to_markdown — 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.","url":"https://x402.freeq.one/tools/html_to_markdown","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"HTML source string to convert to Markdown"},"options":{"type":"object","description":"Conversion options (headingStyle, bulletListMarker, codeBlockStyle, emDelimiter, strongDelimiter)"}}},"responseSchema":{"type":"json","example":{"result":{}}},"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_aB_0hpKyW1tpqSuz1NXhY","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 an HTML string to clean, LLM-ready Markdown with configurable heading style, bullet markers, code block style, and emphasis delimiters.","exampleAgentPrompt":"Take this HTML snippet and convert it to clean markdown using ATX-style headings and dashes as bullet markers — I need it ready for an LLM prompt: '<h1>Hello</h1><ul><li>Item one</li><li>Item two</li></ul>'","exampleUseCases":[{"title":"Preprocess scraped HTML for LLM","prompt":"I just scraped this HTML from a product page — can you convert it to clean markdown with ATX headings and backtick code blocks so I can feed it into my LLM pipeline?"},{"title":"Convert documentation HTML to readable markdown","prompt":"Here's the raw HTML from a docs page I copied — please turn it into markdown using setext-style headings and asterisks for bullet points so it's easier to read and edit."},{"title":"Prepare HTML email content for AI summarization","prompt":"I have this HTML email body I need to summarize with an AI — first convert it to clean markdown using ATX headings and underscores for emphasis so the LLM can process it cleanly."}],"resultDescription":"Returns clean, LLM-ready Markdown text with HTML elements converted to their Markdown equivalents — headings, links, images, tables, lists, and code blocks — using the configured style options.","failureModes":["Malformed or invalid HTML input may produce garbled or incomplete Markdown output","Extremely large HTML payloads may time out or be rejected","Unsupported HTML elements may be stripped or ignored silently","Missing required HTML input field returns an error response","Network or payment (x402) failure prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need to convert raw HTML into clean, LLM-optimized Markdown with fine-grained control over output style (heading style, bullet marker, code block style, emphasis delimiters). Ideal for preprocessing scraped web content, HTML documents, or email bodies before feeding them into LLM pipelines. Prefer this over generic text extractors when you need structured Markdown output with preserved tables, links, images, and code blocks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:36:08.238Z","isFirstParty":false}