HTML to Text
Convert HTML into readable plain text, for example to build the text part of an email or to read a page without markup. The converter, built on the html-to-text library, keeps paragraphs and line breaks, turns lists into bullets, lays out tables, writes link URLs in brackets after their text and can wrap lines at a fixed width.
Frequently asked questions
How are links shown?
With Show link URLs on, each link is written as its text followed by the URL in square brackets. Turn it off to keep only the link text.
What happens to images?
By default images are left out. With Show images on, each image is written as its alt text followed by its source in square brackets.
How are headings and lists formatted?
Headings are separated from the text around them and written in capitals unless you turn that off. Unordered lists use asterisks and ordered lists use numbers.
What does word wrap do?
It breaks lines at the given number of characters, between words, which suits plain text emails. 80 is a common width. Enter 0 to keep every paragraph on one line.
Are tables supported?
Yes. Tables are laid out as text columns with their cells side by side, and header cells are written in capitals together with the headings. This works best for small data tables.
Are scripts and styles removed?
Yes. The content of script and style elements is not text, so it does not appear in the output.