OCRRouter

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/mineruTesseract.jstesseract/tesseract-js
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed2.0 s / page2.0 s / page
Best forAcademic PDFsOCR in the browser
InputsPDF, imagesimages
Languages80+ languages100+ languages
Max pages per request500500
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNo✓ Yes
FormsNoNo
Multilingual✓ Yes✓ Yes
On OCRRouterAvailableAvailable

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

MinerUTesseract.js
InputPDF, images, DOCX, PPTX, XLSX, EPUB, OFD, HTMLImages. No PDF support; the README points to Scribe.js for PDFs.
OutputMarkdown, HTML, LaTeX, DOCX, EPUB, JSONPlain text, hOCR, bounding boxes
How you run itSelf-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
LicenceMinerU Open Source License (Apache-2.0 based with extra conditions); MinerU2.5 VLM weights are tagged AGPL-3.0Apache-2.0
BenchmarkolmOCR-Bench overall 75.2 (MinerU 2.5.4); ParseBench mean 45.9 (MinerU2.5)Not published
TablesVLM tiers drop merged header rows, such as bank statement account lines (issue #5554)Not suited to tables or layout
Known failureVLM 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

What each one is

MinerU

Open-source PDF to Markdown pipeline popular for academic and Chinese documents.

MinerU details

Tesseract.js

Tesseract compiled to JavaScript and WebAssembly, so OCR runs in the browser or in Node.js.

Tesseract.js details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

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