Marker vs OCRmyPDF
Pick Marker when you need Markdown, HTML, JSON or RAG chunks from PDFs such as books and papers with equations, and you can run a GPU or CPU yourself. Pick OCRmyPDF when you need to turn scanned PDFs into searchable PDF/A archives and nothing more. The main split is output: Marker extracts structured content, OCRmyPDF only adds a text layer.
Markerdatalab/marker | OCRmyPDFocrmypdf/ocrmypdf | |
|---|---|---|
| Type | OCR API | Open source |
| Price | 14 credits / page | 1 credit / page |
| Per 1,000 pages | $14.00 | $1.00 |
| Typical speed | 2.5 s / page | 1.0 s / page |
| Best for | Books and research papers | Searchable PDFs from scans |
| Inputs | PDF, images, DOCX | PDF, images |
| Languages | 90+ languages | 100+ languages (via Tesseract) |
| Max pages per request | 1,000 | 1,000 |
| Tables | ✓ Yes | No |
| Handwriting | No | No |
| Math | ✓ Yes | No |
| Bounding boxes | ✓ Yes | No |
| Confidence | No | No |
| 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 Marker if
- You need PDF to Markdown, HTML, JSON block trees or RAG chunks, which OCRmyPDF does not produce.
- You work with books and papers with equations and want LaTeX output.
- You want a hosted option: Datalab sells an API with about 5,000 free pages per month.
Choose OCRmyPDF if
- You need validated searchable PDF/A for archiving or compliance workflows.
- You want a text layer inserted losslessly without re-encoding the rest of the PDF, on CPU only.
- You need Tesseract language packs covering 100+ languages, with work spread across all CPU cores.
Key differences
| Marker | OCRmyPDF | |
|---|---|---|
| What it does | Converts PDF to Markdown, built on the Surya OCR models | Adds a Tesseract OCR text layer to scanned PDFs |
| Output formats | Markdown, HTML, JSON, chunks, LaTeX, images | Searchable PDF/A, plain text |
| Licence | Code Apache-2.0; weights under a modified AI Pubs Open Rail-M licence, free for research, personal use and startups under $5M | MPL-2.0 |
| Price | Free self-hosted within the weight licence, you pay for compute; hosted API has about 5,000 free pages per month | Free, self-hosted, you pay for compute |
| Hardware | GPU, CPU or Apple Silicon; vllm mode needs an NVIDIA GPU; fast mode runs on CPU with about 18 MB of ONNX weights | CPU only, uses all cores |
| Benchmark | olmOCR-bench 83.7 in vllm mode, 66.6 in CPU fast mode (Datalab's own numbers) | Not published |
| Known failure | Weights block free commercial use for companies above $5M | Output can grow 2x to 4x in size with --deskew --clean-final; --skip-text with default PDF/A removes form fields; hangs on PDFs whose forms share one Resources dictionary |
Sources
- Marker GitHub README
- Datalab pricing
- OCRmyPDF GitHub README
- OCRmyPDF docs
- Issue #948 file size
- Issue #1790 form fields
What each one is
Marker
Hosted version of the open-source Marker and Surya models. Strong on books and papers.
Marker detailsOCRmyPDF
Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.
OCRmyPDF detailsTry 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": "datalab/marker","fallbacks": ["ocrmypdf/ocrmypdf"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Marker vs RapidOCRMarker vs EasyOCRAmazon Textract vs OCRmyPDFReducto Parse vs OCRmyPDFMarker vs Typhoon OCROCRmyPDF vs MiniCPM-V 4.5Marker vs PaddleOCR-VLMarker vs DeepSeek-OCR
Marker alternativesOCRmyPDF alternativesBest OCR models in 2026