HTML to Text

Convert HTML into clean, readable plain text. Tags are removed, entities decoded, and structure such as paragraphs, line breaks and lists is kept.

Options
List bullets

Processed in your browser. Nothing you type is uploaded.

How it works

The HTML is scanned as text, never loaded into the page, so scripts cannot run and images and other resources are not fetched. The contents of script, style, head, template, SVG and similar elements are dropped entirely. Block elements such as paragraphs and headings become blank-line-separated blocks, <br> becomes a line break, list items get bullets or numbers, and table cells are separated by tabs.

Rules this tool follows

  • Whitespace is collapsed as a browser would, except inside <pre> blocks.
  • Image alt text is kept in square brackets.
  • “Show link URLs” adds each link’s address in brackets after its text; javascript: and in-page # links are skipped.
  • Ordered lists are numbered 1., 2., 3.

Example

Input

<h2>Notes</h2><p>Fixed a <b>bug</b> in &quot;export&quot;.</p><ul><li>Faster</li><li>Smaller</li></ul><script>track()</script>

Output

Notes

Fixed a bug in "export".

• Faster
• Smaller

Common uses

  • Extracting readable text from web page source or HTML emails.
  • Cleaning CMS exports for word counting or translation.
  • Converting HTML descriptions into plain-text fields.

Limitations and notes

  • CSS is ignored, so content hidden with CSS still appears, and visual layout like columns is not reproduced.
  • Badly malformed HTML is handled leniently but may leave stray characters.

All web text tools