About the HTML to Text Converter
Regular expressions are a poor way to strip HTML: they break on attributes containing angle brackets, leave script code behind, and glue paragraphs together. This tool parses the markup with a real HTML parser, removes <script>, <style>, <noscript> and <template> elements entirely, then collects the text of what remains.
Block elements such as paragraphs, headings, list items and table rows end with a line break so the text keeps its structure; runs of blank lines collapse to one. Entities are decoded, so & becomes an ampersand and a space. Untick the paragraph option to get one continuous run of text instead.
Use it to get the plain-text version of an HTML email, to count the words of a page with the Word Counter, or to feed content to a tool that cannot read markup. For a version that keeps headings and links as Markdown, use HTML to Markdown.
How to use
- Paste HTML or upload the file.
- Choose whether to keep paragraph breaks.
- Copy the plain text.
Common questions
- Are hidden elements removed?
- Scripts, styles, noscript and templates are removed. Elements hidden only by CSS are kept, since the tool does not evaluate styles.
- Does it decode entities?
- Yes. All named and numeric entities become their characters.
- Can it extract only the links?
- Use the Link Extractor for a list of link text and URLs.