Strip HTML Tags
Remove all HTML tags from your content to extract clean plain text, with options to keep line breaks and link URLs.
Related Tools
How to Use
- Paste HTML Content — Paste raw HTML source code, from a short snippet to a full page, into the input field. Your original HTML stays in the input box untouched.
- Choose Stripping Options — Keep line breaks turns paragraphs, headings, list items, table rows, and <br> tags into new lines (untick it to join everything into one line). Keep link URLs adds each link's address in brackets after the link text.
- Copy Plain Text — Click Strip Tags to see the clean text in the output box, then copy it or download it as a .txt file for use in documents, emails, or data imports.
About Strip HTML Tags
Strip HTML Tags turns HTML into readable plain text. Paste a snippet, an email template or a whole saved page, and it returns only the text a visitor would see, with paragraphs, list items and table rows on their own lines. Content editors use it to move copy out of a CMS, email marketers to write the plain-text version of a newsletter, and analysts to get clean text for counting or analysis.
How it works
- The HTML is parsed by your browser's own HTML parser in an inert document: malformed markup is handled the way a browser handles it, scripts never run and images never load. Your HTML stays in the input box, and the text appears in a separate output box.
- Script, style, noscript, template, iframe, object and embed elements are removed together with their contents, and comments are dropped. Only the body is used, so the title and meta tags in the head are left out.
- Entities are decoded (
&→ &,©→ ©), and non-breaking spaces become ordinary spaces. - Whitespace is collapsed the way a browser displays it, except inside pre and textarea elements, where spacing and line breaks are kept.
- Keep line breaks (default): paragraphs, headings, lists, blockquotes, pre blocks and tables are separated by a blank line; br tags, list items, divs and table rows start a new line; and table cells are separated by tabs, so a table pastes into a spreadsheet as columns. Untick it to get everything on one line.
- Keep link URLs: each link is written as its text followed by the address in brackets. In-page links (#…) and javascript: links are skipped, and the address is not repeated when the link text already is the address.
Worked examples
The first three rows use the same input. In the output, ⏎ marks a line break and → a tab.
| Input | Options | Output |
|---|---|---|
<h2>Pricing</h2> <p>Plans start at <strong>$9</strong> a month.<br>Cancel any time.</p> <ul> <li>Unlimited documents</li> <li>Offline mode</li> </ul> <p>See <a href="https://example.com/pricing">all plans</a> or <a href="#faq">the FAQ</a>.</p> | Defaults | Pricing⏎⏎Plans start at $9 a month.⏎Cancel any time.⏎⏎Unlimited documents⏎Offline mode⏎⏎See all plans or the FAQ. |
| Same input | Keep link URLs ticked | Same as above, ending See all plans (https://example.com/pricing) or the FAQ. |
| Same input | Keep line breaks unticked | Pricing Plans start at $9 a month. Cancel any time. Unlimited documents Offline mode See all plans or the FAQ. |
<table> <tr> <th>Name</th> <th>Qty</th> </tr> <tr> <td>Apples</td> <td>3</td> </tr> </table> | Defaults | Name→Qty⏎Apples→3 |
Limitations
- Image alt text and the values of input fields are attributes, not text, so they are not included:
Photo: <img alt="A red bicycle">becomes just "Photo:". Add alt text by hand where it matters. - Navigation menus, cookie notices and footers are part of the body, so their text stays. Delete it from the output when you only need the article.
- Styles are not applied, so text hidden with CSS (display: none) or the hidden attribute still appears in the output.
- Inline elements with no space between them in the source run together, just as they do in a browser:
<b>New</b><b>York</b>becomes "NewYork". - Relative link addresses are written as they appear (/docs), not expanded to a full URL.
When to use it
Typical jobs: creating the plain-text part of an HTML newsletter, pulling article copy out of a CMS export or saved web page, cleaning scraped text before analysis, and checking how many words a page really contains by pasting the result into the Word Counter. To display markup as text instead of removing it, use the HTML Encoder & Decoder; to keep headings, links and lists as Markdown, use the HTML to Markdown Converter. The guide How to Strip HTML Tags and Extract Plain Text compares regular expressions with DOM parsing and covers cleanup after stripping.
Parsing happens in your browser, so unpublished drafts and private emails are never uploaded.
Frequently Asked Questions
Does the tool remove all HTML tags, including inline styles and scripts?
Yes. The HTML is parsed rather than just matched with patterns, and script, style, noscript, template, iframe, object, and embed elements are removed together with their contents, so no code ends up in the output. Anything in the document head, such as the title and meta tags, is also left out, because only the visible body text is extracted.
Can I keep links or other formatting?
The output is always plain text, so no HTML tags are kept. You can keep the addresses links point to: tick Keep link URLs and each link becomes its text followed by the URL in brackets, for example "Pricing (https://example.com/pricing)". Formatting such as bold and italics is dropped, but the words themselves are kept, and Keep line breaks preserves the paragraph structure.
How does the tool handle HTML entities like & or <?
HTML entities are decoded to the characters they stand for. & becomes &, < becomes <, numeric entities such as © become the matching symbol, and becomes a regular space. This produces clean plain text without leftover encoding artifacts.
Is this useful for web scraping or content extraction?
Yes. Raw HTML from a saved web page is full of markup, scripts, and styles. Pasting it here and stripping the tags leaves the readable text, which is far easier to analyze, index, or repurpose. Navigation menus and footers are part of the page body, so their text stays in the output; trim it if you only need the main article.
Will nested or malformed tags cause problems?
No. The tool uses your browser's built-in HTML parser, the same one that renders web pages, so unclosed tags, overlapping tags, and other malformed markup are handled the way a browser handles them. Parsing happens in an inert document: scripts in the pasted HTML do not run and images are not loaded.
Does stripping HTML tags affect line breaks and spacing?
With Keep line breaks on (the default), paragraphs, headings, lists, blockquotes, and tables are separated by a blank line, while <br> tags, list items, divs, and table rows start a new line, and table cells are separated by tabs. Spaces and line breaks inside the HTML source are collapsed the way a browser displays them, while <pre> blocks keep their spacing. With the option off, all text is joined into a single line with single spaces.