Strip HTML Tags

Paste HTML and get only its text, laid out the way the page showed it: paragraphs apart, list items and rows on their own lines.

How it works

Your browser's own HTML parser reads the input, through DOMParser. It builds the page structure without running any script or loading any image, and it decodes entities such as & and   exactly as a browser does.

The tool then reads the text out of that structure. Paragraphs and headings get a blank line between them; list items, table rows, <div>s and <br>s start a new line. Table cells are separated by tabs, so a table pastes into a spreadsheet as columns.

Scripts, styles, comments and the page's <head> are dropped with their contents. Spaces and line breaks in the source collapse the way a browser collapses them, except inside <pre>, which keeps its layout.

How to use it

  1. 1 Paste HTML into the HTML box.
  2. 2 Choose whether list items keep their bullets and numbers.
  3. 3 Read the plain text below. It updates as you type.
  4. 4 Copy it, or download it as a .txt file.

Good to know

  • To get the text of a whole web page, open its source (Ctrl+U or Cmd+Option+U in most browsers), copy all of it and paste it here.
  • The tab-separated table rows paste straight into Excel or Google Sheets as separate cells.
  • An email template's HTML often uses tables for layout. Its text comes out with tabs between the layout cells; switch to a text editor to tidy those if needed.
  • A < that is not part of a tag, as in "1 < 2", is kept as text.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Turning a product description from HTML into plain text

Online shops, CMS exports and email builders often hand you text wrapped in HTML. To put it somewhere that only takes plain text, such as a marketplace listing, a text message or a spreadsheet cell, the tags have to go. Deleting them by hand is slow, and a quick find-and-replace usually leaves lines run together or entities such as &amp; behind.

Here is a typical product description. It has a heading "<h2>Trail Mug</h2>", a paragraph "<p>Keeps coffee hot for <b>6 hours</b>.<br>Dishwasher safe.</p>", and a list "<ul><li>350 ml</li><li>Steel &amp; bamboo</li></ul>". Stripped with bullets on, the text reads "Trail Mug", a blank line, "Keeps coffee hot for 6 hours." and "Dishwasher safe." on two lines, a blank line, then "• 350 ml" and "• Steel & bamboo". The bold tags are gone, the <br> became a line break, and &amp; became a plain &.

Switch bullets off and the last two lines become "350 ml" and "Steel & bamboo" with no marker, which suits a spreadsheet column. Numbered lists work the same way: with bullets on they keep their numbers, starting from the number the list itself starts at.

Tables are laid out for pasting into a spreadsheet. A row "<tr><td>Size</td><td>350 ml</td></tr>" becomes "Size", a tab, then "350 ml". Paste a block of those rows into Excel or Google Sheets and each value lands in its own column. Whitespace in the source, such as the indentation an editor adds, collapses to single spaces, as it does when a browser shows the page.

The tool has limits. It keeps text only, so link addresses, image descriptions and all formatting are lost; use HTML to Markdown if you need the links. Text that a page draws with CSS, such as content added in a style sheet, is not in the HTML and cannot appear here. Text written by a script after the page loads is not in the source either. And input over one million characters is refused rather than slowing the page.

Frequently asked questions

Is it safe to paste HTML with scripts in it?

Yes. The HTML is parsed into an inert document: scripts do not run, images do not load and nothing is fetched. Script and style blocks are removed together with their contents, so their code does not appear in the text either.

Why is there a blank line between some lines and not others?

It follows the page. Paragraphs, headings, lists and tables are separate blocks, so they get a blank line between them. Lines inside one block, such as list items or lines broken with <br>, follow each other directly.

What happens to images and links?

Images are dropped, since they have no text of their own. Links keep their visible text and lose their address. To keep the addresses, convert the HTML to Markdown instead.

Is there a size limit?

Yes, one million characters. The text is read on this page, and the limit keeps that well under a second.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.