OCRRouter

OCRmyPDF vs Donut

Pick OCRmyPDF to make scanned PDFs searchable and keep them as PDF/A, with no training needed. Pick Donut only if you have a narrow, fixed-layout document type such as receipts or forms and can fine-tune it to return JSON. The main split is the job: OCRmyPDF adds a text layer to a PDF, Donut turns a page image into structured fields.

OCRmyPDFocrmypdf/ocrmypdfDonutnaver/donut
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed1.0 s / page1.0 s / page
Best forSearchable PDFs from scansReceipt and form fields after fine-tuning
InputsPDF, imagesimages
Languages100+ languages (via Tesseract)English, Chinese, Japanese, Korean
Max pages per request1,000100
TablesNoNo
HandwritingNoNo
MathNoNo
Bounding boxesNoNo
ConfidenceNoNo
FormsNo✓ Yes
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

  • It outputs validated searchable PDF/A by default, which suits archiving and compliance workflows.
  • It works out of the box on CPU only and spreads work across all CPU cores, with no training step.
  • It uses Tesseract, so it covers 100+ languages through language packs.

Choose Donut if

  • It maps a document image straight to JSON, with no separate OCR step, which suits receipt and form field extraction.
  • It can be fine-tuned for parsing, classification or VQA on narrow, fixed-layout documents.
  • It is MIT licensed and available in Hugging Face Transformers.

Key differences

OCRmyPDFDonut
What it doesAdds a Tesseract OCR text layer to scanned PDFsOCR-free transformer (Swin encoder plus BART decoder) that reads document images into structured output
Output formatsSearchable PDF, plain textJSON, plain text
Ready to useYes, run it on a scanned PDFNo. The base checkpoint is pretrain-only and must be fine-tuned first
LicenceMPL-2.0MIT
Hardware and costCPU only, free, self-hosted (you pay for compute)Free, self-hosted (you pay for compute). Hardware needs: Not published
BenchmarksNot publishedNot published
Known failure modesAccuracy is capped by Tesseract; no layout, table or Markdown output. --skip-text with default PDF/A output removes form fields (issue #1790). File size can double or quadruple with --deskew --clean-final (issue #948). Hangs on PDFs whose forms share one Resources dictionary (issue #1763)Misses tiny text in large images because of input resolution limits. One HN user found results on personal documents did not match the promised scores. Transformers v5 dropped image-to-text pipeline support, so it needs direct loading or v4

Sources

What each one is

OCRmyPDF

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

OCRmyPDF details

Donut

OCR-free document understanding model. Fine-tuned for receipts, forms and document Q&A.

Donut 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": ["naver/donut"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

OCRmyPDF alternativesDonut alternativesBest OCR models in 2026