Documents and Office

How to Convert HTML to Clean Plain Text Without Losing Structure

Turn web pages, newsletters and CMS exports into readable plain text: keep paragraphs, lists, tables and links, decode entities and drop scripts.

Saizul Amin
Saizul Amin5 Nov 2026 · 4 min read
How to Convert HTML to Clean Plain Text Without Losing Structure

Plain text is still the format that works everywhere. It goes into a plain email, a support ticket, an SMS gateway, a subtitle file, a translation tool, a spreadsheet cell or a machine learning dataset without surprises. The trouble is that most of the text we want to reuse lives inside HTML: a newsletter, a blog post, a product description in a shop system, a help article or an email that arrived with layout tables and tracking pixels.

Why removing tags is not enough

The quick fix is to delete everything between angle brackets. Try it on a real page and you get one enormous paragraph. In HTML, line breaks in the source mean nothing; the structure comes from elements. A p element is a paragraph, li is a list item, tr is a table row, h2 is a heading. Throw the tags away and the structure goes with them.

You also keep the codes for special characters. A newsletter is full of   for spaces that must not break, ’ for apostrophes and — for dashes. Left alone, they make the text unreadable.

Then there is content that should not be text at all: JavaScript, CSS, hidden template parts and invisible tracking elements. A naive strip leaves function names and colour codes in the middle of your words.

What a good conversion keeps

A useful plain text version reads like the page reads to a person:

  • Paragraphs separated by one blank line.
  • Headings on their own line, optionally in capitals or underlined so they still stand out.
  • Lists as bullet lines, numbered lists with their numbers, nested lists indented.
  • Tables as one line per row, with cells separated by tabs so the rows paste into a spreadsheet.
  • Links with their addresses, because "click here" means nothing without the URL.
  • Preformatted code with its spacing intact.

Step by step

Open the HTML to Plain Text Converter and add your content in one of three ways. Paste HTML source into the HTML box, open a saved .html file, or click the rich text box and paste content you copied from a browser, Word or your email program. That last option is handy because the clipboard carries the formatted version along with the plain one, and the converter reads the formatted version.

Next, choose how links should look. "Text (URL)" works for most emails and documents. Markdown links suit README files and chat tools. Numbered footnotes keep sentences clean and list each address once at the end, which is good for anything printed.

Pick a heading style and a table style. If you will paste tables into Excel or Google Sheets, keep them tab-separated. If people will read the tables in an email, the pipe style looks tidier.

Finally, decide on the clean-up options. Dropping hidden elements removes text the page never shows. Squeezing empty lines prevents gaps where the page had decorative spacers. A wrap column such as 72 breaks long lines for old-fashioned plain text email.

The result appears as you change options. Copy it or download it as a .txt file.

Converting many files

If you have a folder of saved pages, for example an old website export, use the batch option. Select all the .html files and you receive a ZIP file with one .txt file per page, all converted with the same settings. This is a quick way to prepare content for a search index, a translation memory or an archive.

Common questions from real use

Why does some hidden text still appear? Elements hidden with the hidden attribute or an inline display:none style are removed. Text hidden by a class in an external stylesheet cannot be detected without that stylesheet, so it stays.

What about images? By default they disappear. If the alt text matters, for accessibility review or to keep chart titles, turn on alt text and each image becomes a short note in brackets.

Can it handle other languages? Yes. Text stays in Unicode, and named codes for accented letters become the real letters.

Privacy

The conversion runs entirely in your browser. Pages, files and copied emails are never uploaded, which matters when the content is an internal newsletter or a customer message.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages