Strip HTML Tags
Delete every tag from a piece of HTML and keep only the text, with your choice of line breaks and entity decoding.
Processed locally in your browser/ Your data stays in your browser.
What is Strip HTML Tags?
Stripping tags is the quick way to get the text out of markup copied from a web page, a CMS field or an e-mail. Unlike a full HTML-to-text conversion, it keeps your text as it is and simply removes the <tags>, comments and, optionally, script and style content.
With "keep line breaks" on, <br>, paragraphs, divs, list items and headings are replaced by a newline so lines do not merge. HTML entities such as & and é can be decoded, and the tidy option trims each line and collapses runs of blank lines.
How does it work?
- Paste the HTML into the input box.
- Leave "keep line breaks" on to separate block elements, or turn it off to join everything.
- Choose whether entities are decoded, script and style content is removed and lines are tidied.
- Copy or download the plain text.
Common use cases
- Getting the plain text of a description copied from a product page.
- Cleaning a CMS export before counting words or checking spelling.
- Removing markup from a database field that should have been plain text.
- Reading the text of an HTML e-mail without the styling code.
Examples
Try this input in the tool above:
<div class="card">
<h2>Café & Thé</h2>
<p>Open <b>daily</b> from 8 am.<br>Free Wi-Fi.</p>
<style>.card { color: red }</style>
<script>track("x")</script>
<!-- internal note -->
</div>Café & Thé Open daily from 8 am. Free Wi-Fi.
Privacy
Strip HTML Tags runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
This is a text-extraction tool, not an XSS sanitizer: do not use it to make untrusted HTML safe, and without line breaks the text of adjacent table cells can run together.
Frequently asked questions
How is this different from HTML to Text?
Stripping only deletes tags and keeps the text as written. HTML to Text also builds structure: bullets for lists, "text (url)" for links, blank lines between paragraphs and tabs between table cells.
Can I use it to sanitize user input?
No. Removing tags with a tool is not a reliable defense against cross-site scripting. Sanitize on the server with a dedicated library and encode output for its context.
Which entities are decoded?
A common set of named entities (&, <, , é, €…) and every numeric entity such as é or 😀. Rare named entities are left as they are.
Related tools
HTML to Text Converter
Paste HTML and get clean plain text with sensible line breaks, bullets and optional link addresses.
Developer Tools
HTML Formatter
Paste minified or messy HTML and get clean, consistently indented markup you can read and diff.
Developer Tools
HTML Minifier
Shrink your HTML with a conservative minifier that leaves <pre>, <textarea> and <script> content untouched.
Developer Tools
HTML Entities Decoder
Turn <, é, € and 😀 back into the characters they stand for.
Encoding & Decoding
Text Cleaner
Sanitize text copied from the web, documents or AI chats: invisible characters, curly quotes, odd spaces and Unicode quirks, each step under your control.
Text Tools
Remove Extra Spaces
Clean up spacing in pasted text: double spaces, stray tabs, trailing spaces and runs of blank lines.
Text Tools
Trim Lines
Remove the spaces and tabs at the start and end of each line of a list or block of text.
Text Tools