HTML to Text Converter

Turn HTML into clean, readable plain text.

  • Text Tools
  • Free, no sign-up
  • Runs in your browser

HTML to Text Converter tool

About the HTML to Text Converter

Text copied from a page's source code, an email template or a CMS export arrives buried in tags, attributes, scripts and entities. This HTML to text converter strips all of that away and keeps the structure that matters for reading: paragraphs and headings separated by blank lines, list items as dashes or numbers, line breaks preserved and entities decoded into normal characters. Scripts and style blocks are removed completely, so none of their code leaks into the text you copy. This is especially useful when moving articles between platforms.

The HTML is parsed by your browser's own HTML parser (DOMParser), the same engine that displays web pages, so even messy, unclosed or invalid markup is read the way a browser would read it, and nothing in it runs. The converter then walks through the document, adds line breaks around block elements such as paragraphs, headings, tables and list items, and collapses the extra spaces and line breaks that come from indented source code. You can choose to show each link's address after its text, and to keep image alt text.

Example: <h1>Title</h1><p>Hello <b>world</b> &amp;amp; friends.</p><ul><li>One</li><li>Two</li></ul> becomes the heading Title, a blank line, Hello world & friends., another blank line and the list items - One and - Two.

For the reverse direction, the text to HTML converter wraps plain text in paragraphs. To convert HTML to Markdown instead, use the HTML to Markdown converter, and to tidy markup the HTML formatter.

How to use the HTML to Text Converter

  1. Paste the HTMLA page source, an email template or a snippet.
  2. Choose the optionsShow link addresses, keep image alt text, keep list markers.
  3. Read the textParagraphs, headings and lists come out as clean text.
  4. Copy or downloadSave the result as a .txt file if you need it.

HTML to Text Converter features

  • Removes every tag and attribute
  • Drops scripts, styles and hidden code
  • Keeps paragraphs, headings and line breaks
  • Lists as dashes or numbers
  • Decodes all HTML entities
  • Optional link addresses and alt text
  • Parsed safely, nothing runs

Common uses

  • Extracting article text from a page source
  • Plain-text versions of HTML emails
  • Cleaning CMS and blog exports
  • Preparing text for translation or analysis
  • Copying content without formatting

Converting HTML to plain text: getting readable content out of web code

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

HTML is how web pages and many emails are written: text wrapped in tags such as <p>, <h2> and <a>. When you need just the words, for a document, an email, a word count or analysis, the tags get in the way. Converting HTML to text strips the markup while keeping the content readable. This guide explains what a good conversion keeps, what it removes and how entities and whitespace are handled.

What gets removed

  • Tags: every <...> element, such as <div>, <span> and <strong>.
  • Scripts and styles: the contents of <script> and <style> blocks, which are code, not text.
  • Comments: <!-- ... --> notes left by developers.
  • Attributes: class names, IDs and inline styles.

What a good conversion keeps

A naive tag stripper produces one long run of words. A better conversion keeps the structure that makes text readable:

HTML elementPlain text result
Paragraph <p>separate paragraph with a blank line
Line break <br>new line
Heading <h1> to <h6>heading on its own line
List item <li>line starting with a bullet or dash
Table cell <td>values separated by spaces or tabs
Link <a>link text, optionally with the URL

HTML entities

HTML represents some characters with codes called entities: &amp; for &, &lt; and &gt; for < and >, &nbsp; for a non-breaking space, &quot; for a quotation mark and numeric codes such as &#8217; for a curly apostrophe. Decoding entities turns them back into the characters they represent, so "Fish &amp; Chips" becomes "Fish & Chips". For converting individual strings in either direction, HTML Encoder/Decoder is useful.

Whitespace

HTML collapses runs of spaces and line breaks in the source into single spaces when displayed. Source code is often indented and spread over many lines that have nothing to do with how the text looks. A conversion that respects this collapses the source whitespace and uses the structure of tags to decide where real line breaks go.

Common uses

  • Copying content from a web page's source without the code.
  • Converting HTML emails into plain-text versions; good emails include both.
  • Word counts on web content, using Word Counter after conversion.
  • Content migration between website systems.
  • Analysing text from scraped or exported pages.

A worked example: plain-text version of a newsletter

An email marketer has an HTML newsletter and needs the plain-text alternative that email standards recommend. Converting it keeps the headline, paragraphs and bullet lists, and turns links into "link text (URL)" so readers can still find the pages. A quick edit removes leftover phrases like "View in browser" and image captions that make no sense without images. The result is a clean, readable plain-text email.

Images and alt text

Images have no text of their own, but their alt attributes describe them. Some conversions include alt text in brackets so the meaning is not lost, which is especially helpful when the image contained important information. If alt text is missing on your own pages, Image Alt Checker finds images that need descriptions.

Converting the other way

To turn plain text into HTML with paragraphs and links, use Text to HTML Converter. For converting HTML to Markdown, which keeps formatting such as bold and links in a lightweight form, use HTML to Markdown Converter.

Safety note

Converting HTML to text is a safe way to read the content of untrusted HTML, because scripts are removed rather than run. The conversion here happens in your browser without executing the page's code.

Tables and columns

HTML tables do not survive the move to plain text with their grid intact, because plain text has no cells. A good conversion places each row on its own line and separates the cells with tabs. Tab-separated rows paste neatly into a spreadsheet, where each value lands in its own column again. Complex tables with merged cells or nested tables rarely convert cleanly, so for important data it is often quicker to copy the table from the rendered page in a browser rather than from the source code.

Menus, footers and hidden content

A converter sees everything in the source, including navigation menus, cookie notices, footers, hidden pop-ups and text inside <noscript> blocks that visitors never see. The plain-text result of a whole web page can therefore start with forty lines of menu links before the article begins. Trim these sections by hand, or copy only the part of the source that holds the main content, often inside an <article> or <main> element. That gives a far cleaner result than converting the entire page.

Garbled characters

If the converted text shows sequences like "é" where "é" should be, or "’" in place of an apostrophe, the HTML was saved in one character encoding and read in another. Modern pages use UTF-8 and declare it with <meta charset="utf-8">. The fix is to open or copy the source as UTF-8 before converting. Garbled characters are not caused by the conversion itself, and they will appear in any tool that reads the file with the wrong encoding.

Privacy

The HTML is processed in your browser. Email content and page source are never uploaded.

Frequently asked questions

How do I remove HTML tags from text?

Paste the HTML here and the tags disappear at once, leaving readable text with paragraphs and list items in place. Copy the result or download it as a text file.

Does it keep line breaks and paragraphs?

Yes. Block elements such as paragraphs, headings, list items, table rows and <br> tags become line breaks, with blank lines between paragraphs, so the text keeps its shape.

Are HTML entities converted?

Yes. Named and numeric entities such as &amp;amp;, &amp;nbsp;, &amp;eacute; and &amp;#8364; are decoded into the actual characters: &, a space, é and €.

Is it safe to paste untrusted HTML?

Yes. The HTML is parsed into an inert document that is never displayed or executed, and scripts are discarded, so pasting HTML from anywhere cannot run code on this page.

Can I keep the link URLs?

Yes. Turn on show link addresses and each link's URL is written in brackets after its text, such as our site (https://example.com), so no information is lost.

What happens to tables?

Each table row goes on its own line and the cells are separated by tabs, so the text can be pasted back into a spreadsheet with the columns intact.

How is this different from copying text in the browser?

Copying from a rendered page works for visible pages, but this tool also works on raw source code, email templates and exported files that you cannot open as a normal web page.

Does it convert HTML to Markdown?

No, it produces plain text without formatting marks. For headings, bold, links and lists in Markdown syntax, use the HTML to Markdown converter instead.That tool keeps headings, bold text and links as Markdown syntax.