Phrasit

Search Phrasit

Search every tool, guide, and citation page.

FREE · DECODES ENTITIES · KEEPS STRUCTURE · PRIVATE

Strip HTML tags

Convert HTML, an email source, or a copied web snippet into clean plain text. Tags are removed, script and style blocks are dropped, entities are decoded, and block tags become readable line breaks. You can keep link URLs too. Runs in your browser, nothing uploaded.

0 characters of plain text

Options

Tags are stripped with a parser that runs entirely in your browser, so nothing you paste is uploaded. Script and style blocks are dropped completely. For untrusted HTML this gives you safe, readable plain text, but it is a text extractor, not a security sanitiser for re-rendering HTML.

About the Strip HTML

Strip HTML tags converts markup into clean, readable plain text. Paste HTML, an email source, or a snippet copied from a web page, and it removes every tag, drops script and style blocks entirely, decodes HTML entities back into real characters, and leaves you with just the words. It is the fast way to get the content out of a page when you do not want the formatting, the inline styles, or the invisible markup that comes with a copy-paste.

It is built for the messy reality of pasted HTML rather than a pristine document. It turns block-level tags such as paragraphs, divs, list items, and line breaks into sensible line breaks so the text keeps its shape, can preserve link destinations as readable text in brackets, and collapses the cascade of whitespace that markup leaves behind. The result is text you can paste into a document, a CMS, or an email without dragging a tangle of tags along with it.

How to use it

  1. Paste your HTML or markup into the input box, or click Load sample to see how it works.
  2. Watch the plain text appear on the right as you type or paste.
  3. Leave decode-entities on so & and   turn back into normal characters.
  4. Keep the line-break option on to turn paragraphs, divs, and line breaks into readable line breaks, and turn on keep-links if you want anchor URLs shown next to their text.
  5. Click Copy to take the plain text; the character count shows how much content was extracted.

Examples

Clean a copied web paragraph

You copy a section of an article and it pastes with span, strong, and anchor tags plus   entities. The tool strips the tags, decodes the entities into real spaces and symbols, keeps the paragraph breaks, and gives you clean prose ready to quote in a document, without the styling baggage.

Extract text and keep the links

From a marketing email's HTML source you need the copy plus the URLs. With keep-links on, a link like <a href="https://example.com">our pricing</a> becomes the readable text our pricing (https://example.com), so you keep both the wording and the destination in plain text.

Frequently asked questions

Does it remove script and style code too?
Yes. The contents of script and style tags are deleted entirely, not just the tags, because that code is not page content. HTML comments are removed as well, so you are left with only the visible text rather than stray CSS rules or JavaScript appearing in the output.
What happens to HTML entities like &amp; and &nbsp;?
With decode-entities on, named entities such as &amp;, &nbsp;, and &mdash; and numeric entities such as &#39; are converted back to the real characters they represent. Turn the option off if you specifically want the raw entity text preserved, for example when documenting HTML itself.
Will the text keep any structure?
If you keep the line-break option on, block tags such as paragraphs, divs, headings, and list items become line breaks, and list items get a bullet, so the text keeps a readable shape. Turn it off to flatten everything into continuous prose with no breaks at all.
Is this a security sanitiser?
No. It is a text extractor that gives you safe plain text to read or paste, and it does run entirely in your browser so nothing is uploaded. But it is not designed to sanitise untrusted HTML for safe re-rendering as HTML; for that you need a dedicated sanitiser library on your server.

Good to know

Stripping tags well is more than deleting everything between angle brackets. A naive strip leaves script and style contents behind, mangles entities into literal &amp; text, and runs paragraphs together because the block structure is gone. This tool handles all three: it drops script and style blocks, decodes entities, and converts block-level tags into line breaks so the output reads like the page looked. Those details are the difference between usable plain text and a wall of run-together words.

Reach for it whenever HTML formatting is in your way: cleaning content out of a CMS export, pulling the copy from an email template, quoting a web page without its styling, or preparing scraped markup for analysis. Because it runs locally, it is safe for confidential pages. For the opposite job of previewing how Markdown renders to HTML use the Markdown previewer, and to tidy the whitespace that remains after stripping, follow up with the remove extra spaces tool.

Related tools