Free · No sign-up · Runs in your browser

Strip HTML Tags

Paste HTML and get readable plain text back. Tags are removed, entities like & are decoded, and block elements become line breaks so the result keeps its structure instead of collapsing into one blob.

0 chars0 lines

What it does with structure

  • Script and style blocks are removed entirely, including their contents — otherwise you would get CSS and JavaScript in your output.
  • Block elements (<p>, <div>, <li>, headings, table rows) become line breaks, preserving the shape of the document.
  • Line breaks (<br>) become newlines.
  • Entities like &amp;, &lt;, and &nbsp; are decoded into the real characters.
  • Inline tags are removed without adding whitespace, so bold or linked words stay joined to the sentence around them.

Common uses

Pulling readable copy out of a CMS export or an email template. Getting an accurate word count on content that lives as markup — paste the result into the word counter. Cleaning scraped page source down to its text. Preparing a plain-text alternative for an HTML email. And stripping formatting from content copied out of a rich text editor that insists on carrying its markup with it.

A note on sanitising untrusted HTML

This tool is designed for reading and reformatting, not for security. If you are handling HTML from users and intend to render it on a page, do not rely on tag-stripping as your defence — use a purpose-built sanitiser on the server, or escape the content entirely. Regex-based tag removal is well known to be defeatable by malformed markup, and the safe pattern is to escape rather than to strip.


Frequently asked questions