Unlimited OCR vs Tesseract.js
Pick Unlimited OCR to parse long multi-page documents such as reports and books into Markdown with bounding boxes, if you have an NVIDIA GPU. Pick Tesseract.js for simple printed text in common languages that must be read inside the browser or Node.js with no upload and no GPU. The main split is a self-hosted 3B document parser versus a client-side library with no PDF input.
Unlimited OCRbaidu/unlimited-ocr | 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 | 1.2 s / page | 2.0 s / page |
| Best for | Books and very long documents | OCR in the browser |
| Inputs | PDF, images | images |
| Languages | 30+ languages | 100+ languages |
| Max pages per request | 1,000 | 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 Unlimited OCR if
- It parses 40+ pages in a single forward pass with roughly constant memory, so long reports and books go through in one request.
- It outputs Markdown, plain text and bounding boxes, which suits bulk PDF to text for RAG and layout-aware extraction.
- Unlimited OCR 2 scores 77.1 on MarathonDocBench versus 33.7 for the next model, per Baidu.
Choose Tesseract.js if
- It runs fully client side in the browser, so images never leave the user's device.
- It supports more than 100 languages through Tesseract traineddata files and installs from npm, ESM or a CDN script tag.
- It needs no GPU, and the library is free to run on the user's device or your server.
Key differences
| Unlimited OCR | Tesseract.js | |
|---|---|---|
| How you run it | Self-host with vLLM, SGLang or transformers on an NVIDIA GPU with CUDA 12.9 or 13.0; also hosted in Baidu Cloud | JavaScript and WebAssembly library that runs in the browser or Node.js |
| Licence | MIT | Apache-2.0 |
| Price | Free self-hosted (you pay for compute); hosted endpoint in Baidu Cloud's OCR product | Free, runs on the user's device or your server |
| Input and output | Multi-page documents; outputs Markdown, plain text and bounding boxes | Does not accept PDF files (the README points to Scribe.js); outputs plain text, hOCR and bounding boxes |
| Benchmarks | ParseBench mean 46.17 (independent); Unlimited OCR 2 scores 84.6 on MPDocBench and 77.1 on MarathonDocBench (authors) | Not published |
| Hardware limits | Version 2 under SGLang runs out of memory on 12 GB GPUs; not for CPU-only machines | No GPU needed; one Electron user measured about 15 s per page versus 1.5 s with the Tesseract CLI |
| Known failures | Text repetition and looping (issue #55), hallucinated text (issue #58), and formatting score of 0.97 on ParseBench, so bold and italic are mostly lost | Lower accuracy than the native Tesseract CLI on the same image (issue #251); fails on screen resolution text unless images are upscaled |
Sources
- Hugging Face model card
- MarkTechPost on Unlimited OCR 2
- Issue #116 OOM on 12 GB
- GitHub README
- Issue #251 accuracy vs CLI
- HN thread
What each one is
Unlimited OCR
Open-source model from Baidu that reads hundreds of pages in one pass with flat memory use.
Unlimited OCR 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": "baidu/unlimited-ocr","fallbacks": ["tesseract/tesseract-js"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Unlimited OCR alternativesTesseract.js alternativesBest OCR models in 2026