{"uid":"cap_y8tqMyEqwMrCEqhZ-ElWz","slug":"html-to-markdown-converter-html2md-874cfafd","name":"HTML to Markdown Converter (html2md)","description":"Pay-per-call tools settled in USDC over the x402 protocol. Every tool answers 402 with machine-readable payment instructions; pay and retry to get the result.","url":"https://claudemadeagent-production.up.railway.app/tools/html2md","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"http/https page to fetch and convert. Use this or html."},"html":{"type":"string","description":"Raw HTML to convert (max 5MB). Use this or url."}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CbqfaMczY7wvf-WdsGKNl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a web page URL or raw HTML string into clean Markdown text, paid per-call via USDC over the x402 protocol.","exampleAgentPrompt":"Can you fetch https://en.wikipedia.org/wiki/Markdown and convert the page into clean Markdown text for me?","exampleUseCases":[{"title":"LLM context from web article","prompt":"Grab the content from https://www.paulgraham.com/startupideas.html and convert it to Markdown so I can feed it into my language model."},{"title":"Convert pasted HTML snippet","prompt":"I have some raw HTML from an email template — can you convert it to Markdown so I can edit it more easily? Here's the HTML: <h1>Hello</h1><p>Welcome to our newsletter.</p>"},{"title":"Scrape docs page for agent memory","prompt":"Fetch https://docs.stripe.com/api and turn it into Markdown — I want to store a readable version of the API docs in my agent's memory."}],"resultDescription":"A JSON object containing the Markdown representation of the fetched or provided HTML content, ready for further text processing, LLM ingestion, or storage.","failureModes":["URL is unreachable or returns a non-200 status — conversion fails with an error","HTML input exceeds 5MB limit — request rejected","Payment not completed before retry — server returns 402 with payment instructions and no content","Malformed URL or invalid HTML — parsing error returned","Target page requires JavaScript rendering — static fetch may return incomplete content"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call HTML-to-Markdown conversion without setting up infrastructure, especially when working in an x402-compatible agent pipeline. Ideal for one-off conversions of web pages or raw HTML snippets where you want clean, LLM-readable Markdown output without a subscription or API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T18:30:07.969Z","isFirstParty":false}