Text tools

Strip HTML Tags

Strip HTML Tags

Convert HTML to plain, readable text: tags removed, entities decoded, paragraphs and list items kept on their own lines.

About this tool

About Strip HTML Tags

Need the words from a web page, an email template, a CMS export or a database field full of markup? Paste the HTML and get plain text that reads the way the page did. Tags are removed, but structure is respected: paragraphs and headings are separated by a blank line, line breaks stay line breaks, list items become lines starting with a dash (numbered lists keep their numbers), table cells are separated by tabs so rows paste neatly into a spreadsheet, and whitespace is collapsed the way a browser does it. Entities such as &,  , é and ’ are decoded into real characters. Scripts, styles, the head section, SVG and form controls are dropped entirely rather than leaving code behind, and images are replaced by their alt text. The HTML is parsed as text and never loaded, so nothing in it can run or fetch anything. Extra spaces and blank lines are tidied afterwards, and the other cleaners are one tick away.

Built and maintained by Abhi JainUpdated

How to Strip HTML Tags

  1. 1

    Paste the HTML

    Paste HTML source or open an .html file in the Text box.

  2. 2

    Check the result

    Strip HTML tags is on, and spaces and blank lines are tidied. Adjust Empty lines or Trim if needed.

  3. 3

    Copy the text

    Copy or Download the plain text.

Strip HTML Tags: questions and answers

What happens to links?

The link text is kept and the URL is dropped. To keep links as Markdown, convert with HTML to Markdown instead.

Is script and style content removed?

Yes. Everything inside <script>, <style>, <head>, <template>, <noscript> and <svg> is removed, not just the tags, so no code ends up in your text.

Are HTML entities converted?

Yes. Numeric references, the HTML 4 named entities and the common HTML5 additions are decoded: &amp; becomes &, &nbsp; a space and &#8217; an apostrophe.

Is it safe to paste HTML from an unknown source?

Yes. The HTML is read as text by a parser in this page and never inserted into it, so scripts can't run and images can't load.