OCRRouter

OCRmyPDF vs olmOCR

Pick OCRmyPDF to make scanned PDFs searchable and keep them as PDF/A on a CPU-only machine. Pick olmOCR to turn PDFs and images into Markdown or JSON for RAG or LLM training, if you have an NVIDIA GPU with at least 12 GB VRAM. The main split is the output: OCRmyPDF adds a text layer to the original file, while olmOCR rewrites the content as structured text.

OCRmyPDFocrmypdf/ocrmypdfolmOCRallenai/olmocr
TypeOpen sourceOpen source
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed1.0 s / page1.5 s / page
Best forSearchable PDFs from scansBulk PDF to text for datasets
InputsPDF, imagesPDF, images
Languages100+ languages (via Tesseract)Mainly English
Max pages per request1,0001,000
TablesNo✓ Yes
HandwritingNo✓ Yes
MathNo✓ Yes
Bounding boxesNoNo
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
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 OCRmyPDF if

  • You need validated searchable PDF/A output for archiving, with other PDF content left unre-encoded where possible.
  • You only have CPUs, and you want work spread across all cores.
  • You need Tesseract's 100+ languages through language packs.

Choose olmOCR if

  • You need Markdown or JSON output for RAG or LLM training, not a searchable PDF.
  • Your documents contain equations, tables or handwriting, and you want headers and footers stripped in reading order.
  • You process pages at scale and want self-hosting under $200 per million pages, per Ai2, or a hosted endpoint at $0.09 input / $0.19 output per million tokens on DeepInfra.

Key differences

OCRmyPDFolmOCR
OutputSearchable PDF (PDF/A by default) and plain textMarkdown and JSON
HardwareCPU only, uses all coresNVIDIA GPU with at least 12 GB VRAM and 30 GB free disk
LicenceMPL-2.0Apache-2.0 (toolkit)
PriceFree, self-hosted (you pay for compute)Self-hosted: under $200 per million pages, per Ai2. Hosted olmOCR-2-7B on DeepInfra: $0.09 input / $0.19 output per million tokens
Layout, tables, handwritingNo layout, table or Markdown output; not suited to handwritingHandles equations, tables and handwriting
BenchmarkNot published82.4 on olmOCR-Bench (v0.4.0), reported by the authors
Known failure--skip-text with default PDF/A output removes form fields (issue #1790); --deskew --clean-final can double or quadruple file size (issue #948)Out of memory on a 12 GB GPU (issue #424); tends to get stuck on the last few pages (issue #433)

Sources

What each one is

OCRmyPDF

Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.

OCRmyPDF details

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

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": "ocrmypdf/ocrmypdf","fallbacks": ["allenai/olmocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

OCRmyPDF alternativesolmOCR alternativesBest OCR models in 2026