Extract readable text out of an HTML page or email

View-source dumps and HTML emails are unreadable. Strip the markup and keep the text — with links listed separately if needed.

Tools used in this guide

The job

You copied a web page and the paste came out with tags attached, or you need the text of an HTML email for a search index, an archive, or a screen reader. Removing tags by regex corrupts entities and produces junk; parsing is the reliable way.

Worked example

Paste <h1>Invoice</h1><p>Total: <b>¥1,100</b> (incl. tax)</p> and extract: you get "Invoice" on one line and "Total: ¥1,100 (incl. tax)" on the next — one line per block element, entities resolved.

Switch the line-break mode to join everything into a single paragraph when you want running prose. The optional link list extracts every href so URLs hidden behind link text are not lost.

  • Script, style, and head content are skipped, so pasted page source yields the visible text.
  • The browser's own parser repairs invalid HTML the same way a browser would — mismatched tags and missing closers still produce clean output.
  • Images contribute only their alt attribute text. Layout (tables, columns) flattens into plain lines.

Limits

Input up to 500,000 characters. Extraction is text-only — it does not convert to Markdown or preserve formatting. For HTML you wrote yourself and want rendered, the Markdown preview is the opposite direction.