Convert HTML to TXT

Turn HTML files into TXT. The page title, then the text in reading order with one line per paragraph.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop HTML files on the dialor turn it to pick what to do

The text of a web page, as TXT.The page title comes first, then the text in reading order.

  1. What you get

    A TXT file with the page title at the top. The text follows in reading order, with one line for each paragraph.

    Tables become aligned columns. Images become their description and caption.

  2. What it leaves behind

    Link addresses are dropped. The words of a link stay in the text, but the address they point to does not.

    TXT has no formatting, so the file holds plain text only.

  3. Main text only

    Turn on Main text only to keep the article of a page and drop its menus, ads, sidebars and footers. The result is the main text, as a reader view shows it.

    Leave it off to convert the whole page.

HTML and TXT.What each format is, and the options this conversion takes.

  1. 01 · readable

    Main text only

    Keeps the article of a web page and drops its menus, ads, sidebars and footers.

The formats

From · HTML

HTML

The markup of web pages. Text, links and structure, usually with CSS and images alongside.

Extensions
.html .htm
MIME type
text/html
Kind
Text and data
To · TXT

Plain Text

Plain text with no formatting at all. The smallest, most portable form of a document.

Extensions
.txt .log
MIME type
text/plain
Kind
Text and data

In your code.The same HTML to TXT conversion through the API, for your app or your agent.

terminal
$ cv convert report.html report.txt
$ cv convert report.html report.txt

Questions.What people ask about HTML to TXT.

01OF 04

No. Link addresses are dropped. The text of the link stays as part of the page text.

Each image becomes its description and caption in the text. The picture itself is not in the TXT file.

Yes. Turn on Main text only to keep the article and drop menus, ads, sidebars and footers.

Tables become aligned columns in the text.

More conversions.Other ways in and out of HTML and TXT.