Sign up free

HTML to Text Converter – Plain Text or Markdown

Strip the tags and scripts and turn HTML into clean, readable text.

HTML to Text Converter

About HTML to Text Converter

HTML to Text reads HTML with the browser's own parser (the scripts in it never run) and writes it out as text the way you choose: headings, paragraphs, lists and tables keep their shape, and entities such as & turn back into characters. There are five outputs: plain text, Markdown, the main content only (menus, headers, footers and sidebars removed), the links, and the tables as CSV.

Links can be written as text (address), numbered at the end or left as text; images can keep their alt text or go; tables can be drawn as a grid or separated by tabs or commas; and lines can wrap at a width you set, with Chinese, Japanese and Korean broken between characters and other languages between words. Copy part of a web page and paste it on the left to get its HTML, ready to convert. Many HTML files can be converted together and downloaded in one ZIP. For Markdown documents you can also use HTML to Markdown.

How to use HTML to Text Converter

  1. 1
    Add the HTML

    Paste HTML, open an HTML file, or paste content copied from a web page.

  2. 2
    Choose the output

    Plain text, Markdown, main content, links or CSV, with options as you like.

  3. 3
    Copy or download

    The result updates as you go; copy it or download a file.

Why use Cubfile for this

  • Structure kept

    Headings, paragraphs, lists and tables keep their layout in the text.

  • Main content only

    Finds the article and drops menus and sidebars.

  • Links and tables

    List every link; turn tables into a text grid or CSV.

  • Batch conversion

    Convert many HTML files at once and download a ZIP.

  • Nothing uploaded

    Converted in your browser; nothing is sent to a server.

FAQ

HTML to Text Converter: questions and answers

Does JavaScript in the HTML run?
No. The HTML is only parsed into a document; scripts, styles and external files are never run or loaded.
Can I convert a web page directly?
Select and copy content on the page, then paste it into the editor on the left; you get its HTML, converted to text. You can also save the page and open the HTML file.
What happens to tables when I convert HTML to text?
A text grid by default, aligned even with Chinese characters; or tab- or comma-separated rows, or use Tables to CSV to export only the tables for Excel.
What about garbled characters?
Files are read as UTF-8, GBK and other encodings automatically. Results download as UTF-8, and CSV files carry a BOM so Excel shows every character correctly.
Share HTML to Text Converter with a friendIt runs in any browser, and they can try it without signing up.

Related tools

HTML HTML, CSS & JS Online EditorWrite HTML, CSS and JavaScript and see the page live, with a console, phone and tablet sizes and common libraries.
HTML HTML FormatterIndent messy HTML so it’s easy to read.
TXT Online Text EditorEdit text, HTML and code in tabs: any encoding, regex find and replace, line tools, a live HTML preview and compare.
C Online C CompilerCompile and run C with Clang in your browser: typed input, files, and checks that point at the line of a bug.
CPP Online C++ CompilerCompile and run C++11 to C++23 with Clang in your browser, with the standard library and <bits/stdc++.h>.
PY Online Python CompilerWrite and run Python 3.14 in your browser: typed input, files, turtle drawings and matplotlib charts, errors explained.
GDB Online Debugger (C, C++, Python)Step through C, C++ or Python line by line, backwards too: breakpoints, variables, watches, the call stack and GDB-style commands.
SEO Broken Link CheckerCheck every link on a page and list the ones that are broken or redirected.