Skip to main content
Premier SEO Services

Developer tools

HTML to Text Converter

Strip the tags from HTML and get readable plain text: paragraphs and line breaks kept, lists as bullets or numbers, links as text with their URL, and entities such as & decoded.

  • Runs in your browser
  • Free, no sign-up
  • Unlimited use
  • Updated 30 September 2026

HTML to Text Converter

Paste your text — the result updates as you type

  • Paste HTML source; the tool doesn't fetch pages from a URL.

How to use the HTML to text converter

  1. 1Paste HTML into the HTML box, or press Example. The text appears as you type.
  2. 2Choose how Links appear: Text only, Text (URL) or Markdown [text](URL).
  3. 3Set Headings (plain, Markdown # or UPPER CASE) and Table cells (tabs or |), and decide on Bullets and numbers for lists and Keep image alt text.
  4. 4Press Copy or Download (text.txt). The footer shows the word count.

Example

Input
<h1>Spring sale</h1>
<p>Everything is <strong>20%&nbsp;off</strong> until Friday. <a href="https://example.com/sale">See the sale</a> &amp; save.</p>
<ul><li>Shirts</li><li>Shoes</li></ul>
<script>trackVisit()</script>
Output
Spring sale

Everything is 20% off until Friday. See the sale (https://example.com/sale) & save.

- Shirts
- Shoes

Links: Text (URL). The script is removed with its content; &nbsp; and &amp; are decoded.

What's kept and what's removed

All tags are removed, but the structure they express is turned into plain-text layout: paragraphs, headings and block elements are separated by blank lines, <br> becomes a line break, and <hr> becomes ---. Text inside <pre> keeps its spacing exactly.

Elements whose content isn't readable text are removed entirely, content included: <script>, <style>, <head>, <noscript>, <template>, <svg>, <iframe>, <canvas>, <select> and <button>. Comments are dropped. Inline formatting (bold, italic, spans) disappears without leaving gaps.

Line breaks, lists and tables

List items each go on their own line. With Bullets and numbers for lists ticked they start with - or 1. (respecting an <ol start>), and nested lists are indented by two spaces per level. Untick it for one item per line without markers.

Table rows become lines, and cells are separated by a tab (pastes into a spreadsheet as columns) or by | for something readable in an email. Runs of spaces and line breaks in the source are collapsed the way a browser displays them, so the text matches what the page shows rather than how its code was indented.

Links controls what happens to <a href>:

OptionResult
Text onlySee the sale
Text (URL)See the sale (https://example.com/sale)
MarkdownSee the sale

With Text (URL), the URL isn't repeated when the link text already is the URL, and mailto: is dropped from email links. Links that only jump within the page (#top) or run JavaScript are kept as text only. The text-plus-URL form is the usual choice for the plain-text part of an HTML email.

Entities and special characters

HTML entities are decoded to the characters they stand for: &amp; → &, &lt; → <, &eacute; → é, &#8364; and &#x20AC; → €, &mdash; → —. A non-breaking space (&nbsp;) becomes a normal space, so words don't stick together in the text. Invalid numeric references become the replacement character �, as browsers do. With Keep image alt text ticked, images appear as [image: alt text], which keeps the meaning of image-only links. To count the words in the result, use the word counter.

Is my text private?

This tool runs entirely in your browser. Your text is not uploaded to our servers.

Sources

Questions about the HTML to text converter

How do I remove HTML tags but keep line breaks?

Paste the HTML here: <br> becomes a line break and paragraphs, headings and list items are separated by line breaks automatically.

Are scripts and styles removed?

Yes, together with their content, along with <head>, <noscript>, <svg> and <iframe>. Only text a reader would see remains.

Can I paste a URL?

No, this tool converts HTML you paste. Open the page, view its source (Ctrl + U in most browsers), copy it and paste it here.

Last updated 30 September 2026Maintained by Premier SEO Services

Report a problem