Skip to main content
Conversion
Format conversion

HTML → TXT

Converting a novel from HyperText (.html, .htm, .xhtml, .xml, .mhtml) to Plain text (.txt) is a routine step in practice — a TXT file is plain text, opens in far more software, and is smaller. Going from HyperText to Plain text does raise extra questions worth thinking about: you lose every illustration, cover and diagram; metadata such as title, author and language. Below we explain in detail how HyperText becomes Plain text and what to watch out for, and the page ends with a converter that does the job right in your browser — nothing is uploaded, the file never leaves your machine.

Tide Reader Editorial

What is HTML?

HTML and XHTML are the structural languages of the web, and XHTML is also what EPUB uses internally to hold its content — so converting between HTML and EPUB is essentially a matter of swapping the shell and how assets are packaged. .mhtml goes further and packs a page together with its images and styles into one file, which suits preserving online pages that may disappear. HTML's strength is that it is universal and opens in any browser; its weakness is that styles and images are usually external links, so shipping one self-contained file means inlining them first. Read the HTML format guide

Extensions.html.htm.xhtml.xml.mhtml
Typical useCaptured web content, EPUB internal content, and a general intermediate representation for other formats.

What is TXT?

TXT is plain text: nothing but characters and line breaks, with no presentation information at all. That makes it the smallest and most compatible option — from the most basic feature phone to any operating system, there is almost no software that cannot open it. Most Chinese web novels circulate as TXT, and it is the easiest format to copy, search, batch-process and convert further. The cost is that it stores no images, colours, tables or table of contents, and there is nowhere to keep the title and author, so it behaves more like a clean body of text than a complete book. Read the TXT format guide

Extensions.txt
Typical useChinese web novels, logs, and any text-only content that needs maximum compatibility.

How to convert HTML to TXT

All structure lives in the tags, but real pages mix in navigation, ads and footers that a naive conversion carries along. Extract the content container first (a readability pass), and note that <img> usually points outside the file — images must be downloaded and embedded before producing a single-file format.

Because TXT stores characters only, every font, size, colour, table, footnote and hyperlink is gone, and headings degrade to ordinary lines. You must also choose an encoding (UTF-8 for Chinese, GBK if targeting older devices).

Illustrations, covers and diagrams inside HTML files are images, and the TXT format stores none, so they are all lost. A comic HTML, for example, keeps everything in pictures — converting it to TXT throws away most of the content.

Metadata in the HTML source — title, author, publisher, language, table of contents, cover — has nowhere to live in the target, so converting to TXT loses all of it.

Any conversion touching TXT must settle encoding: Chinese TXT files are commonly UTF-8, GBK, GB18030 or BIG5, with or without a BOM. Write UTF-8 without BOM for best compatibility, or GBK for legacy devices. A wrong choice shows up as wholesale mojibake, not as an error.

Convert HTML to TXT

HTML → TXT

The conversion runs entirely in your browser — your file is never uploaded.

A novel reader that syncs your progress across every platform

Tide Reader opens TXT and EPUB, detects chapters on import, lays the text out the way you like it, and syncs your reading position across Windows, macOS, iOS and Android. Drop the converted file in and start reading.

Download Tide Reader

TXT and EPUB; local-first reading, with optional cloud sync and WebDAV.