OCRRouter

Docling vs RapidOCR

Pick Docling when you need structured output from PDFs, Office files and HTML for a RAG pipeline: it gives Markdown, HTML and lossless JSON with layout and tables. Pick RapidOCR when you only need text and bounding boxes from images, offline on CPU, especially Chinese and English screenshots and receipts. Docling is a document converter that can use RapidOCR as its OCR engine, so the two are not direct substitutes.

Doclingibm/doclingRapidOCRrapidai/rapidocr
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed2.2 s / page0.6 s / page
Best forStructured export for RAGLightweight OCR on CPU or edge
InputsPDF, images, DOCXimages
LanguagesLatin scripts, CJKChinese, English and more
Max pages per request500100
Tables✓ YesNo
HandwritingNoNo
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 one API for PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails and XBRL.
  • You need JSON export that keeps layout, reading order and table structure, or Markdown and HTML for downstream tools.
  • You are building RAG ingestion of born-digital PDFs and Office files, with LangChain or LlamaIndex integrations.

Choose RapidOCR if

  • You need offline CPU OCR with a plain pip install of rapidocr and onnxruntime, with no Paddle framework.
  • You are embedding OCR in a Java, C# or C++ app, since it has bindings for those as well as Python.
  • Your inputs are Chinese and English screenshots or receipts, where text and bounding boxes are enough.

Key differences

DoclingRapidOCR
What it isPython library from IBM Research that converts documents into a structured DoclingDocumentToolkit from RapidAI that runs PaddleOCR models converted to ONNX and other runtimes
LicenceMIT (individual models have their own licences)Apache-2.0 (converted models keep their upstream licences)
Output formatsMarkdown, HTML, JSON, DocTags, plain textPlain text and bounding boxes
Input formatsPDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails, XBRLImages; layout, tables and Markdown output are not supported
LanguagesDepends on the OCR engine you plug in (EasyOCR, Tesseract, RapidOCR)Chinese and English by default; other languages need extra models
Hardware and runtimemacOS, Linux and Windows on x86_64 and arm64; CPU works, GPU speeds up model stagesCPU via ONNX Runtime by default; optional onnxruntime-gpu, TensorRT, OpenVINO, MNN, Paddle or PyTorch
Known failures2.143.1 OCR regression drops words and numbers with full-page Tesseract OCR; reading order can merge neighbouring columns16-bit grayscale PNG or TIFF give no text or wrong text; Arabic crashes without python-bidi; sliced inference crashes on large pages

Sources

What each one is

Docling

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

Docling details

RapidOCR

PaddleOCR models packaged for ONNX Runtime and other engines. Easy to deploy without Paddle.

RapidOCR 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": ["rapidai/rapidocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Docling alternativesRapidOCR alternativesBest OCR models in 2026