Boneyard Tools

Strip HTML Tags From Text

Paste HTML or markup to strip out every tag and get clean, readable plain text. Script and style blocks are removed with their contents, entities like & are decoded, and block tags can become line breaks.

How to strip HTML tags

  1. Paste your HTML or rich text into the input box.
  2. Choose whether to decode entities and keep line breaks.
  3. Copy or download the clean plain text result.

Examples

Strip a paragraph

<p>Hello <b>world</b></p>
Hello world

Remove a script block

<p>Visible</p><script>track();</script>
Visible

Frequently asked questions

What does stripping HTML tags do?

It removes every tag like <p>, <a> and <span> from your text and returns just the readable content. Script and style blocks are removed along with their contents.

Does it decode HTML entities?

Yes, by default. Entities such as &amp;, &lt;, &gt;, &quot;, &#39; and &nbsp; are turned back into the real characters. You can switch this off to keep them as written.

Can it keep paragraphs and line breaks?

Yes. With the line break option on, block tags like <br>, </p> and </div> become newlines so the plain text keeps its structure. Turn it off to flatten everything onto one line.

Will it remove dangerous scripts?

Yes. <script> and <style> elements are removed together with everything inside them, so leftover code and CSS never appear in the output.

What happens to a stray less-than sign?

A lone < or > that is not part of a real tag, such as in 2 < 3, is left untouched. Only valid tags and comments are removed.

Is my text private?

Yes. Stripping runs entirely in your browser and nothing is uploaded to a server.

Related tools