Remove HTML tags
Strip HTML tags and keep only the text.
Editor
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
- Paste the HTML.
- Select Apply.
- 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
Input
<p>Hello <b>world</b></p><style>p{color:red}</style>Result
Hello world
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 & and ?
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.
Related tools
Tools people often use together with this one.
- Straighten curly quotes
Replace smart quotes with plain straight quotes.
- HTML entities encode and decode
Escape text for HTML, or turn entities back into characters.
- Remove line breaks
Turn many lines into one line in a click.
- Remove extra spaces
Clean up double spaces and stray whitespace.
- Convert tabs to spaces
Swap tab characters for spaces, or the other way round.
- Remove accents from text
Replace accented letters with plain ones, or drop non-ASCII characters.