How do you remove HTML tags from text?
To remove HTML tags, paste your HTML code into the tool and the result is the plain text that was between the tags. Script and style blocks and comments are deleted completely, HTML entities such as & and are decoded, and line breaks are kept for paragraphs, lists and tables. It is useful for cleaning copied web content, preparing text for email or documents, and extracting content from code, all in your browser.
How to strip HTML tags from text
- 1
Paste your HTML into the input box.
- 2
Choose whether to keep line breaks, decode entities and collapse spaces.
- 3
See the clean text in the output box.
- 4
Click Copy or Download to use it.
Key features
Removes tags, scripts and styles
All tags are deleted, and script, style and comment contents are removed too.
Readable output
Paragraphs, headings, list items and table rows keep their line breaks, so the text stays organized.
Entity decoding
Codes such as &, ", , © and € are converted to real characters.
Safe and private
The HTML is treated as text and never run, and nothing leaves your browser.
Frequently asked questions
How do I remove HTML tags from a string?
Paste the string into the tool. Everything between < and > is removed and only the text content remains.
Does it remove the text inside script and style tags?
Yes. The content of script, style, head and similar elements is not readable text, so it is removed with the tags.
What happens to line breaks?
With Keep line breaks on, tags such as <br>, <p>, <li> and <tr> become line breaks, so paragraphs and lists stay on separate lines.
What are HTML entities?
They are codes for special characters in HTML, for example < for < and & for &. Decode HTML entities converts them to the real characters.
Can I use it to clean text copied from a web page?
Yes. Copy the page source or the HTML of a section, paste it here and get just the text. Copying visible text from a page directly usually already has no tags.