OCRRouter

Amazon Textract vs OCRmyPDF

Pick Amazon Textract for English forms, invoices and large scanned PDF batches on AWS, where you need tables, forms and word-level geometry as JSON. Pick OCRmyPDF to make scanned PDF archives searchable as PDF/A on your own hardware, in 100+ languages, for free. The main split is structured extraction from a hosted API versus a local text layer on the original PDF.

Amazon Textractaws/textractOCRmyPDFocrmypdf/ocrmypdf
TypeOCR APIOpen source
Price25 credits / page1 credit / page
Per 1,000 pages$25.00$1.00
Typical speed1.2 s / page1.0 s / page
Best forForms and key-value extractionSearchable PDFs from scans
InputsPDF, imagesPDF, images
Languages6 languages100+ languages (via Tesseract)
Max pages per request3,0001,000
Tables✓ YesNo
Handwriting✓ YesNo
MathNoNo
Bounding boxes✓ YesNo
Confidence✓ YesNo
Forms✓ YesNo
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 Amazon Textract if

  • You need tables, forms or queries as structured JSON, priced at $0.015, $0.05 and $0.015 per page for the first 1M pages a month in US West (Oregon).
  • You process big scanned PDF batches, since the async API takes PDFs up to 500 MB and 3,000 pages.
  • You want word and line bounding boxes with confidence scores, plus handwriting on English documents.

Choose OCRmyPDF if

  • You need validated searchable PDF/A output for archiving or compliance workflows.
  • You want free, self-hosted OCR under MPL-2.0 that runs on CPU only and uses all cores, with no per-page fee beyond your own compute.
  • You need languages beyond Textract's six, because Tesseract language packs cover 100+ languages.

Key differences

Amazon TextractOCRmyPDF
How you run itHosted AWS APILocal command-line tool and library, CPU only
LicenceProprietaryMPL-2.0
PriceText detection $0.0015/page; Tables $0.015; Forms $0.05; Queries $0.015 (US West Oregon, first 1M pages/month)Free, self-hosted; you pay for compute
OutputJSON, plain text, bounding boxesSearchable PDF/A, plain text. No layout, table or Markdown output
LanguagesText detection in English, French, German, Italian, Portuguese and Spanish; handwriting and Queries English only100+ languages via Tesseract language packs
Table benchmark80.9% on RD-TableBench (independent)Not published
Known failureNo vertical Japanese or Chinese text; sync API takes one page--skip-text with default PDF/A output removes form fields; file size can double or quadruple with --deskew --clean-final; hangs on PDFs whose forms share one Resources dictionary

Sources

What each one is

Amazon Textract

AWS OCR with form key-value pairs, tables and per-word confidence scores.

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

Questions

More comparisons

Amazon Textract alternativesOCRmyPDF alternativesBest OCR models in 2026