Docling simplifies complex document conversion by parsing PDFs, Office documents, images, and audio into structured Markdown and JSON format. Designed specifically for Generative AI applications, Retrieval-Augmented Generation (RAG), and agentic workflows.
Docling is an open-source document conversion and layout analysis engine developed by IBM Research and maintained under the LF AI & Data Foundation. It automatically converts heterogeneous document formats — including complex PDFs, Microsoft Word (DOCX), PowerPoint (PPTX), Excel (XLSX), HTML, EPUB, scanned images, and audio media — into unified, structured formats like Markdown, HTML, and JSON. Powered by Granite Docling (IBM's open-source vision language model) and TableFormer, Docling provides industry-leading PDF layout recognition, table structure extraction, reading order recovery, and seamless RAG pipeline integration.
Everything you need to turn raw documents into clean, structured data for LLM context windows.
Parse PDF, DOCX, PPTX, XLSX, HTML, EPUB, AsciiDoc, LaTeX, CSV, audio tracks (WAV, MP3), and domain XML (USPTO patents, JATS papers, XBRL reports) with a unified, expressible pipeline API.
Docling understands multi-column scientific layouts, sidebars, headers, footers, and visual reading hierarchy automatically.
State-of-the-art table structure extraction model accurately reconstructs complex merged cells and borderless financial tables.
Choose between EasyOCR, Tesseract, RapidOCR, OcrMac, or NVIDIA Nemotron OCR to extract text from scanned documents.
Chunk documents natively on structural nodes instead of character tokens, preserving header hierarchy, tables, and bounding box metadata.
Convert documents into lossless `DoclingDocument` JSON structures, or export directly to Markdown and DocTags. Features native integrations with LangChain, LlamaIndex, Haystack, CrewAI, DSPy, and Model Context Protocol (MCP).
Docling runs locally on Windows, macOS (Apple Silicon & Intel), and Linux (x86_64 and ARM64).
| Platform / Target | Installation Method | Recommended Extra / Command | GitHub Release Link |
|---|---|---|---|
| Python Package Index (PyPI) | pip / uv | pip install docling | v2.115.0 Release |
| macOS (Apple Silicon M1/M2/M3/M4) | Native PyTorch (MPS) | pip install "docling[ocrmac]" | Source Zip |
| Linux x86_64 (NVIDIA CUDA) | PyTorch CUDA 12 / 13 | pip install "docling[vlm,asr]" | Asset Direct |
| Windows 11 / 10 (x64) | Python 3.9 - 3.14 | pip install "docling[easyocr]" | Asset Direct |
| REST API Container | Docker / Podman | quay.io/ds4sd/docling-serve | docling-serve v1.21.0 |
How Docling compares to other document conversion tools in the AI ingestion space.
Unlike legacy text extractors like PyPDF or pdfplumber which only dump unstructured text strings without reading order, Docling performs comprehensive visual layout analysis, reading order recovery, and table structure reconstruction via TableFormer. Compared to Unstructured.io, Docling runs 100% locally without forced cloud API dependencies, offers native audio transcription capabilities, and integrates directly with Model Context Protocol (MCP) servers.
Is Docling an OCR engine? Docling is not a standalone raw OCR engine like Tesseract, PaddleOCR, or EasyOCR. Instead, Docling is a higher-level document understanding and orchestration framework that plugs into and wraps OCR engines under the hood. While raw OCR engines only extract text strings from cropped image pixels, Docling adds neural layout detection, multi-column reading order recovery, TableFormer matrix extraction, and exports structured Markdown and JSON for LLM RAG pipelines.
| Feature / Metric | Docling (v2.115) | Unstructured.io | PyPDF / pdfplumber | Marker |
|---|---|---|---|---|
| Complex PDF Layout Analysis | ||||
| Table Structure Recognition (TableFormer) | Partial / Paid API | Basic Box Grid | ||
| Audio / Video Transcription (ASR) | (Whisper) | |||
| Model Context Protocol (MCP) Server | (Native) | |||
| 100% Free Open Source (MIT) | Apache 2.0 / Commercial | BSD / MIT | GPL v3 / Commercial | |
| Self-Hosted REST API (`docling-serve`) | Paid / Complex | |||
| Formula & Code Enrichment | Partial |
Copy-pasteable CLI commands for common document conversion tasks.
Convert a local PDF file and save output directly to Markdown format.
docling report.pdf --to md
Download and parse an online document directly from an HTTP URL.
docling https://arxiv.org/pdf/2408.09869
Force OCR engine over entire pages regardless of existing PDF text.
docling scan.pdf --ocr-mode full_page
Export detailed DoclingDocument JSON schema containing bounding boxes.
docling document.pdf --to json
Use specialized neural models to extract LaTeX formulas and code blocks.
docling paper.pdf --enrich-code --enrich-formula
Convert MP3 or WAV audio tracks into structured WebVTT or Markdown text.
docling lecture.mp3 --pipeline asr --to md
Download all layout and table models into local cache before offline use.
docling-tools models download --all
Launch Model Context Protocol server for Claude Desktop integration.
uvx --from=docling-mcp docling-mcp-server
Docling seamlessly integrates with leading frameworks and platforms.
| Tool / Extension | Category | Open Source | Best For |
|---|---|---|---|
| docling-serve | FastAPI REST Server | MIT | Self-hosting an HTTP document conversion endpoint for microservices. |
| docling-mcp | MCP Server | MIT | Connecting Docling directly to AI desktop apps like Claude and LM Studio. |
| LangChain (`langchain-docling`) | RAG Framework | MIT | Loading parsed documents directly into LangChain vector stores. |
| LlamaIndex Reader | Data Framework | MIT | Creating structured LlamaIndex document nodes from PDFs. |
| Apify Docling Actor | Cloud Scraping | Commercial / Free tier | Automating cloud-scale web document extraction tasks. |
Customize pipeline flags and generate executable CLI commands and Python SDK code in real-time.
Answers to common queries regarding Docling installation, features, and troubleshooting.