Skip to content

HTML to Text Converter

Convert HTML to text: strip the tags and keep clean, readable plain text you can copy or download.

HTML

Tab inserts indentation. Press Escape, then Tab, to move focus out of the editor.

Plain text

28 words · 172 characters

How to convert HTML to text

  1. Paste HTML on the left, or open or drop an .html file.
  2. The plain text appears on the right straight away, with a word and character count.
  3. Adjust the options — keep or flatten line breaks, keep link text, add link URLs.
  4. Copy the text or Download TXT to save it as text.txt.

Extract readable text from HTML

Stripping tags with a quick search-and-replace leaves you with entities like &, script code and words glued together where paragraphs used to be. This converter reads the HTML like a browser does and keeps only what a reader sees:

  • Headings and paragraphs are separated by blank lines, <br> becomes a line break, list items start with a dash or their number, and table cells are separated by tabs.
  • Entities such as &amp;, &eacute; and &#8364; become normal characters, and images are replaced by their alt text.
  • Scripts, styles, the page title in <head>, SVG graphics and iframes are left out, as are elements marked with the hidden attribute or aria-hidden="true". Text hidden only with CSS, such as style="display:none", is kept.

Parsing happens locally in your browser in an inert document, so no scripts run and no images or trackers load, even from untrusted HTML.

Examples: links, lists, tables and line breaks

Links

By default only the link text stays. With Include link URLs, the address follows in brackets; links to a place on the same page (#faq) don't get one. Untick Keep link text to keep just the URLs, or drop links entirely.

HTML
<p>Read the <a href="https://example.com/docs">documentation</a> or the <a href="#faq">FAQ</a>.</p>
Text
Read the documentation or the FAQ.
Text with “Include link URLs”
Read the documentation [https://example.com/docs] or the FAQ.

Lists

Bullet items start with a dash and numbered items keep their numbers, including a list that starts at 3.

HTML
<ul>
  <li>Free</li>
  <li>No signup</li>
</ul>
<ol start="3">
  <li>Open the file</li>
  <li>Copy the text</li>
</ol>
Text
- Free
- No signup

3. Open the file
4. Copy the text

Tables

Each row becomes a line and the cells are separated by tabs, so the text pastes into a spreadsheet as columns.

HTML
<table>
  <tr><th>Plan</th><th>Price</th></tr>
  <tr><td>Basic</td><td>$5</td></tr>
  <tr><td>Pro</td><td>$12</td></tr>
</table>
Text (a tab between cells)
Plan	Price
Basic	$5
Pro	$12

Line breaks

Paragraphs are separated by a blank line and <br> becomes a single line break. Untick Preserve line breaks to get everything on one line.

HTML
<p>Questions?<br>Call us at 555-0100.</p>
<p>Thanks &amp; regards,<br>The Team</p>
Text
Questions?
Call us at 555-0100.

Thanks & regards,
The Team

Extract text from an HTML email or saved web page

HTML email: open the message source in your mail program (often called Show original or View source), copy the HTML from <html> to </html> and paste it here. The converter reads HTML only, so .eml and .msg files can't be opened directly, and email source that is still encoded (you'll see =3D and lines ending in =) isn't decoded. The hidden preview text many emails start with is usually hidden with CSS, so it appears at the top of the text.

Saved web page: save the page from your browser as an HTML file and open it with Open file, or copy the page source and paste it. Navigation, footers and cookie notices are text too, so they stay in the result.

The same works for CMS exports and HTML reports, and for cleaning text before pasting it into AI tools, spreadsheets or word counters.

Other text and HTML converters

Going the other way? The text to HTML converter turns plain text into paragraphs and links. To see the HTML rendered first, open it in the HTML viewer, and to keep working on the extracted text, paste it into the online notepad. Converting a Word file? Use Word to HTML. To see what changed between two versions of a page's text, compare them in the diff checker.

Frequently asked questions

How do I convert HTML to plain text?
Paste the HTML or open an .html file. The plain text appears instantly: tags are removed, entities like &amp; are decoded, and paragraphs, headings and list items stay on their own lines.
Are scripts and styles included in the text?
No. The content of <script>, <style>, <noscript> and <template> elements is skipped, as are elements with the hidden attribute or aria-hidden="true". Text hidden only with CSS, such as display:none, is kept.
Can I keep the links?
Yes. Enable Include link URLs and each link is written as its text followed by the address in brackets, which is handy for plain-text emails.
What happens to tables and lists?
List items become lines starting with “- ” (or numbers for ordered lists), and table cells are separated by tabs, so tables can be pasted into a spreadsheet.
How do I convert HTML to plain text and save it as a .txt file?
Paste the HTML or open the file, check the plain text on the right, then press Download TXT. The text is saved as a UTF-8 .txt file, so accents and emoji survive.