1. Home
  2. Writing & text tools
  3. Strip HTML Tags

Strip HTML Tags

Get the words out of an email template, a CMS export or a page’s source without a jumble of tags, entities and inline scripts.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Strip HTML Tags

  1. Paste the HTML or open an .html file.
  2. Choose how links, lists and tables are written.
  3. Copy the plain text.

Features

  • Paragraphs, headings, list items and table rows on their own lines
  • Entities such as &   é decoded
  • Scripts, styles and hidden elements removed, never run
  • Links as text, text (URL) or numbered footnotes
  • Table cells separated by tabs for pasting into a spreadsheet

Supported formats

You can open

  • Typed or pasted text
  • TXT
  • HTML file

You get

  • Copied text
  • TXT

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Strip HTML Tags is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Text added to a page by JavaScript is not in the HTML source and cannot be extracted.

Guide

Stripping HTML tags without losing the structure of the text

HTML is text wrapped in instructions. Getting the text back out sounds like deleting everything between < and >, but the result of that shortcut is hard to read: paragraphs run into each other, list items lose their bullets, table cells merge, &amp; and &nbsp; stay as codes and the contents of scripts and style sheets end up in the middle of your text. This tool reads the HTML the way a browser does and writes out what a reader would see.

Structure is kept

Headings, paragraphs and other block elements become separate paragraphs, with or without an empty line between them. Line breaks from <br> stay line breaks. List items get a bullet of your choice, and items of numbered lists keep their numbers, including a list that starts at a number other than one. Nested lists are indented. A horizontal rule becomes a short separator line.

Tables

Each table row becomes one line. Cells are separated by tabs, so pasting the text into Excel or Google Sheets puts every cell in its own column, or by a vertical bar for reading. Header and body rows are treated alike.

Links can be reduced to their text, written as “text (address)”, or turned into numbered references with the list of addresses at the end, which works well for emails and printed documents. Links whose text is already the address are not repeated. Images normally disappear, but their alternative text can be kept in square brackets, which preserves information such as chart descriptions.

Entities, scripts and hidden content

Character references like &amp;, &eacute;, &#8217; and &nbsp; are decoded into the characters they stand for. Scripts, style sheets, templates, inline SVG drawings, embedded frames, media players and form controls are dropped, as is anything marked hidden. Whitespace from the HTML source is collapsed as a browser would show it, except inside preformatted blocks.

Safe with untrusted HTML

The HTML is parsed by your browser into an inert document that is never displayed. Scripts cannot run and nothing is loaded from the internet, not even images, so it is safe to paste the source of a suspicious email or an unknown page. Nothing is uploaded.

Where it helps

Translators get clean source text from a CMS export. Support teams paste an HTML email template to proofread its wording. Developers extract content for search indexes or tests. Researchers collect the text of saved web pages for analysis.

A worked example

The snippet with a heading “Spring menu”, a paragraph with a link to “our farm”, a two-item list and a small table becomes: Spring menu, an empty line, the paragraph text, an empty line, “• Asparagus soup – €7” and “• Lamb with mint sauce”, then “Day” and “Opening” separated by a tab, and “Mon–Fri” and “12–22” on the next line. The script and style blocks at the end leave no trace.

Checking the result

Compare the plain text with the page as it appears in a browser. Headings and paragraphs should be separated, list items should start with a bullet or number and table cells should line up when pasted into a spreadsheet. If words run together, the source probably uses spans or line breaks for layout instead of paragraphs; the Text Cleaner can then fix the spacing.

Remove Markdown formatting with Markdown to Plain Text, encode or decode entities with the HTML Encoder, tidy the result with the Text Cleaner, or list the page’s links with Extract URLs.

Checked against the current version of the Strip HTML Tags on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Can I paste a web address instead of HTML?

No, the tool does not download pages. Open the page, use your browser’s “View page source”, select all and paste it here, or simply select and copy the visible text of the page.

Why is some text from the page missing?

Text inside scripts, styles and hidden elements is removed on purpose. Text that a page adds with JavaScript after loading is not in the HTML source at all; copy it from the page as displayed instead.

How are line breaks inside a pre block handled?

Preformatted text, such as code in a pre element, keeps its spaces and line breaks exactly. Everywhere else, runs of spaces and line breaks in the HTML source are collapsed as a browser would display them.

Is it safe to paste HTML with scripts in it?

Yes. The HTML is read by the browser’s parser into an inert document, so scripts are never executed and nothing is loaded from the internet, not even images.

Why not just delete everything between < and >?

That leaves entities like &amp; undecoded, runs paragraphs and list items together and keeps the contents of scripts and style sheets. This tool understands the structure, so the text reads like the page.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.