How to use
Paste your HTML
Paste markup into the HTML box, press Open .html, or drop a file on the box. Try sample loads a short newsletter with a style block, a list, an image, a link and a script.
Choose the options
Keep line breaks is on by default. Tick options to add list bullets, keep link URLs, show image alt text or remove blank lines. Type tag names in Keep these tags to leave, say, bold and links in place.
Copy the plain text
The Plain text pane updates as you type or change an option. Click Copy above it or Download .txt below, then press Clear for the next piece of HTML.
Why Strip HTML Tags
- Removes every tag and drops script, style and comments completely.
- Keeps line breaks, list bullets, link URLs and image alt text if you want them.
- Keep chosen tags such as b or a, with class, style and event attributes removed.
- Open an .html file or load a web page, then download clean text.
Example: an HTML newsletter turned into plain text
The Try sample button loads a short marketing email with a style block, a greeting with a line break, a bulleted list, a link and a tracking script. With Keep line breaks on and Keep link URLs ticked, the output reads:
Spring sale / Hi Priya, / Our spring sale starts today & runs all week. / 20% off shoes / Free delivery over ₹999 / See the offers (https://example.com/sale)
Each slash above marks a new line in the real output, and the heading, greeting, list and link are separated by blank lines. The CSS and the trackOpen() script are gone, & has become &, and ₹ has become the rupee sign. Untick Keep line breaks and the same email comes out as one long line, which suits a spreadsheet cell or a plain text preview field.
What happens to each part of the page
These rules decide what survives when tags are stripped. They follow the way a browser lays out a page, so the plain text keeps the same reading order and grouping you would see on screen.
- Text: kept. Runs of spaces and line breaks inside the HTML source collapse to a single space, as in a browser.
- Headings, paragraphs, lists, tables, blockquotes: start on a new line with a blank line around them.
- List items, divs, table rows and br tags: start a new line without a blank line.
- Pre blocks: with Keep line breaks on, spacing and line breaks inside them are kept as written.
- Script, style, noscript, template, iframe, svg and head: removed along with everything inside them.
- Comments: removed. Images: removed, or shown as [Image: alt text] when that option is ticked.
- List items: can start with - or, inside a numbered list, 1., 2. and so on.
- Entities: decoded to the real character unless you untick Decode entities.