MinerU vs Tesseract.js
Pick MinerU to turn PDFs, scans and Office files into Markdown or JSON, especially Chinese and English academic papers or RAG corpora. Pick Tesseract.js to read simple printed text from images inside a browser or Node.js app, where images must stay on the user's device. Tesseract.js cannot take PDFs and has no table or layout output, while MinerU needs a server or local install and has known table and repetition bugs.
MinerUopendatalab/mineru | Tesseract.jstesseract/tesseract-js | |
|---|---|---|
| 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 | 2.0 s / page |
| Best for | Academic PDFs | OCR in the browser |
| Inputs | PDF, images | images |
| Languages | 80+ languages | 100+ languages |
| Max pages per request | 500 | 500 |
| Tables | ✓ Yes | No |
| Handwriting | No | No |
| Math | ✓ Yes | No |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | No | ✓ Yes |
| 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, and renders to Markdown, HTML, LaTeX, DOCX, EPUB and JSON.
- It scores 75.2 on olmOCR-Bench (MinerU 2.5.4), while Tesseract.js has no published benchmark.
- It fits Chinese and English academic papers and mixed Office and PDF corpora for RAG, and its basic tier runs on CPU with about 2 GB RAM.
Choose Tesseract.js if
- It runs fully client side in the browser, so images never leave the user's device.
- It has an Apache-2.0 licence and installs through npm, ESM or a CDN script tag, with no GPU or server needed.
- It supports more than 100 languages through traineddata files, which suits simple printed text in common languages.
Key differences
| MinerU | Tesseract.js | |
|---|---|---|
| Input | PDF, images, DOCX, PPTX, XLSX, EPUB, OFD, HTML | Images. No PDF support; the README points to Scribe.js for PDFs. |
| Output | Markdown, HTML, LaTeX, DOCX, EPUB, JSON | Plain text, hOCR, bounding boxes |
| How you run it | Self-hosted CLI, API or WebUI. Basic tier runs on CPU with 2 GB RAM; VLM tiers need 16 GB RAM and a GPU with 8 GB+ VRAM. | JavaScript and WebAssembly library in the browser or Node.js |
| Licence | MinerU Open Source License (Apache-2.0 based with extra conditions); MinerU2.5 VLM weights are tagged AGPL-3.0 | Apache-2.0 |
| Benchmark | olmOCR-Bench overall 75.2 (MinerU 2.5.4); ParseBench mean 45.9 (MinerU2.5) | Not published |
| Tables | VLM tiers drop merged header rows, such as bank statement account lines (issue #5554) | Not suited to tables or layout |
| Known failure | VLM pipeline can repeat content and produce 300 KB figure blocks (issue #5728) | Lower accuracy than the native Tesseract CLI on the same image; fails on screen resolution text unless images are upscaled |
Sources
- MinerU GitHub README
- olmOCR-Bench table
- Issue #5554 table header rows
- Issue #5728 repetition
- GitHub README
- Issue #251 accuracy vs CLI
What each one is
MinerU
Open-source PDF to Markdown pipeline popular for academic and Chinese documents.
MinerU detailsTesseract.js
Tesseract compiled to JavaScript and WebAssembly, so OCR runs in the browser or in Node.js.
Tesseract.js 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": ["tesseract/tesseract-js"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
MinerU alternativesTesseract.js alternativesBest OCR models in 2026