rockbenben/novel-processor
About
📖 一键修复网络小说排版,智能换行、章节重排、繁简转换、广告清理 | Downloaded a novel that's one giant wall of text? Fix line breaks, chapter order, ads and 简/繁 in one pass
Web & AppsMeasured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original📖 Novel Processor
One-click cleanup for web novels: smart line break, chapter reorder, Trad/Simp conversion, ad removal
English · 简体中文
Novel Processor is a one-stop cleanup tool built for web novels, e-books, and other long-form text. It auto-repairs formatting issues, strips ads, normalizes chapter titles, reorders by chapter index, and optionally does Trad/Simp conversion — turning chaotic novel text into something clean and readable. The entire pipeline runs in your browser; files never leave your machine.
👉 Try it online: https://tools.newzone.top/en/novel-processor

What problems does it solve?
Typical pain points with downloaded novels:
- Messy layout: paragraphs not separated, chapters running together, scattered blank lines
- Ad watermarks: downloader stamps, group-promotion lines, "split-volume reading" markers
- Inconsistent format: mixed Trad/Simp, full-width vs half-width chaos
- Broken line wrapping: sentences split mid-line, paragraphs broken at the wrong spots
- Chapter ordering: scrambled tables of contents, chapter titles without line breaks
Key features
- 📝 Smart Line Break: detect paragraph boundaries via Chinese punctuation, pure-numeric lines, and special starters; re-merge / re-split.
- 🏷️ Chapter Formatting: recognize "第 X 章" / "Chapter N" patterns and normalize; supports chapter split and reorder by extracted index.
- 🎨 Typesetting: paragraph indent, long-paragraph splitting, full-width → half-width, whitespace trim, adjacent-duplicate removal.
- 🧹 Content cleaning: custom keyword filtering, line-end digit stripping, body-paragraph protection threshold, auto-removal of downloader watermarks / split-volume markers.
- 🔄 Trad/Simp Conversion: built-in OpenCC engine for high-precision conversion.
- 🛡️ Protected Dictionary: shared with the Chinese Converter — define terms that should NOT be converted.
- 📦 Batch Processing: multi-file mode, large-file mode, auto-export option — no file-size limit (handles 3M-character mega-novels).
- 💻 Runs Locally: the entire pipeline runs in your browser; files never leave your machine.
- 🌐 Multi-locale UI: powered by next-intl, with full UI translation across 19 languages.
Page layout
Two columns:
- Left: file upload + text input + three primary action buttons + result card
- Right: three-section configuration Collapse + Protected Dictionary panel
File upload
- Drag-and-drop or click; supports
.txt,.md,.markdown, or paste text directly - Multi-file mode by default — drop an entire novel collection at once for batch processing
- In Single-File Mode (toggle in Advanced Settings), uploading a new file replaces the current one
Three primary action buttons
| Button | Behavior |
|---|---|
| Start Process | Run the full pipeline: applies every checked option from the right-side config in order |
| Chapter Split | Just one thing — split inline-concatenated chapter titles onto their own lines, nothing else |
| Chapter Reorder | Extract chapter index from each title (第十二章, Chapter 5, 第三卷 第四章, …) and re-sort the whole book. Untitled chapters go last |
When done, the result is auto-copied to clipboard and shown in the result card.
Configuration (right-column three-section Collapse)
1. Typesetting (expanded by default)
- Smart Line Break (on): re-merge wrap-broken lines based on Chinese punctuation
- Sub-toggle Paragraph Indent (visible only when Smart Line Break is on, default on): add
\tto each paragraph head
- Sub-toggle Paragraph Indent (visible only when Smart Line Break is on, default on): add
- Paragraph Split (off): break long paragraphs into shorter ones via sentence detection (the browser's built-in Intl.Segmenter + Chinese punctuation)
2. Chapter handling (expanded by default)
- Put chapter titles on their own line (on): split inline-concatenated chapter titles onto their own lines
- Merge duplicate chapter titles (on): merge repeated chapter headings
- Remove duplicate lines (on): drop only consecutive duplicate lines (preserves common short dialogue like "嗯" / "好")
3. Advanced Settings (collapsed by default)
- Remove trailing numbers (off): remove trailing digits only on lines ≥ 10 chars (avoids stripping years from short titles)
- Special Start Text: enter the novel title or a recurring header word — matching lines are forced into their own paragraph
- Filter Words + Filter Threshold:
- Filter Words: comma-separated keywords (
channel,downloader) — every matching line gets dropped - Filter Threshold: lines longer than N chars are exempt (kept even if they match) — protects body paragraphs. 0 disables the exemption.
- Filter Words: comma-separated keywords (
- Trad/Simp Conversion Segmented:
- None → skip this step
- Trad → Simp → uses
tw → cn - Simp → Trad → uses
cn → tw
- Single-File Mode: process one file at a time
- Auto-Export (visible only in single-file mode): skip preview and download directly
Protected Dictionary
Bottom-right of the page:
- Master toggle: enable / disable all rules
- Shows current s2t / t2s rule counts
- Manage Rules button: opens the drawer to add/edit/delete rules, plus batch import/export
The dictionary is shared with the Chinese Converter (same localStorage key) — edit in one place, applies in both. Only participates in processing when Trad/Simp conversion is actually enabled in Advanced Settings. When set to "None", the panel shows a "rules currently inactive" hint.
Full pipeline (Start Process button)
Clicking Start Process runs the complete pipeline in this order (unchecked steps are skipped):
- Trad/Simp conversion (if enabled): applies the appropriate protected rules
- Normalize newlines + strip novel artifacts: unify
\r\n→\n, remove common downloader watermarks /分卷阅读markers / horizontal-rule lines - Full-width → half-width: normalize Latin letters, digits, and punctuation
- Chapter mark formatting: replace colons in
第 X 章:with spaces, compress redundant spaces around chapter markers - Chapter split (if enabled): break inline-written chapter titles
- Keyword filtering (if filled): drop lines matching keywords (subject to threshold exemption)
- Line-end digit stripping (if enabled): strip trailing digits on long lines
- Paragraph splitting (if enabled): break long paragraphs
- Smart line break / paragraph indent: re-merge broken sentences, add paragraph indent, collapse extra blank lines
Result card
After processing, the result card appears at the bottom:
- Auto-copied to clipboard
- Copy / Export / Edit in place: same as the Chinese Converter
- Result → Source: pipe the result back into the input for further processing (rare)
- With Auto-Export enabled, the preview is skipped and the file downloads immediately
Tips
- Start small: test on a small slice (1-2 chapters) first; tune the config before processing the full book
- Filter Threshold is the key trick: set it to ~50 (or the average paragraph length) to surgically delete short watermark lines while keeping long body paragraphs; start filter words with 1-2 obvious watermark terms, then expand
- Run Chapter Reorder standalone: when you only want to fix chapter order, click Chapter Reorder directly — don't run the full Start Process pipeline
- Pre-edit Protected Dictionary: for novels with rare Trad/Simp-mixed proper names, add them first, then run Start Process
- Export to readers: with Chapter Split enabled, the exported TXT lets Kindle auto-generate a TOC; also fits Moon+ Reader, Apple Books, and other readers
- Deeply-obfuscated watermarks: for scrambled-character promotional content, pre-process with the Text Toolbox using a custom regex, then feed it back here for layout
When it shines
- Format-broken text from novel sites
- Novel collections harvested by scrapers / auto-downloaders
- Long-form text from OCR / PDF copying
- Pre-processing before importing into Kindle / Moon+ Reader / Apple Books
Supported file formats
Drag-and-drop or paste support for .txt, .md, .markdown files.
Getting started
Requirements
- Node.js >= 24
- Package manager: Yarn (recommended), npm, or pnpm
Install & run
git clone https://github.com/rockbenben/novel-processor.git
cd novel-processor
# install dependencies
yarn install
# start dev server
yarn dev
Visit http://localhost:3000 to use the tool.
Production build
yarn build
Contributing
PRs and issues welcome.
- Fork the repo
- Create a branch:
git checkout -b feature/AmazingFeature - Commit:
git commit -m 'feat: add some AmazingFeature' - Push:
git push origin feature/AmazingFeature - Open a Pull Request
Links
- 📖 Documentation
- 🐛 Report Issues
- 🔗 Chinese Converter (shares protected dictionary)
Explore related projects
Loading…