Code Tools

HTML → Text

All tools

Drop the tags from a block of HTML and keep only the words, with entities turned back into characters.

How it works

Four simple steps

1

Paste the HTML

Add an email body, article export or page fragment.

2

Tags removed

Markup and attributes disappear and entities are decoded.

3

Check line breaks

Breaks follow the source, so format minified HTML first.

4

Copy the text

Copy the plain text or download it as a .txt file.

HTML → Text

About HTML → Text

You need the plain wording of a marketing email, a CMS article export or a product description for a translation brief or a character count, and copying from the rendered page drags formatting along. Pasting the source here gives you only the text.

The converter lets the browser parse your markup, then reads back the text content and trims it. Tags and attributes disappear, character references such as &, < and   become the characters they stand for, and runs of three or more blank lines are reduced to one. Output updates as you type and can be copied or downloaded as a .txt file.

Line breaks in the result come from line breaks in your source, not from the tags. Minified HTML like <h1>Title</h1><p>Body</p> therefore produces TitleBody on one line. Put each block element on its own line first (the HTML beautifier does this in one step) and the text will follow. Contents of <script> and <style> elements count as text and appear in the output, so remove them first, or pull out just the article body with the CSS selector extractor. If you only want to turn entities into characters while keeping the tags, the HTML Decoder is the right tool.

Parsing uses the browser's own HTML engine on this page and nothing is uploaded. Stick to markup from sources you trust, since the browser may request images referenced in it while parsing.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

No. Bullets and numbers are drawn by the browser's styling and are not stored in the HTML, so list items come out as plain lines of text, one per line if each

  • sits on its own line in the source.

  • Yes, once script and style blocks are removed. The result is what a reader would see, without markup or entity codes inflating the count.

    View more FAQs

    Related tools

    View all

    HTML Formatter

    Beautify and indent HTML markup.

    Open

    CSS Formatter

    Format and pretty-print CSS.

    Open

    JS Formatter

    Beautify JavaScript code.

    Open

    JSON Formatter

    Beautify and validate JSON.

    Open

    Explore 321 free tools

    Everything you need as a developer, marketer or creator - in one beautiful place.

    Browse all tools