Remove HTML tags

Paste the HTML of a page or email and get just the readable text.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter html, turn paragraphs and list items into lines and decode entities such as &.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

Comments and the contents of script and style are dropped, whitespace is collapsed as a browser does, br and the ends of block tags such as p, div and li become line breaks, other tags are removed, and numeric and common named entities are decoded.

Example

Inputs: Turn paragraphs and list items into lines = yes, Decode entities such as & = yes. Result: Result: Offer Save 20% today & tomorrow. Free delivery Easy returns; Tags removed: 12.

<h2>Offer</h2>
<p>Save <b>20%</b> today &amp; tomorrow.</p>
<ul><li>Free delivery</li><li>Easy returns</li></ul>
Offer
Save 20% today & tomorrow.
Free delivery
Easy returns

Limits and caveats

  • Numeric entities and the common named ones are decoded; rare named entities are left as written.
  • Layout inside pre blocks and tables is flattened into plain lines.

Questions about this tool

Does script code appear in the result?

No. The contents of script and style tags are removed entirely because they are not readable text.

What happens to &nbsp;?

It becomes a normal space, &amp; becomes & and &lt; becomes <.

Are links kept?

Only the visible link text stays. The href address goes with the tag.