HTML Tag Remover

Strip HTML tags and extract text

Formatting

Starts a new line at paragraphs

Trims blank lines and spaces

Drops script and style contents

e.g. a, br, strong

0
Read-only
0

What is HTML Tag Remover?

A tool that strips tags from HTML and keeps only the text. Paragraph and heading breaks stay as line breaks, and characters such as & are converted back to the original characters. Use it to quote the body text of a web page, or to pull plain text from HTML emails and CMS output.

Tags can be kept selectively instead of removing all of them. The result updates as you type, so you can paste HTML and check the output right away.

How to Use

  1. Paste HTML into the input area.
  2. If needed, enter the tags you want to keep in “Tags to Keep”.
  3. Check the result without tags in the output area.

If you keep the list empty, all tags are removed.

Main Settings

Tags to Keep

Enter tag names separated by commas or spaces. Do not add <>.

a, p, br, strong

With this setting, those tags stay with their attributes while other tags are removed. Use it to keep links or line breaks.

Text Formatting

Three switches control how the output is built. All of them are on by default.

  • Insert Line Breaks: starts a new line at paragraphs, headings, lists, and other blocks. Turn it off to join everything into one flow
  • Tidy Whitespace: collapses repeated blank lines and trims the start and end of each line. Turn it off to keep the original indentation and blank lines
  • Remove Script and Style: drops the contents of script and style elements. Turn it off to read the code embedded in a page

Use Cases

  • Pulling only the body text from an HTML email and saving it as text
  • Pasting a page's HTML to read headings and body copy as a draft
  • Turning scraped HTML into text you can read as is
  • Copying body text while keeping links and their source URLs

Things to Keep in Mind

  • Kept tags are written with their attributes, so a link such as <a href="..."> keeps its destination
  • Turning off Insert Line Breaks joins paragraphs and list items together
  • When you paste a full HTML page, the contents of <head> are not included