OCRRouter

Amazon Textract vs Docling

Pick Amazon Textract for English forms, invoices and large scanned PDF batches on AWS, where a managed API with per-page pricing and word-level confidence scores saves you running anything. Pick Docling for RAG ingestion of born-digital PDFs and Office files, where you want Markdown or lossless JSON from a self-hosted MIT-licensed library. The main split is a hosted, paid API with narrow language support against a free local library whose scan accuracy depends on the OCR engine you plug in.

Amazon Textractaws/textractDoclingibm/docling
TypeOCR APIOpen source
Price25 credits / page2 credits / page
Per 1,000 pages$25.00$2.00
Typical speed1.2 s / page2.2 s / page
Best forForms and key-value extractionStructured export for RAG
InputsPDF, imagesPDF, images, DOCX
Languages6 languagesLatin scripts, CJK
Max pages per request3,000500
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
Forms✓ YesNo
MultilingualNoNo
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 English forms, invoices or tables from scanned documents, with Forms at $0.05/page and Tables at $0.015/page in US West (Oregon) for the first 1M pages a month.
  • You process large scanned PDF batches: the async API takes files up to 500 MB and 3,000 pages.
  • You want word and line geometry with confidence scores, and you already run on AWS.

Choose Docling if

  • You are building RAG ingestion for born-digital PDFs and Office files and want Markdown, HTML, JSON or DocTags out of one API.
  • You need to keep layout, reading order and table structure, which the lossless JSON export preserves for downstream tools.
  • You want a free MIT-licensed library that runs locally on CPU or GPU, with pluggable OCR backends (EasyOCR, Tesseract, RapidOCR) and LangChain or LlamaIndex integrations.

Key differences

Amazon TextractDocling
How you run itHosted AWS APIPython library, runs locally on macOS, Linux and Windows (x86_64 and arm64)
LicenceProprietaryMIT (individual models have their own licences)
PriceText detection $0.0015/page, Tables $0.015/page, Forms $0.05/page, Queries $0.015/page (first 1M pages/month, US West Oregon)Free, self-hosted; you pay for compute
Output formatsJSON, plain text, bounding boxesMarkdown, HTML, JSON, DocTags, plain text
Input formats and limitsAsync API handles PDFs up to 500 MB and 3,000 pages; sync API takes one pagePDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails and XBRL
LanguagesText detection: English, French, German, Italian, Portuguese and Spanish. Handwriting and Queries: English only. Vertical Japanese and Chinese not supported.Depends on the OCR engine you plug in
BenchmarkRD-TableBench table accuracy 80.9% (independent)Not published
Known failureNo Markdown output for RAG without post-processingOCR regression in 2.143.1 drops words and numbers with full-page Tesseract OCR; reading-order rule can merge neighbouring columns on some layouts

Sources

What each one is

Amazon Textract

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

Amazon Textract details

Docling

IBM's open-source document converter with a structured document model.

Docling 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": ["ibm/docling"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Amazon Textract alternativesDocling alternativesBest OCR models in 2026