OCRRouter

Docling vs Nanonets-OCR

Pick Docling to ingest born-digital PDFs and Office files into a RAG pipeline, because it parses many formats under an MIT licence and exports lossless JSON with layout. Pick Nanonets-OCR to turn printed business documents into Markdown, especially ones with signatures, watermarks, checkboxes or flowcharts. Neither is a safe choice for handwriting or poor scans without testing: Docling depends on the OCR engine you plug in, and Nanonets-OCR was not trained on handwriting and can hallucinate.

Doclingibm/doclingNanonets-OCRnanonets/nanonets-ocr
TypeOpen sourceOpen source
Price2 credits / page2 credits / page
Per 1,000 pages$2.00$2.00
Typical speed2.2 s / page1.8 s / page
Best forStructured export for RAGMarkdown with semantic tags
InputsPDF, images, DOCXPDF, images
LanguagesLatin scripts, CJKMultilingual
Max pages per request500500
Tables✓ Yes✓ Yes
HandwritingNoNo
Math✓ Yes✓ Yes
Bounding boxes✓ YesNo
ConfidenceNoNo
FormsNo✓ Yes
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 want lossless JSON that keeps layout, reading order and table structure, with an MIT licence.
  • You want to choose your own OCR backend (EasyOCR, Tesseract, RapidOCR) or the 258M GraniteDocling VLM, and run on CPU if needed.

Choose Nanonets-OCR if

  • Your documents carry signatures, watermarks or checkboxes, which it tags or converts to unicode symbols.
  • You need flowcharts and org charts turned into Mermaid code, or inline and display LaTeX told apart.
  • You want printed PDFs as Markdown for an LLM from one 3B model, with a published DocVQA score of 89.43 on the model card.

Key differences

DoclingNanonets-OCR
What it isPython library from IBM Research that converts documents into a structured DoclingDocumentFamily of image-to-Markdown models fine-tuned from Qwen2.5-VL-3B
LicenceMIT (individual models have their own licences)Not stated on the Nanonets-OCR2-3B model card
Input formatsPDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails, XBRLImages of pages
Output formatsMarkdown, HTML, JSON, DocTags, plain textMarkdown, HTML, LaTeX, Mermaid
BenchmarksNot publishedolmOCR-bench overall 69.5, DocVQA 89.43, ChartQA 78.56 (OCR2-3B, reported by the authors)
Handwriting and scansScan accuracy depends on the OCR engine you plug inNot trained on handwriting; handwriting test saw generation loops with CER up to 2100%
Known failuresOCR regression in 2.143.1 drops words and numbers with full-page Tesseract; reading order can merge neighbouring columnsTrained on a fixed prompt, so other prompts are expected to hallucinate

Sources

What each one is

Docling

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

Docling details

Nanonets-OCR

Open image-to-Markdown model that tags tables, equations, signatures, watermarks and checkboxes.

Nanonets-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": ["nanonets/nanonets-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Docling alternativesNanonets-OCR alternativesBest OCR models in 2026