Skip to main content
FixLines

Remove HTML tags

Strip HTML tags and keep only the text.

Editor

Ln 1, Col 10 lines0 words0 characters

Remove HTML tags: what it does

Paste HTML and get the text without tags, ready for a document, an email or a database field. The content of script and style blocks is removed along with their tags. Entities such as & stay as they are; decode them with the HTML encode and decode tool.

Remove HTML tags: how to use it

  1. Paste the HTML.
  2. Select Apply.
  3. Copy the plain text.

Remove HTML tags: when to use it

  • Get the plain text of an article or an email copied as HTML source.
  • Turn a product description from a CMS export into text for a spreadsheet or a feed.
  • Count or search the words of a page without the markup getting in the way.

Remove HTML tags: examples

Get the text of a snippet

Input

<p>Hello <b>world</b></p><style>p{color:red}</style>

Result

Hello world
Clean a list copied from a page

Input

<ul>
  <li>First item</li>
  <li>Second item</li>
</ul>

Result


  First item
  Second item

Remove HTML tags: questions and answers

Are scripts and styles removed too?

Yes. Script and style tags are dropped together with the code inside them.

What about &amp; and &nbsp;?

They are left untouched. Use the HTML encode and decode tool to turn them back into characters.

Are line breaks kept where the HTML had block elements?

The line breaks in your text are kept. Tags themselves are removed without adding new line breaks, so inline markup leaves the sentence intact.

Does it remove comments and attributes?

Yes. Whole tags are removed, including their attributes, and HTML comments disappear with them.

Is my text sent to a server?

No. Everything runs in your browser on your own device, so your text never leaves it.

Tools people often use together with this one.

More in Clean upBrowse all text tools