Format comparison
| Format | Extension | Requires Calibre | Notes |
|---|---|---|---|
| EPUB | .epub | No | Native. Recommended format. |
| Plain text | .txt.zip | No | Native. One .txt file per chapter, bundled as a ZIP. |
| JSON | .json.zip | No | Native. Raw chapter data as JSON, bundled as a ZIP. |
.pdf | Yes | Letter-sized pages with page numbers and headers. | |
| MOBI | .mobi | Yes | Legacy Kindle format. |
| DOCX | .docx | Yes | Microsoft Word format. |
| RTF | .rtf | Yes | Rich Text Format. |
| FB2 | .fb2 | Yes | FictionBook 2 format. |
| AZW3 | .azw3 | Yes | Modern Kindle format. |
| LIT | .lit | Yes | Microsoft Reader format (legacy). |
| LRF | .lrf | Yes | Sony Reader format (legacy). |
| PDB | .pdb | Yes | Palm Database format (legacy). |
| RB | .rb | Yes | Rocket Book format (legacy). |
| TCR | .tcr | Yes | Psion/Epoc format (legacy). |
Calibre
All formats except EPUB, TXT, and JSON require Calibre’sebook-convert tool.
Install Calibre: https://calibre-ebook.com/download
Without Calibre, running lncrawl will only make EPUB, TXT, and JSON available. Calibre-only formats will be hidden from the interactive format picker and skipped if requested via -f.
macOS PATH setup
On macOS, Calibre’s command-line tools are not automatically added toPATH. Before starting lncrawl, run:
~/.zshrc or ~/.bash_profile) to make it permanent. If you installed Calibre in a non-default location, replace /Applications/ with the correct path.
Specifying formats
Use the-f / --format flag with the crawl command to choose output formats.
epub, txt, json, pdf, mobi, docx, rtf, fb2, azw3, lit, lrf, pdb, rb, tcr.
When Calibre-converted formats are requested, lncrawl always generates the EPUB first and converts from it — even if
epub was not explicitly listed in -f.Where output files are saved
Files are written to the output directory configured inLNCRAWL_DATA_PATH (defaults to the current user’s data directory). Within that directory:
--noin mode, the path is printed to stdout.