Strip HTML Tags
Strip HTML tags online and convert HTML to plain text: scripts and styles removed, entities decoded, line breaks kept. Safe, free and private in your browser.
How to use Strip HTML Tags
- 1Paste HTML source or open an .html file.
- 2Choose whether to keep line breaks for block elements, collapse whitespace, or show link addresses.
- 3Copy the plain text; the summary shows how many tags were stripped.
What makes it better
- Parsed safely: scripts never run
- Script, style and head contents removed
- Entities like & and decoded
- Optional “text (url)” for links
About Strip HTML Tags
Strip HTML Tags converts HTML into plain text. The markup is parsed in an isolated document that is never attached to the page, so scripts do not run, script and style contents are dropped, entities such as & are decoded, and paragraphs, list items and line breaks turn into real line breaks.
Common uses
- Get readable text out of an HTML email or saved web page.
- Strip markup from CMS content before pasting into a plain-text field.
- Extract the wording from a snippet to proofread or count words.
- Convert a link list to text while keeping the addresses.
Example
Input
<h1>Welcome</h1> <p>Hello <b>world</b> & friends.</p> <script>alert(1)</script> <ul><li>One</li><li>Two</li></ul>
Result
Welcome Hello world & friends. One Two
Good to know
- This extracts text; it does not render the page, so CSS, images and anything loaded by scripts are ignored.
- Text inside <pre> is treated like other text; its exact spacing is not preserved when whitespace collapsing is on.
- Everything is processed locally and nothing is fetched, including images or links in the HTML.
Strip HTML Tags FAQ
How do I remove HTML tags from text?
Paste the HTML and the plain text appears. Tags are removed, script and style contents are dropped, and entities like & are decoded to the characters they stand for.
Is it safe to paste HTML that contains scripts?
Yes. The HTML is parsed into an inert document that is never added to the page, so scripts are not executed and nothing in the markup is loaded.
Can I keep the links?
Turn on “Show link addresses” and links become “text (url)”. Anchors that only point within the page, such as #top, are left as plain text.
How are paragraphs and lists handled?
With “Keep line breaks for block elements” on, paragraphs and headings are separated by a blank line, and list items, table rows, divs and <br> each start a new line.
What does it do with broken HTML?
The browser’s HTML parser is forgiving, so unclosed or mis-nested tags still produce sensible text.