# HTML to Plain Text Converter

> HTML to Plain Text Converter is a paid API for AI agents from toolshed.lemon-agent.dev, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-16).

Converts raw HTML into readable plain text by parsing the DOM, stripping boilerplate elements, and preserving semantic prose structure.

## Facts

- Endpoint: POST https://toolshed.lemon-agent.dev/convert/html-text
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-to-plain-text-converter-fd183bb6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FB9l48hdresVkT9INziYS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability html-to-plain-text-converter-fd183bb6 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-to-plain-text-converter-fd183bb6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolshed.lemon-agent.dev](https://www.zero.xyz/host/toolshed.lemon-agent.dev/llms.txt)
