Skip to content

HTML to Text

✨ Converts as you type 0 lines · 0 B

Plain Text

Paste HTML on the left

Clean, readable text will appear here
Nothing to convert yet

HTML to Text Converter – Free Online Tool

What is an HTML to Text Converter?

It strips the HTML tags from a page or snippet and gives you just the words, as clean plain text. Not a jumble, though: headings and paragraphs land on their own lines, list items get bullets or numbers, table rows stay rows, and things like &amp; turn back into a real &. The code inside <script> and <style> is skipped, because no one reads that.

You’ll reach for it when you need the plain-text version of an HTML email, want to paste a web page into a document or a chat without the formatting, need a word count, or want clean text for a search index or an AI tool. It’s also a quick way to check what a page actually says once all the markup is gone. Everything runs in your browser, and nothing in the HTML is ever executed.

How to Use It – Step by Step

Five short steps. Paste the examples into the tool above to try them.

Step 1 Paste or Open Your HTML

Get your HTML into the left panel. Pick whichever is easiest:

  • Paste it: a snippet, an email template or a whole page from “View source”.
  • Open a file: click the upload button, or drag an .html file onto the tool.
  • Click Sample: loads a small newsletter with lists, a table, links and an image.

The text on the right updates as you type. The status bar under it counts the words, characters, lines and links.

Step 2 Blocks Become Lines

Headings, paragraphs and lists get an empty line around them, a <br> becomes a line break, and every list item starts with a bullet. Pick •, - or * in the Bullets menu.

Try it: a little menu

HTML:

<h2>Menu</h2>
<p>Fresh coffee<br>every morning.</p>
<ul>
  <li>Espresso</li>
  <li>Latte</li>
</ul>

Text:

Menu

Fresh coffee
every morning.

• Espresso
• Latte

Step 3 Numbered Lists and Tables

Numbered lists keep their numbers (even a custom start), nested lists are indented, and each table row goes on its own line with the cells separated by |, so the data still lines up in your head.

Try it: a recipe step list and a price table

HTML:

<ol>
  <li>Preheat the oven</li>
  <li>Bake for 20 minutes</li>
</ol>
<table>
  <tr><th>Size</th><th>Price</th></tr>
  <tr><td>Small</td><td>$3</td></tr>
  <tr><td>Large</td><td>$5</td></tr>
</table>

Text:

1. Preheat the oven
2. Bake for 20 minutes

Size | Price
Small | $3
Large | $5

Step 4 Keep Link Addresses (If You Want)

In plain text a link is just words, so the address is lost. Tick Link URLs to add it after the link text in square brackets. That’s the classic style for the plain-text part of an email. Tick Image alt text to keep images as [Image: …].

Try it: a sentence with two links

<p>Read <a href="https://example.com/docs">the docs</a>
or <a href="mailto:[email protected]">email us</a>.</p>

Link URLs off:

Read the docs or email us.

Link URLs on:

Read the docs [https://example.com/docs] or email us [[email protected]].

Step 5 Skip the Junk, Then Copy or Download

Scripts, styles, the <head>, hidden elements and form controls are left out, extra spaces and line breaks in the source collapse into one space (just like in the browser), and entities are decoded.

Try it: a messy snippet

HTML:

<style>p { color: red; }</style>
<p>Hello   &amp;
   welcome!</p>
<script>alert('hi');</script>

Text:

Hello & welcome!
  • Copy: puts the text on your clipboard.
  • Download: saves it as a .txt file, named after the page title.
  • Want to keep some formatting? The HTML to Markdown converter keeps headings, bold text, links and tables as readable Markdown.

Frequently Asked Questions

How is this different from just removing everything between < and >?

A quick regex that strips tags glues words together, keeps the code inside <script> and <style>, and leaves entities like &amp; behind. This tool reads the HTML the way a browser does: paragraphs and headings get their own lines, list items get bullets or numbers, table cells are separated with “|”, scripts and styles are skipped, and entities become real characters.

Are scripts, styles and hidden elements removed?

Yes. Everything in <head>, <script>, <style>, <noscript> and <template> is skipped, along with form controls, iframes, SVG code and elements marked hidden or style="display:none". You only get the text a reader would actually see.

Can I keep the link addresses?

Tick “Link URLs” and each link’s address is added after its text in square brackets, like “our docs [https://example.com/docs]”. That’s handy for the plain-text part of an email. If the link text already is the address, it isn’t repeated. Links to #anchors and javascript: links are left out.

What happens to images?

By default they’re left out, because an image has no text. Tick “Image alt text” to show each image as [Image: its alt text], so a reader still knows something was there.

Why does a big gap in my HTML turn into a single space?

Browsers collapse runs of spaces, tabs and line breaks in HTML into one space, and this tool does the same, so the text matches what you see on the page. Text inside <pre> is the exception: its spacing and line breaks are kept exactly.

Is my HTML uploaded anywhere?

No. The HTML is parsed and converted right in your browser. Nothing is sent to a server, and nothing in it runs: scripts are never executed and images are never loaded.

What can I use the plain text for?

The plain-text version of an HTML email, pasting page content into a document or a chat, counting the words on a page (the status bar shows words, characters and links), feeding clean text into a search index or an AI tool, or checking what a screen reader would read.