HTML tags remover
Remove all HTML tags from code or copied content and keep only the readable text. Clean up emails, CMS exports and web copy. Free HTML stripper.
Strip out HTML and keep the words
Copying content from a web page, CMS export, HTML email or rich-text editor often brings tags, inline styles and attributes along with it. The HTML tags remover deletes every tag, like <div>, <span style="..."> and <a href="...">, and leaves only the plain text.
Use it when you need clean text for a document, a plain-text email, a spreadsheet, a text-to-speech script, a word count or an SEO analysis.
Paste the HTML, submit, and copy the text.
How to use the html tags remover
- Paste the HTML content.
- Submit to remove the tags.
- Copy the plain text result.
Examples
Scripts leave their code behind
Input: <p>Hello <b>world</b>!</p><script>alert(1)</script>
Output: Hello world!alert(1)
The tags go, but the text between script tags stays. Delete script and style blocks before stripping.
List items run together
Input: <ul><li>One</li><li>Two</li></ul>
Output: OneTwo
Tags are removed without adding spaces or line breaks. Put each item on its own line in the source first, or add spaces afterwards.
Line break tags
Input: Tom & Jerry<br>Next line
Output: Tom & JerryNext line
<br> doesn't become a new line, and entities like & stay encoded.
Plain less-than signs
Input: 5 < 10 and 10 > 5
Output: 5 < 10 and 10 > 5
A lone < followed by a space isn't treated as a tag, so math survives.
Common uses
- Converting HTML emails or newsletters to plain text versions.
- Cleaning CMS or database exports full of markup.
- Getting readable text from page source code.
- Preparing content for word counts, translation or text-to-speech.
- Removing formatting before pasting into another editor.
- Getting the text of a page for a summary or translation.
- Making a plain-text version of a product description for a marketplace or feed that doesn't accept HTML.
- Cleaning text copied from Word or Google Docs exports saved as HTML.
Tips and things to know
- Removing tags also removes links' URLs. Extract them first with the URL extractor if you need them.
- Text may still contain entities like
&; decode them with the HTML entity converter. - Remove leftover duplicate or empty lines with the duplicate lines remover, then count words with the character counter.
Edge cases and limitations
- Text like
<3or<name>can be mistaken for a tag and removed. - Comments (
<!-- -->) are removed with the tags. - Line breaks already in the source are kept, so HTML that has one tag per line gives text with one item per line.
- Empty lines left where block tags used to be can be removed with the duplicate lines remover or by hand.
Frequently asked questions
What does an HTML tag remover do?
It deletes everything between < and >, leaving the visible text content.
Will it remove scripts and styles?
Tags are removed. Check the output for leftover script or style contents, which may remain as text.
Does it keep line breaks?
Line breaks in the source are kept, but layout from tags like <p> or <br> isn't converted into new lines.
Can I keep links?
Tags including <a> are removed. Extract URLs separately before stripping.
Why did part of my text disappear?
Anything that looks like a tag is removed, so <3 and text in angle brackets like <name> disappear with it. Replace < with < in those spots before stripping.
Related tools
- HTML entity converter: Encode or decode HTML entities for any given input.
- URL extractor: Extract http/https URLs from any kind of text content.
- Character counter: Count the amount of characters and words of a given text.
- Markdown to HTML: Convert markdown snippets to raw HTML code.
- Emojis remover: Remove all the emojis from any given text with ease.
Popular free tools
Create strong, random passwords in one click. Pick the length and include uppercase, lowercase, numbers and symbols. Free, no signup.
Convert text to UPPERCASE, lowercase, Sentence case, Capital Case, camelCase, PascalCase, snake_case, CONSTANT_CASE, dot.case or param-case. Free.
Create a WhatsApp click-to-chat link with your phone number and a prefilled message. Add it to your site, bio, ads or QR codes. Free wa.me generator.
Upload a QR code image or screenshot and read the link or text inside it, no phone needed. Check where a QR code leads before you open it. Free.
Look up the DNS records of any domain: A, AAAA, CNAME, MX, NS, TXT and SOA. Check email, SPF, verification and nameserver settings for free.
Split any URL into its parts: scheme, host, path and query parameters. Inspect tracking links, UTM tags and API endpoints. Free online URL parser.