HTML to Plain Text
Extract readable text from HTML locally. Decode entities, retain paragraph breaks and remove script and style contents.
How to use
Paste HTML source to extract text without rendering a web page. HTML entities such as & and 中 become ordinary characters. Paragraphs, list items, table rows and br elements create text separators.
Scripts, styles, templates and embedded object contents are removed. The input is parsed in an inert template fragment that is never attached to the document. Image URLs and other pasted resources are not loaded.
Behavior and limits
This is structural extraction, not a screenshot or computed innerText. CSS visibility rules and generated content are not evaluated. Links keep their visible text but not their URLs; use a Markdown converter if you need link syntax.
Questions & answers
Can this sanitize HTML for a website?
It produces plain text, not sanitized HTML. Display the result as text; use a dedicated sanitizer when you need safe HTML markup.
Is my input uploaded?
No. Processing runs in your browser. This tool does not send your input to an API or save it in local storage. Text tools accept up to 200,000 characters.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Check headings, links, tables, paragraphs/entity conversion and removal of active script/style content.
- Comparison reference
- Fixed DOM/text expectations, plus GFM tables/fences for Markdown.
- Verification scope
- These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
-
workbench.test.js
- HTML text extraction decodes entities, keeps structure and removes active contents
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.