Skip to content
Toolbrik

HTML to Plain Text

Paste an HTML fragment and get its plain text: scripts, styles and tags are removed, and blocks are preserved with line breaks. Optionally convert links to [text](url) format.

Input HTML

Convert links to [text](url)

Extracted text

Paste some HTML to extract its plain text.
The parsing is done with DOMParser: it respects HTML entities and real containers.
0 characters. Scripts, styles and tags are removed.

How to use: HTML to text

  1. 1Paste the HTML.
  2. 2Decide whether to turn links into [text](url) format.
  3. 3Copy the extracted plain text.

What is it for?

  • Pull the text out of an email or web page.
  • Prepare content for word counting or translation.
  • Clean HTML before importing it into another system.

Extracting clean text from HTML

What it does

It removes tags, scripts and styles, decodes entities such as & or   and keeps readable content with sensible line breaks.

Uses

Preparing a plain-text email, getting a page's content to analyze it, counting words or reviewing wording without the markup.

Security

Stripping tags is not a safe way to sanitize HTML for display on a website; use a dedicated sanitization library for that.

Related tools

Frequently asked questions

Is it processed in my browser?+

Yes. Parsing is done with local DOMParser: your data never leaves your device.

What does it do with HTML entities?+

It decodes them correctly (for example, & becomes &).

Was "HTML to text" useful?

Share it with whoever needs it. It's free and stores no data.