# Extract HTML fragment text

Build-time release reference. Runtime readiness, deployment, payment settlement and external indexing are not evaluated here. Prices are proposed; this file cannot authorize execution or payment.

Use to flatten supplied HTML snippets into readable text. Uses parse5 HTML parsing, decodes entities, excludes script/style/template/noscript, optionally includes image alt text, and collapses source whitespace. Block elements and br yield line breaks or spaces. No network, CSS/layout/visibility computation, sanitization guarantee, or browser rendering; hidden elements can remain. Input is parsed as an HTML fragment. Conservative limits: 1,000 less-than characters, 64 lexically open tags (explicitly close optional-end tags), and 4,096 visited parser nodes.

Release: 0.29.0. Built: 2026-10-06T15:38:00Z.

## Choose for
- Parse provided HTML fragments locally and omit script/style/template/noscript text.

## Outside this profile
- URL scraping, browser-rendered visibility, or HTML security sanitization.

Proposed nominal USD 0.005 per successful call; payer fees excluded. No verified runtime availability.

- [Exact release contract](/reference/services/html-to-text.json)
- [Input schema](/reference/schemas/html-to-text.input.json)
- [Output schema](/reference/schemas/html-to-text.output.json)
- [Fixed example](/reference/examples/html-to-text.json)
- [Complete HTML reference](/discover/tools/html-to-text)
