Docling vs SmolDocling
Pick Docling when you need a production pipeline that ingests PDFs, Office files, HTML and images into structured JSON, with an OCR engine you choose. Pick SmolDocling only to experiment with a tiny 256M document VLM on English pages. It is a preview model that its authors have superseded with Granite-Docling, and Docling itself can run the newer 258M GraniteDocling as a VLM option.
Doclingibm/docling | SmolDoclinghuggingface/smoldocling | |
|---|---|---|
| Type | Open source | Open source |
| Price | 2 credits / page | 1 credit / page |
| Per 1,000 pages | $2.00 | $1.00 |
| Typical speed | 2.2 s / page | 1.0 s / page |
| Best for | Structured export for RAG | Very cheap page conversion |
| Inputs | PDF, images, DOCX | PDF, images |
| Languages | Latin scripts, CJK | Mainly English |
| Max pages per request | 500 | 500 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | No | No |
| Math | ✓ Yes | ✓ Yes |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | No | No |
| Forms | No | No |
| Multilingual | No | No |
| On OCRRouter | Available | Available |
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, so one pipeline covers mixed inputs.
- Its lossless JSON export keeps layout, reading order and table structure, which suits RAG ingestion and LangChain or LlamaIndex integrations.
- It is MIT licensed and lets you swap OCR backends (EasyOCR, Tesseract, RapidOCR) or use the 258M GraniteDocling VLM instead of the model SmolDocling is replaced by.
Choose SmolDocling if
- At 256M parameters it is small enough for modest hardware, and it runs at about 0.35 seconds per page on an A100 with vLLM.
- One model handles text, tables (OTSL), code, formulas and charts with location tags, so you do not wire up separate OCR and layout stages.
- It is free to self-host and suits cheap experiments converting English pages to DocTags, Markdown, HTML, JSON or LaTeX.
Key differences
| Docling | SmolDocling | |
|---|---|---|
| What it is | Python library from IBM Research that converts documents into a DoclingDocument and plugs in OCR engines and VLMs | 256M document conversion VLM from Hugging Face and IBM that outputs DocTags for Docling |
| Status | Maintained library with about 70k GitHub stars and over 1,000 open issues as of November 2026 | Preview release, superseded by Granite-Docling; authors point users there for updates and support |
| Licence | MIT (individual models have their own licenses) | Apache-2.0 per model summary (metadata tag says CDLA-Permissive-2.0) |
| Input formats | PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails and XBRL | Page images converted by the VLM; other formats Not published |
| Output formats | Markdown, HTML, JSON, DocTags, plain text | DocTags, Markdown, HTML, JSON, LaTeX, bounding boxes |
| Languages | Not published; scanned-page accuracy depends on the OCR engine you plug in | English only |
| Known failure | Version 2.143.1 drops words and numbers with full-page Tesseract OCR (issue #5254); reading order can merge neighbouring columns (issue #5132) | Output can loop with endless token repetition or missing closing tags, making generation very slow even on sparse pages (issue #1515) |
Sources
- Docling GitHub README
- Supported formats
- Issue #5254 OCR regression
- SmolDocling model card
- Docling issue #1515
- Granite-Docling comparison table
What each one is
SmolDocling
Tiny 256M vision model from Hugging Face and IBM that outputs DocTags. Predecessor of Granite Docling.
SmolDocling detailsTry 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": ["huggingface/smoldocling"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Docling vs MonkeyOCRDocling vs Granite DoclingTesseract vs SmolDoclingMinerU vs SmolDoclingLlamaParse vs DoclingPaddleOCR-VL vs DoclingMinerU vs DoclingDocling vs Tesseract
Docling alternativesSmolDocling alternativesBest OCR models in 2026