Skip to content
UniKit

TXT novel cleaner

Paste a whole TXT novel, get a health report (missing, duplicated and out-of-order chapters, mojibake, zero-width characters, pirate-site ads, messy punctuation) and a cleaned TXT you can read again.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Novel text (paste the whole thing)

Paste the whole book freely; ad lines, mojibake and zero-width characters are handled locally. Keep a backup of the original file first.

Cleaned text

The output is still plain TXT you can copy or download; the report numbers come from the same run.

Paste novel text to see the cleaned result and the health report

Health report

Chapter list

No "Chapter N" style headings detected

What this tool does

  • Check a downloaded TXT novel for missing, duplicated or out-of-order chapters before deciding to download it again
  • Strip pirate-site watermarks such as "本书来自 www.xxx.com", zero-width characters and doubled blank lines
  • Repair classic mojibake like "日本" and then unify punctuation and paragraph indentation

Example

Input

第一章 开端

正文一。

第二章 继续
正文二...

第三章 转折
本书来自 www.example.com
正文三

Output

第一章 开端

正文一。

第二章 继续
正文二……

第三章 转折
正文三

With the defaults: one ad line removed, "..." normalised to "……" and repeated blank lines collapsed; the report shows 3 chapters with nothing missing, duplicated or out of order.

Frequently asked questions

How are missing or duplicate chapters detected?

Only headings shaped like "第 X 章 / 节 / 回 / 卷 / 集 / 篇" are recognised (X can be Arabic or Chinese numerals, e.g. 第三章, 第一百零二章). After collecting all numbers, the tool lists numbers missing between the smallest and largest, counts duplicated numbers and counts descents where a chapter number is smaller than the previous one. Other heading styles (like "Chapter 3") are not guessed at — the report simply shows that no chapters were recognised.

How does the mojibake repair work?

Most mojibake comes from UTF-8 bytes being interpreted as Latin-1 / CP1252. The tool maps every character back to a byte (including the CP1252 0x80–0x9F range such as — and œ) and decodes it with a hand-written UTF-8 decoder. The text is only replaced when the whole string decodes cleanly and the result looks like Chinese; otherwise the original is kept, so no new mojibake is created.

Can removing ad lines delete real content?

The rules are heuristic: lines containing typical watermarks such as 本书来自, 最新网址, 收藏本站, 无弹窗, 全文阅读, www.example.com, http(s):// links or 手机阅读 are dropped. Legitimate URLs inside the story can be removed too, so the option can be switched off, and after cleaning you can compare the "ad lines" counter in the report.

What exactly does punctuation normalisation change?

Three things: "..." and "。。。" become "……"; runs of the same punctuation (such as !!!) collapse to one; half-width , . ; : ! ? between Chinese characters become full-width. Genuine ellipses are never collapsed further.

Will reordering chapters move the wrong text?

No. Reordering splits the text at chapter headings and sorts each section together with its body, while untitled front matter (title, synopsis) stays at the top. Reordering is off by default; the "out-of-order spots" counter warns you first.

Is the text uploaded?

No. The whole book is processed in your browser memory, the page makes no network requests and stores nothing in the cloud; download or copy the result to keep it.

Keywords:novel cleaner

Related tools