Map Extract
Free tool

Strip HTML tags and keep the text

Paste HTML from an email template, a scraped description or a page's source, and get plain text back. Scripts and styles are thrown away, entities such as £ become real characters, and you decide whether line breaks and link addresses stay.

Runs in your browser. Nothing you enter is uploaded.

Example: the text part of a follow-up email

A joinery firm's follow-up email was built in an HTML editor. With Keep link addresses in brackets ticked, the quote link is spelled out, which is what a plain-text reader needs, since there is nothing to click.

The table cell, inline font styling and bold tag disappear; paragraphs are kept apart by a blank line and the line break before the name is respected.

Input
<td style="font-family:Arial"><p>Hi Priya,</p><p>Thanks for the call. The <b>quote</b> is <a href="https://tidewell.example/q/118">here</a>.</p><p>Regards,<br>Tom</p></td>
Result
Hi Priya,

Thanks for the call. The quote is here (https://tidewell.example/q/118).

Regards,
Tom

Converting HTML to text

  1. Paste the HTML

    A full page, a fragment or an email template. Example buttons above the box load an email body, a page snippet and a list.

  2. Choose about links

    Keep link addresses in brackets writes the address after the link text. Leave it off when you only want the words, for example to count them.

  3. Choose about layout

    Keep line breaks and paragraphs is on by default. Turn it off to run everything into a single line, which suits a spreadsheet cell or a database field.

What is kept and what goes

List items come out as lines starting with a dash, and table cells are separated by spaces, so structure survives in a rough form. Everything inside script and style tags is removed completely, including tracking code that would otherwise turn into nonsense text.

Turning line breaks off is handy when cleaning a column of descriptions collected from websites or directories, where each value should sit on one row. With both options off, the example email becomes a single line: Hi Priya, Thanks for the call. The quote is here. Regards, Tom

Questions people ask

How do I remove HTML tags from text?

Paste the HTML into the box above. Every tag is removed, the text between them is kept, and character codes such as &amp; and &nbsp; are turned back into normal characters. Copy the plain text from the result box. Nothing in the original is changed.

Will it keep the links?

Only if you ask. With Keep link addresses in brackets on, each link becomes its text followed by the address in brackets. With it off, only the link text remains. Images are dropped, as they have no text to keep, so check that nothing important was carried in a picture.

Is this the same as copying text from a web page?

Similar, but more predictable. Copying from a browser can bring hidden menu text, odd spacing or formatting when pasted into another app. Converting the HTML gives the same result every time and lets you control line breaks and links explicitly.

Where your data goes

Tags are stripped by a text parser on this page, which never runs the scripts it finds. The HTML and the plain text stay in your browser.

Checked against the tool on

Top