{"uid":"cap_eGSwXVbqZz01yFT6HtQrE","slug":"html-to-markdown-converter-well-004-6a6de066","name":"HTML to Markdown Converter (WELL-004)","description":"Convert HTML to tidy markdown ($0.005 USDC via x402). Pass html (string) and/or url (public https to fetch). At least one required; if both, prefers html and warns. URL fetches use the same allowlist as WELL-002 (https only — http/file/data/localhost/private IPs rejected; 1 MB body, ~10s timeout, max 5 redirects). Returns JSON { source, url?, final_url?, content_type?, markdown, warnings }.","url":"https://well-004-html-to-markdown.mmelnyk2000.workers.dev/mcp?utm_source=zero.xyz#html-to-markdown#html-to-markdown","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_raVgSXrf96YAjx2wIWy3N","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts raw HTML strings or fetches a public URL and converts its HTML content to clean, tidy Markdown, charged at $0.005 USDC via x402 payment protocol.","exampleAgentPrompt":"Convert this HTML snippet to clean markdown: '<h1>Hello</h1><p>This is a <strong>test</strong> page with a <a href=\"https://example.com\">link</a>.'","exampleUseCases":[{"title":"Webpage to Markdown for LLM context","prompt":"Fetch the content at https://en.wikipedia.org/wiki/Markdown and convert the page HTML into tidy markdown so I can paste it into my LLM prompt."},{"title":"Sanitize raw HTML from email","prompt":"I have this HTML email body I scraped — can you strip all the tags and give me a clean markdown version of just the readable text? Here's the HTML: '<div><p>Dear Customer,</p><ul><li>Order confirmed</li><li>Ships tomorrow</li></ul></div>'"},{"title":"Archive article as readable markdown","prompt":"Grab the article at https://blog.example.com/my-post and convert it to markdown so I can save it in my notes app."}],"resultDescription":"Returns a JSON object containing: 'source' (whether input was 'html' or 'url'), optional 'url' and 'final_url' (after redirects), optional 'content_type' of the fetched resource, 'markdown' (the converted Markdown string), and 'warnings' (an array of any non-fatal issues encountered, e.g. if both html and url were supplied).","failureModes":["HTTP URLs (non-HTTPS), file://, data://, localhost, or private IP addresses are rejected with an error","Response body exceeds 1 MB limit — fetch aborted","URL fetch times out after ~10 seconds","More than 5 redirects encountered — fetch fails","Neither 'html' nor 'url' parameter provided — request rejected","URL returns non-HTML content type that cannot be meaningfully converted"],"whenToPreferThis":"Choose this endpoint when you need to convert HTML — either as a raw string or fetched from a public HTTPS URL — into clean Markdown, especially for LLM ingestion, note-taking pipelines, or content archiving. Prefer it over general-purpose scraping tools when the desired output format is explicitly Markdown. The built-in URL fetching with redirect handling and size limits makes it safe for automated pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:30:40.344Z","isFirstParty":false,"canonicalSlug":"html-to-markdown-converter-well-004-6a6de066"}