How to use HTML to Text
- Paste a page, an email or a fragment into the HTML box.
- Choose the options: Show link URLs after the link text, Show image alt text as [alt], and Bullets and numbers for list items (on by default).
- Copy the Plain text result or download it as text.txt.
What it does and when to use it
Many places only accept plain text: the text part of an email, an SMS, a form field, a word counter, a translation tool or a spreadsheet cell. Copying from a browser window works for one page, but not for HTML you have as source code, such as a newsletter template, a CMS export or a saved page.
The converter keeps the reading order and the shape of the content. Headings and paragraphs are separated by a blank line, br becomes a line break, list items get • or numbers, nested lists are indented by two spaces, and a horizontal rule becomes a line of dashes.
If you want to keep headings, bold text and links as formatting, convert to Markdown with HTML to Markdown instead. To clean the HTML but keep it as HTML, use the HTML Cleaner.
How it works
The tool parses your HTML into a tree in the browser and walks through it. Text nodes are decoded (& becomes &, € becomes €) and whitespace is collapsed. Block elements add line breaks around their content, and table cells are joined with a tab so the rows paste neatly into a spreadsheet. Ordered lists honour a start attribute. Nothing is uploaded.
Worked examples
The sample café page. The title and the comment in the head disappear, and the menu becomes:
• Asparagus soup — €7
• Pea & mint risotto — €14
The pre block below it keeps its two-space indent.
Numbered steps, a link, an image and a table, with both link and image options ticked. An ol that starts at 3 gives:
3. Preheat
4. Mix flour (/flour)
[Cake]
Size Price
Small €9
No bullets. With Bullets and numbers for list items off, a nested list becomes Tea, Coffee and an indented Espresso, each on its own line.
Limits and tips
- CSS is not applied, so text hidden with
display: nonestill appears, and text added by CSScontentdoes not. - Table cells that contain block content are flattened. For a proper spreadsheet, use HTML Table to CSV.
- The result keeps line breaks from
brtags. To go the other way, from text with line breaks to HTML, use the Newline to BR Converter.
Frequently asked questions
Is this better than just deleting everything between angle brackets?
What happens to links?
What is removed completely?
Are spaces inside pre blocks kept?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.