OCRRouter

olmOCR vs Tesseract.js

Pick olmOCR when you have a GPU and need PDFs turned into clean Markdown at scale, especially academic papers with equations, tables or mixed printed and handwritten pages. Pick Tesseract.js when OCR must run in the browser or Node.js with no GPU and no upload, on clean printed text in common languages. The main split is that olmOCR reads whole documents into Markdown, while Tesseract.js reads single images into plain text.

olmOCRallenai/olmocrTesseract.jstesseract/tesseract-js
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed1.5 s / page2.0 s / page
Best forBulk PDF to text for datasetsOCR in the browser
InputsPDF, imagesimages
LanguagesMainly English100+ languages
Max pages per request1,000500
Tables✓ YesNo
Handwriting✓ YesNo
Math✓ YesNo
Bounding boxesNo✓ Yes
ConfidenceNo✓ Yes
FormsNoNo
MultilingualNo✓ 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 olmOCR if

  • It scores 82.4 on olmOCR-Bench, above Marker (76.1), MinerU 2.5.4 (75.2) and Mistral OCR (72.0) in the same table.
  • It handles equations, tables and handwriting, and strips headers and footers in natural reading order.
  • Self-hosting costs under $200 per million pages, per Ai2, and the weights, training data and code are all open.

Choose Tesseract.js if

  • It runs fully client side in the browser, so images never leave the user's device.
  • It needs no GPU and installs through npm, ESM or a CDN script tag under Apache-2.0.
  • It supports more than 100 languages through Tesseract traineddata files.

Key differences

olmOCRTesseract.js
How you run itSelf-host with vLLM on an NVIDIA GPU with at least 12 GB VRAM, or call a third-party hosted endpointJavaScript and WebAssembly library in the browser or Node.js
InputPDFs and imagesImages only. PDFs are not accepted, and the README points to Scribe.js for PDFs
Output formatsMarkdown, JSONPlain text, hOCR, bounding boxes
PriceUnder $200 per million pages self-hosted. DeepInfra hosted olmOCR-2-7B: $0.09 input / $0.19 output per million tokensFree. Runs on the user's device or your server
Benchmark82.4 on olmOCR-Bench (v0.4.0), published by the authorsNot published
Handwriting and tablesHandles bothNot suited to handwriting, tables or layout
Known failureOut of memory on a 12 GB GPU (issue #424). Can get stuck on the last few pages (issue #433). Image bounding box coordinates are unreliable (issue #437)Lower accuracy than the native Tesseract CLI on the same image (issue #251). One Electron user measured about 15 s per page versus 1.5 s with the CLI. Fails on screen resolution text unless images are upscaled first

Sources

What each one is

olmOCR

Open-source vision model from Ai2 (often searched as olm ocr) that turns PDFs into clean, reading-order text. Latest release: olmOCR 2.

olmOCR 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 10 files at onceNo file?

Use one, fall back to the other

{"model": "allenai/olmocr","fallbacks": ["tesseract/tesseract-js"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

olmOCR alternativesTesseract.js alternativesBest OCR models in 2026