Free online text tool

Remove HTML Tags From Text

Remove HTML Tags strips the tags from your HTML and leaves plain text. Paste your HTML, click the button and copy the result. It is free and runs in your browser.

Online HTML Stripper

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Remove HTML Tags Example

Before
<title>Website Title</title> <div>DIV Box</div>
After
Website Title DIV Box

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Remove HTML Tags do?

This tool removes the HTML tags from your text and leaves only the text between them. Opening tags, closing tags and tags with attributes, such as <a href="...">, are all removed. Comments and a doctype line are removed too.

A less-than sign that is not part of a tag, as in 3 < 5, is kept. You can also remove the content of script and style tags, keep line breaks where block tags were, and turn entities such as &amp; back into normal characters.

Use it to get plain text out of a web page, an email template, a CMS export or any HTML source.

Remove HTML tags examples

Each example shows the options used. Unless an option is named, all options are off.

CaseBeforeAfter
Basic example
<title>Website Title</title> <div>DIV Box</div>
Website Title DIV Box
Tag with attributes
<a href="https://example.com" class="btn">Click here</a>
Click here
Doctype and comment
<!DOCTYPE html><!-- note --><p>Hi</p>
Hi
Less-than sign is kept
if a < b then <b>bold</b>
if a < b then bold
Script and style content, off
<script>alert(1)</script>Hello
alert(1)Hello
Script and style content, on
<script>alert(1)</script>Hello
Hello
Keep line breaks, on
<p>Hello</p><p>World</p><br>Bye
Hello
World
Bye
Decode entities, on
<b>Tom &amp; Jerry</b> &lt;3
Tom & Jerry <3

How to remove HTML tags

  1. 1
    Add your HTML or text
    Paste your HTML or text into the box, or import a text file.
  2. 2
    Choose the options
    Leave them unticked to remove only the tags. Tick an option to drop script and style content, keep line breaks or decode entities.
  3. 3
    Click Remove HTML Tags
    All the tags are removed at once. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the result where you need it.

When to remove HTML tags

Good for

Getting plain text out of a web page, an email template or a CMS export, and cleaning text before you count words or paste it elsewhere.

Check first

Only the tags are removed, so text inside script and style tags stays unless you tick that option. Words in neighbouring tags can join together unless you keep line breaks. The result replaces your text, so use Undo if you need the original.

Other tools

To remove only the comments try Remove Html Comments. To turn entities into characters try Html Entities Converter. To remove empty lines try Remove Empty Lines.

Remove HTML tags FAQ

What does the Remove HTML Tags tool do?

It removes every HTML tag from your text, such as <p>, </div> or <a href="...">, and leaves the text between the tags.

How do I remove HTML tags from text?

Paste your HTML or text into the box and click Remove HTML Tags. The tags are removed. Click Copy to use the result, or Undo to go back.

Does it remove tags with attributes?

Yes. A tag is removed with everything inside it, so <a href="https://example.com" class="btn"> is removed completely.

Does it remove comments and the doctype?

Yes. HTML comments, the doctype line and XML declarations are removed along with the tags.

Is a less-than sign always treated as a tag?

No. A tag must start with a letter, a slash, an exclamation mark or a question mark after the less-than sign. So a < b and 3 < 5 are kept as they are.

What happens to the text inside script and style tags?

By default it stays, because only the tags are removed. Tick Also remove the content of script and style tags to remove the whole block.

Why do some words join together?

If two tags sit right next to each other, such as </p><p>, nothing is left between the words. Tick Keep line breaks for br, p, div, li and headings to put a line break there.

What does decode HTML entities do?

It turns common entities such as &amp;, &lt;, &gt;, &quot; and &nbsp; and numbers like &#169; back into normal characters. It happens after the tags are removed.

What if there are no tags?

Your text is left as it is and you see the message No HTML tags found.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Remove Tools

Last updated: 12 November 2026