OCRRouter

Docling vs Kraken

Pick Docling to ingest born-digital PDFs, Office files and HTML into structured JSON for RAG pipelines. Pick Kraken for historical manuscripts, early prints and non-Latin or right-to-left scripts, where you can train the layout and recognition models on your own material. The main split is document type: Docling targets modern files, Kraken targets historical and non-Latin material.

Doclingibm/doclingKrakenkraken/kraken
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed2.2 s / page1.5 s / page
Best forStructured export for RAGHistorical documents and manuscripts
InputsPDF, images, DOCXimages
LanguagesLatin scripts, CJKMany scripts, incl. right-to-left
Max pages per request500500
Tables✓ YesNo
HandwritingNo✓ Yes
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNoNo
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

  • It reads PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails and XBRL through one API.
  • It exports lossless JSON that keeps layout, reading order and table structure, plus Markdown, HTML, DocTags and plain text.
  • It runs on macOS, Linux and Windows, on CPU or GPU, and has LangChain and LlamaIndex integrations.

Choose Kraken if

  • It is built for historical documents and non-Latin scripts, with right-to-left, BiDi and top-to-bottom support.
  • Layout analysis, reading order and character recognition are all trainable on your own material.
  • It outputs ALTO, PageXML, abbyyXML and hOCR for digital humanities tools, and community-trained models are on Zenodo.

Key differences

DoclingKraken
Best document typesBorn-digital PDFs and Office filesHistorical manuscripts and early prints
LicenceMIT (individual models have their own licences)Apache-2.0
PlatformsmacOS, Linux and Windows, x86_64 and arm64Linux and macOS only, x64 or ARM, Python 3.10 to 3.13. No Windows support.
Output formatsMarkdown, HTML, JSON, DocTags, plain textALTO, PageXML, hOCR, plain text, bounding boxes
OCR approachPlugs in EasyOCR, Tesseract, RapidOCR or a VLM such as the 258M GraniteDocling. Scan accuracy depends on the engine you choose.Its own trainable recognition. It usually needs training on your own material for good accuracy.
Known failureVersion 2.143.1 drops words and numbers with full-page Tesseract OCR (issue #5254). Reading order can merge neighbouring columns (issue #5132).Install can fail with a dependency conflict (issue #816). Learned line order is lost in segmentation and text output (issue #820).
BenchmarksNot publishedNot published

Sources

What each one is

Docling

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

Docling details

Kraken

OCR engine for historical documents and manuscripts, with trainable models for unusual scripts.

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

Questions

More comparisons

Docling alternativesKraken alternativesBest OCR models in 2026