HTML to Text

Paste HTML code or open an .html file and get the plain text. The tags are removed, paragraphs and line breaks are kept.

100% private — runs entirely in your browser. Your data is processed on your device and never sent to the internet.

HTML code
Download .txt

About HTML to Text

This free HTML to text converter removes all HTML tags and keeps what a reader sees: the words, the paragraphs, the line breaks, the lists and the tables. Paste the code or open an .html file, and the plain text is ready at once.

Simple tag removers glue words and lines together. This tool reads the code the way a browser does, so a <p> starts a new paragraph, a <br> starts a new line, and a <li> gets its bullet or number.

Features

  • Line breaks stay — <p>, <br>, <div> and headings become new lines
  • Lists stay — bullets and numbers, also start, type and lists inside lists
  • Tables stay — one row per line, with a tab between the cells
  • Code and style go — <script>, <style>, comments and hidden parts are left out
  • Entities are decoded — &, é and € become &, é and €
  • Links your way — only the words, or the words with the address
  • Open a file — .html and .htm, also old files that are not UTF-8
  • Private — the code is not run, nothing is loaded and nothing is uploaded

How to use it

  • Paste the HTML code in the left box, or click Open a file (or drop the file on the box)
  • The plain text appears on the right and is copied when you paste
  • Choose what happens to new lines, lists and links
  • Click Copy or Download .txt

What each tag becomes

HTMLPlain text
<p>One</p><p>Two</p>One, an empty line, Two
One<br>TwoOne, then Two on the next line
<ul><li>Milk</li><li>Eggs</li></ul>• Milk and • Eggs, each on its own line
<ol start="3"><li>Third</li></ol>3. Third
<td>Ann</td><td>5</td>Ann, a tab, 5
<a href="https://example.com">Site</a>Site — or Site (https://example.com)
<pre>The text with its spaces and lines as they are
<input type="checkbox" checked>☑
<script>, <style>, display:noneNothing

What people use it for

  • E-mail — make the plain-text version of an HTML newsletter
  • Web pages — get the readable text out of saved pages or page source
  • Descriptions — clean product or job texts that come with tags
  • Data — remove tags from a database export before you read or translate it
  • Writing — count the words of a page, without counting the code

Frequently asked questions

How do I remove HTML tags but keep the line breaks?

Paste the code and leave New lines on Keep all new lines. Paragraphs are split by an empty line, and every <br> starts a new line.

Is the HTML code run on my computer?

No. The code is only read. Scripts do not start, and pictures, fonts and style sheets are not loaded.

Can I convert an .html file to .txt?

Yes. Click Open a file, choose the .html file and click Download .txt.

I copied text from a page, not code. Which tool do I need?

Use Remove Text Formatting. It takes the copied text with its style and gives you plain text.

Does it keep the links?

Tick Keep link addresses. The address is then written behind the words, in brackets.

Good to know

  • A table that is only used for page layout is read cell by cell, not as rows with tabs
  • Pictures are left out. A picture of an emoji becomes that emoji
  • Your options are remembered on this device, your code is not

Related tools

We add new tools regularly — subscribe on YouTube to be notified when each one goes live.

More tools

View all

Recommended Apps

View all