Toolvito

Works on this device

Email Plain Text Converter

Paste the HTML of an email to get its plain text part, with links, lists and the alt text of images kept as readable text. You can also turn a plain text email into simple HTML. The HTML is read as text in your browser and is never run.

Your email

An email is best sent with two parts: HTML and plain text. This makes the plain text part from the HTML.

Paste the HTML source of the message. It is read as text in this browser. Nothing in it is run, loaded or sent.

More options

Type 0 for no limit. The email standard RFC 5322 recommends lines of at most 78 characters.

Hidden text is often the preview line (preheader) of the email.

Soft hyphens and zero-width characters. Turn this off for Persian and other text that needs the zero-width non-joiner.

Your values are worked out in this browser. They are not sent to a server.

Your converted text will show here

Paste the source, or choose Try an example.

How to use the converter

  1. Choose what you want to make: the plain text part from HTML, or simple HTML from plain text.
  2. Paste the source in the box, or open a file from your device. The result shows as you type.
  3. Choose how links and images are written. More options has the heading style, table cells, a line length and hidden text.
  4. Choose Copy text or Download file. Read the text once before you send it.

Why an email has a plain text part

An email with design is HTML. Most sending tools put a second part beside it with the same message in plain text (the two parts travel together as multipart/alternative). A mail program that does not show HTML shows that part.

A text part that says the same as the HTML part is also what a careful sender does. This page makes that part from your HTML, so that the two parts match.

What happens to each part of the HTML

  • Text: runs of spaces and line breaks become one space, as a browser shows them. Text inside <pre> keeps its spaces and line breaks.
  • Paragraphs, headings, lists, tables, quotes: each gets an empty line before and after it, and never more than one. <br> starts a new line.
  • Links: the address is put after the link words in round brackets, or as a number with a list of addresses at the end. An address is not repeated when the link words already are that address. A link to a place in the same page (#top) has no address to show.
  • Email and phone links: the address or number is shown without mailto: or tel:.
  • Images: the alt text is put in square brackets. An image with no alt text leaves nothing.
  • Lists: a bullet item starts with - , a numbered item with its number. A list inside a list is moved in by two spaces.
  • Quotes: each line of a <blockquote> starts with > .
  • Left out: scripts, styles, comments (also the comments that only Outlook reads), the page title and text that the HTML hides with hidden or display:none.
  • Character names: names such as &amp; and &eacute; and numbers such as &#8212; are turned into their characters.

Worked example

The HTML <h1>Spring news</h1><p>Order by <b>Friday</b>.</p><ul><li>Tulips</li><li>Daffodils</li></ul><p><a href="https://www.example.com/spring">See the list</a></p> gives five lines of text with an empty line between the blocks: Spring news, then Order by Friday., then - Tulips and - Daffodils, then See the list (https://www.example.com/spring).

The other way round, the text Order by Friday: https://www.example.com/spring becomes one <p> paragraph in which the address is a link.

Limits you should know

  • The page reads the HTML as text and never draws it. Styles in a <style> block are not applied, so text that such a rule hides is not known to be hidden. Only hidden and display:none on the tag itself are followed.
  • A layout made of tables is read from the first cell to the last. If the design puts two columns side by side, check the order of the text.
  • When you put the cells of a row on one line, a cell with no text is left out and leaves no gap, because the layout of an email is full of empty cells. In a table of data, the values after an empty cell then stand one place to the left.
  • Broken HTML is read with the usual repair rules: a missing end tag is closed where a browser would close it. Very unusual cases can differ from a browser.
  • The table of character names holds the 252 names of HTML 4, &apos; and some common newer names. A name that is not in the table stays as it is written.
  • A raw email file (.eml) is not HTML. Open the message, copy its HTML source, and paste that.
  • The line length note follows RFC 5322: lines should have at most 78 characters and must not have more than 998. Many mail programs wrap or encode long lines on their own.
  • The other direction is simple on purpose: paragraphs, line breaks and links. It does not make headings, lists or a whole page.
  • For a web page that is not an email, the HTML to Text Converter is the general tool. It can also keep every cell of a table of data in its place.

Related tools