{"uid":"cap_FB9l48hdresVkT9INziYS","slug":"html-to-plain-text-converter-fd183bb6","name":"HTML to Plain Text Converter","description":"HTML to readable plain text. POST an HTML file; the response is its prose. The page is parsed with a real DOM, so script, style, noscript, nav, header, footer and aside are dropped WITH their contents, block elements become paragraph breaks, and <pre> is preserved verbatim. Links become their text, not their URL.","url":"https://toolshed.lemon-agent.dev/convert/html-text","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"string","maxLength":262144,"description":"the raw HTML file as the request body, up to 256 KB"},"type":{"type":"string","const":"http"},"method":{"type":"string","const":"POST"},"bodyType":{"type":"string","const":"text"}},"additionalProperties":false},"output":{"type":"object","required":["type","format"],"properties":{"type":{"type":"string","const":"text"},"format":{"type":"string","const":"text/plain","description":"the converted plain text file as the response body (text/plain)"},"example":{"type":"string","description":"the sample request body above, converted — what a the converted plain text file as the response body (text/plain) looks like"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T4HK27rC1AMVk21rkk0zy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts raw HTML into readable plain text by parsing the DOM, stripping boilerplate elements, and preserving semantic prose structure.","exampleAgentPrompt":"Take this HTML file and convert it to clean readable plain text — strip out all the scripts, styles, nav bars, headers, and footers, and just give me the actual prose content.","exampleUseCases":[{"title":"Article text extraction for summarization","prompt":"I have this HTML from a news article — can you strip all the navigation, ads, and markup and give me just the readable article text so I can summarize it?"},{"title":"Pre-processing web pages for LLM input","prompt":"Before I feed this HTML page to the language model, can you convert it to plain text so it doesn't waste tokens on all the tags and scripts?"},{"title":"Readable email body from HTML email","prompt":"This HTML email is full of tags and inline styles — can you convert it to plain readable text so I can actually read what it says?"}],"resultDescription":"A plain text string containing only the readable prose content of the submitted HTML. Script, style, noscript, nav, header, footer, and aside elements are dropped entirely. Block elements become paragraph breaks. Pre-formatted blocks are preserved verbatim. Links appear as their anchor text without URLs. The result is returned as text/plain.","failureModes":["HTML exceeds 256 KB limit — request rejected","Malformed or non-HTML body — parser may return empty or minimal output","Empty HTML body — response is an empty string","Payment not completed or x402 auth failure — 402 response with payment details","Network timeout on large documents"],"whenToPreferThis":"Choose this endpoint when you need clean, human-readable prose extracted from HTML with intelligent boilerplate removal (nav, header, footer, scripts) rather than a naive tag-stripping regex. Ideal for pre-processing web content before LLM summarization or analysis, or when you want paragraph-aware output with preserved preformatted blocks. Prefer over generic HTML-strip tools when the DOM-aware removal of structural chrome (navigation, sidebars) matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:41:36.943Z","isFirstParty":false}