HTML to Text Converter

Paste HTML or open an .html file to get clean, readable text. Scripts, styles and hidden elements are dropped, entities are decoded, and paragraphs, lists and tables keep their shape.

Line breaks

Parsed in your browser. Scripts in the HTML are never run.

0 words · 0 characters

What is removed and what is kept

Plain tag stripping turns <h1>Hello</h1><p>World</p> into HelloWorld. This converter reads the HTML the way a browser lays it out instead, so headings, paragraphs and list items stay on their own lines and words don't run together.

  • Removed: <script>, <style>, <noscript>, <template>, <head>, comments, form inputs, SVG, iframes and media embeds.
  • Removed: elements with the hidden attribute, aria-hidden="true", or an inline style of display:none or visibility:hidden.
  • Kept: visible text, with HTML whitespace collapsed the way a browser renders it.
  • Kept: lists as - and 1. items, indented when nested; ordered lists respect their start number.
  • Kept: tables, one row per line; tables used only for page layout (as in many HTML emails) are read as normal text.

How to use HTML to Text Converter

  1. Paste HTML source into the HTML box, or click Open file and choose an .html file
  2. Pick how line breaks, links, lists and tables should come out
  3. Check the plain text on the right; it updates as you edit
  4. Click Copy text, or download the result as a .txt file

Why use tinyMD for HTML to Text Converter

  • Drops scripts, styles, noscript, templates, comments and elements marked hidden
  • Decodes entities such as &amp;, &nbsp; and &euro; into real characters
  • Keeps paragraphs, line breaks, numbered and nested lists, and <pre> whitespace
  • Tables become aligned columns or tab-separated rows you can paste into a spreadsheet
  • Options: keep link URLs, image alt text, list bullets, main content only, and paragraph, line or single-line output
  • Open an .html file or paste source; copy the text or download a .txt file

Frequently asked questions

How do I convert HTML to plain text?

Paste the HTML source into the left box or open an .html file. The plain text appears on the right as you type. Click Copy text, or download it as a .txt file.

Does it remove scripts, styles and hidden content?

Yes. Script, style, noscript and template contents are dropped, as are elements with the hidden attribute, aria-hidden="true" or an inline display:none / visibility:hidden style. Elements hidden only by a CSS class in a stylesheet can't be detected, because the stylesheet isn't applied.

Can I keep the link URLs?

Turn on Keep link URLs and each link is written as its text followed by the address in brackets, for example docs (https://example.com/docs). Anchor links (#section) and javascript: links are left out.

How are tables and lists converted?

Each table row goes on its own line. Choose Aligned columns for readable text, or Tab-separated to paste the rows into Excel or Google Sheets. Lists keep their bullets and numbers and nested lists are indented; switch off List bullets to get bare lines.

Can I get the text on one line or without blank lines?

Yes. Line breaks has three settings: Paragraphs (a blank line between paragraphs), Lines (each block on its own line, no blank lines) and One line (all whitespace collapsed into single spaces).

How do I skip a page's menus and sidebars?

Turn on Main content only. The converter then reads only the page's <main> element (or the first <article>) and skips <nav> and <aside> blocks. Pages without those elements are converted in full.

Is it safe to paste HTML from an email or an unknown site?

Yes. The HTML is parsed with the browser's DOMParser into a separate, inert document. Scripts in it never run, images and stylesheets are never fetched, and nothing is inserted into this page.

Can I convert a web page by URL?

Not directly; the tool doesn't fetch pages. Save the page (Ctrl+S or ⌘S) and open the .html file, or view the page source and paste it.

Is my HTML uploaded?

No. The conversion runs entirely in your browser and the HTML is not sent to a tinyMD server.