{"uid":"cap_E7tZc5dqjheSevdIRB61i","slug":"utilsforagents-com-7f225093","name":"HTML to Markdown Converter","description":"Pay-per-call AI agent utilities plus a free feedback endpoint: JSON diff, EXIF extraction, metadata scrubbing, HTML-to-Markdown, URL fetching, and feature-request collection. $0.003/call for paid utility routes via x402 on Base or Solana.","url":"https://utilsforagents.com/v1/html/to-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"HTML string to convert to Markdown"}}},"responseSchema":{"type":"json","example":{"ok":true,"markdown":"# Hello\n\nWorld","charsAfter":15,"charsBefore":26,"processingTimeMs":0.3}},"example":{"request":{"html":"<html><head><script>console.log('test');</script><style>body { color: red; }</style><nav>Navigation Menu</nav></head><body><h1>Getting Started with AI</h1><p>Artificial intelligence is transforming how we work and live.</p><p>This article explores <strong>key concepts</strong> and <em>practical applications</em> of modern AI systems.</p><footer>Copyright 2024</footer></body></html>"},"response":{"ok":true,"markdown":"# Getting Started with AI\n\nArtificial intelligence is transforming how we work and live.\n\nThis article explores **key concepts** and *practical applications* of modern AI systems.\n\nCopyright 2024","charsAfter":195,"charsBefore":384,"processingTimeMs":0}},"exampleRequest":{"html":"<html><head><script>console.log('test');</script><style>body { color: red; }</style><nav>Navigation Menu</nav></head><body><h1>Getting Started with AI</h1><p>Artificial intelligence is transforming how we work and live.</p><p>This article explores <strong>key concepts</strong> and <em>practical applications</em> of modern AI systems.</p><footer>Copyright 2024</footer></body></html>"},"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Dxafgi2Yx-oSVy7-8ZdaR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 in memory to clean Markdown, stripping navigation, scripts, styles, and non-content elements.","exampleAgentPrompt":"I have this HTML string in memory — can you convert it to clean Markdown, stripping out the nav, scripts, and styles, so I can feed it into the LLM context window?","exampleUseCases":[{"title":"Prepare web content for LLM analysis","prompt":"I just scraped some HTML from a competitor's website and stored it locally — can you convert it to clean Markdown so I can analyze the content structure with my language model without all the nav cruft getting in the way?"},{"title":"Transform email HTML to readable text","prompt":"I extracted an HTML email from our support system and need to turn it into clean Markdown format so I can index it and search through our support knowledge base more easily — strip out the styling and template junk."},{"title":"Convert archived web pages for storage","prompt":"I've got a bunch of HTML snapshots we've archived over time, and I want to convert them all to Markdown so they take up less space and are easier to search through — can you clean them up and remove all the scripts and navigation elements first?"}],"resultDescription":"A clean Markdown string derived from the input HTML, with navigation menus, scripts, style blocks, and other non-content elements removed — suitable for LLM context windows, document processing pipelines, or storage.","failureModes":["HTML payload exceeds 5 MB limit — returns error indicating size exceeded","Malformed or empty HTML body — may return empty Markdown or parsing error","Network timeout for very large HTML documents near the size limit","Invalid Content-Type header causing body parsing failure"],"whenToPreferThis":"Choose this endpoint when you already have an HTML string in memory (e.g. fetched separately or passed from another tool) and need clean Markdown output. If you need to fetch a URL and convert in one step, use the sibling fetch-and-convert endpoint instead. Prefer this when you want fine-grained control over the HTML source before conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:43:38.997Z","isFirstParty":false,"canonicalSlug":"utilsforagents-com-7f225093"}