{"uid":"cap_Qvxe1nynRnR28qg1bLFYH","slug":"tanod-web-html-to-text-markdown-converter-02f9c3d4","name":"Tanod Web HTML to Text/Markdown Converter","description":"Web tools: search, page to Markdown or screenshot, company profile and jobs, sitemaps, RDAP, IP.","url":"https://web.tanod.dev/v1/html-to-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","maxLength":2000000,"minLength":1,"description":"The HTML document itself (at most 2 MB UTF-8); nothing is fetched."},"format":{"enum":["text","markdown"],"type":"string","default":"markdown","description":"markdown (default) or plain text."},"base_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"default":null,"description":"Makes relative links absolute in the output; never fetched."}}},"responseSchema":{"type":"json","example":{"chars":67,"title":"","format":"markdown","source":{"library":"BeautifulSoup (html.parser)","license":"MIT"},"content":"# Title\n\nSome **bold** text and a [link](https://example.com/docs).","truncated":false,"description":"","untrusted_content":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EdhfPBVxRdgJVwLc1Zin6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts raw HTML markup into clean Markdown or plain text, resolving relative links to absolute URLs if a base URL is provided.","exampleAgentPrompt":"Take this HTML I have and convert it to Markdown — here's the content: '<html><body><h1>Hello</h1><p>World <a href=\"/docs\">docs</a></p></body></html>' — use https://example.com as the base URL so relative links become absolute.","exampleUseCases":[{"title":"Prepare web scrape for LLM summarization","prompt":"I scraped this HTML from a news article — can you convert it to Markdown so I can feed it cleanly to the summarizer? Here's the raw HTML: '<article><h1>Breaking News</h1><p>Details here with a <a href=\"/story\">link</a>.</p></article>' — use https://news-site.com as the base URL."},{"title":"Strip HTML for plain text output","prompt":"I need just the readable text from this HTML snippet, no Markdown formatting — just plain text. Here's the HTML: '<div><h2>Product</h2><p>Great product. <strong>Buy now!</strong></p></div>'"},{"title":"Normalize newsletter HTML for storage","prompt":"Can you convert this email newsletter HTML into Markdown so I can store it in my notes? Here's the HTML body: '<html><body><h1>Weekly Digest</h1><ul><li>Item 1</li><li>Item 2</li></ul></body></html>' — base URL is https://newsletter.example.com."}],"resultDescription":"Returns a JSON object containing: the converted content string (Markdown or plain text), the output format used, character count, page title, page description, a truncation flag indicating if the content was cut off, and library provenance metadata (BeautifulSoup, MIT license). The content field is the primary output.","failureModes":["HTML input exceeds 2 MB limit — request rejected","Empty or missing html field — validation error","Malformed JSON body — bad request error","Extremely large or deeply nested HTML may produce truncated output (truncated: true in response)","Invalid format enum value (not 'markdown' or 'text') — validation error"],"whenToPreferThis":"Use this endpoint when you already have HTML content in memory and need to convert it to readable Markdown or plain text without fetching any URLs. Ideal for post-scrape processing pipelines, LLM context preparation, or readable text extraction from HTML strings. Prefer this over a full-page fetch+convert endpoint when you control the HTML source. Choose markdown output for structured preservation (headings, links, bold); choose plain text when feeding to models that don't benefit from Markdown syntax.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:45:09.024Z","isFirstParty":false,"canonicalSlug":"tanod-web-html-to-text-markdown-converter-02f9c3d4"}