OCRRouter

Azure Document Intelligence vs OCRmyPDF

Pick Azure Document Intelligence when you need structured data from invoices, receipts, IDs, W-2s or contracts, or when you already run on Azure. Pick OCRmyPDF when you need to make scanned PDFs searchable and archive them as PDF/A for free on your own CPUs. The main split is that Azure extracts structured data for a per-page fee, while OCRmyPDF only adds a text layer.

Azure Document Intelligenceazure/document-intelligenceOCRmyPDFocrmypdf/ocrmypdf
TypeOCR APIOpen source
Price60 credits / page1 credit / page
Per 1,000 pages$60.00$1.00
Typical speed1.5 s / page1.0 s / page
Best forEnterprise forms and IDsSearchable PDFs from scans
InputsPDF, imagesPDF, images
Languages300+ languages100+ languages (via Tesseract)
Max pages per request2,0001,000
Tables✓ YesNo
Handwriting✓ YesNo
MathNoNo
Bounding boxes✓ YesNo
Confidence✓ YesNo
Forms✓ YesNo
Multilingual✓ Yes✓ 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 Azure Document Intelligence if

  • It has prebuilt models for invoices, receipts, IDs, W-2 and contracts, so you do not have to build extraction yourself.
  • It returns JSON, Markdown, bounding boxes and searchable PDF, while OCRmyPDF returns only searchable PDF and plain text.
  • It can run as a managed service or in disconnected containers for on-prem use, and it suits teams already on Azure.

Choose OCRmyPDF if

  • It is free under MPL-2.0 and you pay only for your own compute, with no per-page fee.
  • It produces validated searchable PDF/A by default and inserts the OCR layer losslessly where possible, which suits archives and office scanner pipelines.
  • It uses Tesseract, so it covers 100+ languages via language packs and spreads work across all CPU cores.

Key differences

Azure Document IntelligenceOCRmyPDF
LicenceProprietaryMPL-2.0, open source
How you run itManaged service or containers, including disconnected containersLocal command-line tool, CPU only
PriceRead $1.50 per 1,000 pages ($0.60 above 1M); Layout and prebuilt $10 per 1,000; custom extraction $30 per 1,000; 500 free pages per monthFree, self-hosted; you pay for compute
Output formatsJSON, Markdown, plain text, bounding boxes, searchable PDFSearchable PDF (PDF/A), plain text
Table benchmark82.7% on RD-TableBench (independent)Not published
HandwritingNot publishedNot suited to handwriting
Known failure modesStacked models add up, for example Prebuilt plus Layout plus high-res add-on is $26 per 1,000 pages; the free tier processes only the first two pages of each documentFile size can double or quadruple with --deskew --clean-final; --skip-text with default PDF/A output removes form fields; hangs on PDFs whose forms share one Resources dictionary

Sources

What each one is

Azure Document Intelligence

Azure layout model with tables, selection marks and prebuilt invoice and ID readers.

Azure Document Intelligence details

OCRmyPDF

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

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

Questions

More comparisons

Azure Document Intelligence alternativesOCRmyPDF alternativesBest OCR models in 2026