MinerU vs Kraken
Pick MinerU to convert modern PDFs, scans and Office files into Markdown or JSON, especially Chinese and English papers or a mixed corpus for RAG. Pick Kraken for historical manuscripts, early prints and right-to-left scripts, where you can train layout and recognition on your own material. The main split is the target material: MinerU is a ready-made parser for current documents, Kraken is a trainable system for historical and non-Latin text.
MinerUopendatalab/mineru | Krakenkraken/kraken | |
|---|---|---|
| Type | Open source | Open source |
| Price | 2 credits / page | 1 credit / page |
| Per 1,000 pages | $2.00 | $1.00 |
| Typical speed | 2.0 s / page | 1.5 s / page |
| Best for | Academic PDFs | Historical documents and manuscripts |
| Inputs | PDF, images | images |
| Languages | 80+ languages | Many scripts, incl. right-to-left |
| Max pages per request | 500 | 500 |
| Tables | ✓ Yes | No |
| Handwriting | No | ✓ Yes |
| Math | ✓ Yes | No |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | No | No |
| Forms | No | No |
| Multilingual | ✓ Yes | ✓ Yes |
| On OCRRouter | Available | Available |
Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.
Which to choose
Choose MinerU if
- It accepts PDF, images, DOCX, PPTX, XLSX, EPUB, OFD and HTML in one tool, which suits mixed Office and PDF corpora.
- It outputs Markdown, HTML, LaTeX, DOCX, EPUB and JSON, so the result drops into RAG and publishing pipelines.
- The basic ONNX tier runs on CPU with about 2 GB RAM, so you can start batch conversion without a GPU.
Choose Kraken if
- It is built for historical documents and non-Latin scripts, with right-to-left, BiDi and top-to-bottom support.
- Layout analysis, reading order and character recognition are all trainable on your own material.
- It is Apache-2.0 licensed and writes ALTO, PageXML, abbyyXML and hOCR, the formats digital humanities tools use.
Key differences
| MinerU | Kraken | |
|---|---|---|
| Best material | Chinese and English academic papers, mixed Office and PDF corpora | Historical manuscripts, early prints, Arabic, Hebrew and other RTL scripts |
| Licence | MinerU Open Source License (Apache-2.0 based with extra conditions); MinerU2.5 VLM weights are tagged AGPL-3.0 | Apache-2.0 |
| How you run it | Local CLI, API or WebUI; CPU-only basic tier, or VLM tiers needing 16 GB RAM and a GPU with 8 GB+ VRAM | Python library installed with pip on Linux or macOS (x64 or ARM, Python 3.10 to 3.13); no Windows support |
| Input formats | PDF, images, DOCX, PPTX, XLSX, EPUB, OFD, HTML | Not published |
| Output formats | Markdown, HTML, LaTeX, DOCX, EPUB, JSON | ALTO, PageXML, hOCR, plain text, bounding boxes |
| Benchmarks | olmOCR-Bench overall 75.2 (MinerU 2.5.4); ParseBench mean 45.9 (MinerU2.5) | Not published |
| Known failures | VLM tiers drop merged header rows in tables such as bank statement account lines; repeated content can produce 300 KB figure blocks; full-width Chinese punctuation is converted to half-width | Install can fail with a dependency conflict; learned line order is lost in segmentation and text output; usually needs training for good accuracy |
Sources
- MinerU GitHub README
- olmOCR-Bench table
- Issue #5554 table header rows
- Kraken GitHub README
- Kraken docs
- Issue #820
What each one is
MinerU
Open-source PDF to Markdown pipeline popular for academic and Chinese documents.
MinerU detailsKraken
OCR engine for historical documents and manuscripts, with trainable models for unusual scripts.
Kraken detailsTry both on your own file
Run the file once with each model and compare the output.
Use one, fall back to the other
{"model": "opendatalab/mineru","fallbacks": ["kraken/kraken"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
MinerU alternativesKraken alternativesBest OCR models in 2026