OCRRouter

Docling vs Google Cloud Vision OCR

Pick Docling to turn born-digital PDFs and Office files into structured Markdown or JSON for RAG, and run it on your own machine under an MIT licence. Pick Google Cloud Vision OCR for photos, handwritten notes and high-volume plain text extraction, where a hosted API with per-page pricing fits. The main split is structure versus raw text: Docling keeps layout and tables, Vision returns text and bounding boxes only.

Doclingibm/doclingGoogle Cloud Vision OCRgoogle/cloud-vision
TypeOpen sourceOCR API
Price2 credits / page2 credits / page
Per 1,000 pages$2.00$2.00
Typical speed2.2 s / page1.0 s / page
Best forStructured export for RAGPhotos and simple scans
InputsPDF, images, DOCXPDF, images
LanguagesLatin scripts, CJK100+ languages
Max pages per request5002,000
Tables✓ YesNo
HandwritingNo✓ Yes
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNo✓ Yes
FormsNoNo
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 Docling if

  • You need Markdown, HTML or lossless JSON that keeps layout, reading order and table structure for RAG or LLM pipelines.
  • You must run on your own hardware, since Docling is MIT licensed and runs on macOS, Linux and Windows, with CPU working and GPU speeding up model stages.
  • You ingest mixed inputs such as PDF, DOCX, PPTX, XLSX, HTML, EPUB, images and emails through one API.

Choose Google Cloud Vision OCR if

  • You process photos of signs and labels, or handwritten notes, using DOCUMENT_TEXT_DETECTION with language hints.
  • You run high-volume plain text extraction, where price falls to $0.60 per 1,000 pages above 5M units.
  • You want a hosted API with no OCR engine to install, and a word and symbol hierarchy with bounding polygons.

Key differences

DoclingGoogle Cloud Vision OCR
How you run itPython library that runs locally; you pay for computeHosted API on Google Cloud, called over REST or client libraries; no on-premise option
LicenceMIT (individual models have their own licences)Proprietary
PriceFree, self-hostedFirst 1,000 units per month free per feature, then $1.50 per 1,000 up to 5M, $0.60 per 1,000 above. Each PDF page is one unit.
Output formatsMarkdown, HTML, JSON, DocTags, plain textJSON, plain text, bounding boxes. No Markdown; you rebuild reading order yourself.
Tables and layoutLossless JSON export keeps layout, reading order and table structureNo table or layout structure; Google points to Document AI for forms and tables
Scanned pages and handwritingAccuracy depends on the OCR engine you plug in (EasyOCR, Tesseract, RapidOCR). Handwriting: Not publishedHandwriting supported via DOCUMENT_TEXT_DETECTION and language hints
Known failureVersion 2.143.1 drops words and numbers with full-page Tesseract OCR (issue #5254); some layouts merge neighbouring columns (issue #5132)Billing must be enabled even for the free 1,000 units; PDF and TIFF need async processing via Cloud Storage

Sources

What each one is

Docling

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

Docling details

Google Cloud Vision OCR

Google Cloud's image OCR with text and document text detection, word boxes and confidence.

Google Cloud Vision OCR 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": "ibm/docling","fallbacks": ["google/cloud-vision"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Docling alternativesGoogle Cloud Vision OCR alternativesBest OCR models in 2026