Independent community resource

Docling Guides, Tools & Practical Reference

A fast, independent resource for installing, configuring and using Docling for document parsing, OCR, Markdown, JSON and RAG workflows. No account, no backend - just the commands and answers you need.

bash — quickstart
$pip install docling
$docling convert https://arxiv.org/pdf/2408.09869 --to md

What do you want to do?

Pick a task and jump straight to a command, tool or guide.

Quick Command Finder

Copy-pasteable CLI commands for the most common document conversion tasks.

Convert PDF to Markdown

Convert a local PDF into clean, structured Markdown.

docling convert report.pdf --to md
Convert a document from a URL

Download and convert an online document directly from an HTTP(S) URL.

docling convert https://arxiv.org/pdf/2408.09869 --to md
Export lossless JSON

Export the full DoclingDocument JSON schema, including bounding boxes and reading order.

docling convert report.pdf --to json
OCR a scanned PDF

Force full-page OCR on image-only pages that have no selectable text.

docling convert scan.pdf --ocr-mode full_page --to md
Chunk for RAG (hybrid)

Export HybridChunker chunks that preserve headings, tables and metadata for vector stores.

docling convert report.pdf --to chunks --chunks-type hybrid
Run the MCP server

Expose Docling to AI desktop clients (Claude Desktop, LM Studio) over the Model Context Protocol.

uvx --from=docling-mcp docling-mcp-server

Browse all commands

Supported Formats

What Docling can read and write, based on the official supported-formats list.

PDF METS GBS archive Word Word (legacy) Rich Text Format OpenDocument Text Apple Pages Markdown AsciiDoc LaTeX Plain text Box Note AFP / MO:DCA PowerPoint PowerPoint (legacy) OpenDocument Presentation Apple Keynote Excel Excel (legacy) OpenDocument Spreadsheet Apple Numbers CSV HTML MHTML EPUB WebVTT Images Email XBRL USPTO XML JATS XML DocLang XML DocLang archive Docling JSON EBCDIC Audio Video

Exports: Markdown, JSON, YAML, HTML, split-page HTML, text, DocTags, DocLang, DocLang archive, WebVTT, LaTeX and chunks (JSONL).

Open the format reference

Pluggable OCR Engines

Pick the OCR backend that matches your platform and accuracy needs.

Compare OCR engines

Practical Examples

Short, task-oriented recipes with CLI and Python for the most common jobs.

See all examples

Built for Retrieval-Augmented Generation

Turn documents into structure-aware chunks that keep headings, tables and page metadata.

  • HybridChunker splits on document structure, not raw character counts.
  • Preserves headings, tables and bounding-box metadata for citations.
  • Exports chunks as JSONL, ready for Qdrant, Milvus, Weaviate, OpenSearch and other vector stores.
  • Native LangChain, LlamaIndex and Haystack integrations.

Read the RAG guide

python — chunking
from docling.document_converter import DocumentConverter
from docling.chunking import HybridChunker

converter = DocumentConverter()
result = converter.convert("report.pdf")

chunker = HybridChunker()
for chunk in chunker.chunk(result.document):
    print(chunk.text)

Docling vs Alternatives

How Docling compares to other document conversion tools in the AI ingestion space.

Unlike legacy text extractors such as PyPDF or pdfplumber, Docling performs full visual layout analysis, reading-order recovery and table reconstruction with TableFormer - and it runs locally without forcing a cloud API.

CapabilityDoclingUnstructuredPyMuPDF / pdfplumberMarkerMinerU
Document understandingWhether the tool reconstructs reading order, layout and tables — or just dumps text.
Layout & reading order ?YesYes (hi_res)Yes (PyMuPDF4LLM + Layout)YesYes
Table structure ?Yes (TableFormer)Yes (hi_res)Yes (PyMuPDF4LLM)YesYes
Formulas & math ?Optional enrichmentNot documentedNot documentedYes (LaTeX)Yes
Text extraction & OCRDigital PDFs need fast extraction; scans need OCR. No single engine wins both.
Scanned-document OCR ?Yes (pluggable)YesYes (automatic OCR)Yes (surya VLM)Yes
OCR engine choice ?7 enginesTesseract / PaddleOCRTesseract or rapidocr (installed separately)Built-in (surya VLM)Built-in
Inputs & outputsWhat goes in (formats) and what comes out for LLMs (Markdown, JSON, chunks).
Input formats ?36 formats (84 extensions)dozens of file types (OSS)PDF; Office via PyMuPDF ProPDF, images, Office, HTML, EPUBPDF, images, Office, OpenDocument, EPUB, HTML
Markdown output ?YesVia element conversionYesYesYes
Structured JSON ?Yes (DoclingDocument)Yes (elements)YesYesYes (content list)
Chunk-ready structure ?Yes (HybridChunker)Yes (chunk_by_title)Page chunksYes (chunks output)Locator-based reads
Deploy & operationsWhere it runs, what hardware it needs, and what it costs to operate.
Local / offline execution ?Yes (no telemetry)Yes (telemetry on by default)YesYesYes (remote is opt-in)
Hardware needs ?CPU ok, GPU fasterCPU okCPU onlyCPU (fast) / GPU (balanced; NVIDIA needs Docker + NVIDIA Container Toolkit)CPU (basic, ONNX; standard/advanced also run on CPU); GPU for PyTorch engines
Install weight ?models download on first useVaries by extras~25 MB core wheelModel weights via suryamodel size varies by tier
License ?MITApache-2.0 (library)AGPL-3.0 or commercial (pdfplumber: MIT)Apache-2.0 code; OpenRAIL-M weightsMinerU Open Source License
AI / RAG fitFramework connectors, agents and multimodal inputs for production RAG.
RAG integrations ?LangChain, LlamaIndex, Haystack and moreYes (see docs)LlamaIndex, LangChainNot documentedAgent skill and SDK
Audio / video (ASR) ?Yes (Whisper, optional asr extra)Not documentedNot documentedNot documentedNot documented
Cloud API option ?Self-host (docling-serve)Yes (paid API)No hosted APIYes (Datalab platform)Official service (opt-in)
Cost & trustPrice per page, governance and how to verify claims yourself.
Self-host cost ?Free (MIT)Free OSS / paid APIFree (AGPL) / paid licenseFree code; weights cappedFree under license terms
Governance ?Linux Foundation AI & DataUnstructured (company)Artifex SoftwareDatalabOpenDataLab
Best for ?Local RAG over mixed PDFsMulti-format ETLFast text extractionBooks & papersPapers & Office mix

See the full comparison

Install Docling for Your Platform

Docling runs locally on Windows, macOS (Apple Silicon) and Linux (x86_64 and ARM64).

Python (pip)
$pip install docling
# Optional extras: pip install "docling[asr,vlm,easyocr,tesserocr]"
Astral uv
$uv add docling
Windows (x64)
# Option A (recommended): pre-built wheels via uv
PS>uv add docling
# Option B: pip (64-bit Python + Visual C++ 14.0+ for compiled extras)
PS>pip install docling
Docker Container
$docker run -p 5001:5001 -e DOCLING_SERVE_ENABLE_UI=1 quay.io/docling-project/docling-serve
MCP Agent Server
// Add to claude_desktop_config.json or mcp.json
$uvx --from=docling-mcp docling-mcp-server
macOS Intel
# Intel Macs: docling 2.74 and later need docling-parse 5.3.2 or newer, which has no Intel macOS wheels. Newest installable release, Python 3.12 or lower:
$pip install "docling<2.74" "numpy<2"
Linux CPU-Only
$pip install docling --extra-index-url https://download.pytorch.org/whl/cpu

Open the install guides

CLI & Python Config Generator

Choose options in your browser and get an executable command or Python snippet.

  • Build docling convert commands with OCR, table and enrichment flags.
  • See the equivalent Python SDK code update live.
  • Warnings for platform-specific or conflicting options.

Open the Config Generator

bash — generated command
docling convert report.pdf \
  --to md \
  --ocr-engine rapidocr \
  --ocr-mode default \
  --table-mode accurate \
  --device auto \
  --num-threads 4

Try Docling Online

Run Docling on your own documents in the browser - no installation required.

The online demo processes documents on a shared cloud service. For confidential documents, install Docling locally for fully private, offline processing.

Open the live demo

Fix Common Errors

Quick fixes for the most frequent installation, GPU, OCR and conversion problems.

Browse all fixes

Built for Modern AI & Data Engineering

Everything you need to turn raw documents into clean, structured data for LLM context windows.

Multimodal Document Parsing

Parse PDF, DOCX, PPTX, XLSX, HTML, EPUB, AsciiDoc, LaTeX, CSV, audio and domain XML (USPTO, JATS, XBRL) with a unified pipeline API.

PDF DOCX PPTX XLSX Audio (ASR) USPTO XML

Layout & Reading Order

Understands multi-column scientific layouts, sidebars, headers, footers and visual hierarchy automatically.

Multi-Column Bounding Boxes

TableFormer Engine

State-of-the-art table structure extraction reconstructs complex merged cells and borderless financial tables.

TableFormer HTML Tables

Pluggable OCR Support

Choose EasyOCR, Tesseract, RapidOCR, OcrMac or NVIDIA Nemotron OCR for scanned documents.

EasyOCR Tesseract RapidOCR

Native RAG HybridChunker

Chunk on structural nodes instead of character tokens, preserving heading hierarchy and tables.

HybridChunker Vector Stores

Unified DoclingDocument & AI Ecosystem

Export lossless DoclingDocument JSON, Markdown or DocTags with integrations for LangChain, LlamaIndex, Haystack, CrewAI and MCP.

LangChain LlamaIndex Haystack MCP Protocol FastAPI Serve

Integrations & Ecosystem Tools

Docling integrates with leading frameworks and platforms.

Tool / ExtensionCategoryOpen SourceBest For
docling-serve FastAPI REST Server MIT Self-hosting an HTTP document conversion endpoint for microservices.
docling-mcp MCP Server MIT Connecting Docling to AI desktop apps like Claude and LM Studio.
langchain-docling RAG Framework MIT Loading parsed documents directly into LangChain vector stores.
llama-index-readers-docling Data Framework MIT Creating structured LlamaIndex document nodes from PDFs.
Apify Docling Actor (third-party) Cloud Scraping Pay per usage Automating cloud-scale web document extraction.

In-Depth Documentation

A deep, practical reference for the Docling architecture, pipelines and APIs.

Open the documentation

Frequently Asked Questions

Answers to common questions about Docling installation, features and troubleshooting.

What is Docling and what does it do?
Docling is an open-source document conversion and layout analysis engine created by IBM Research. It parses PDFs, Office files (DOCX, PPTX, XLSX), HTML, EPUB, scanned images and audio into structured Markdown and JSON optimized for AI models, RAG and vector databases.
Is Docling free and open-source?
Yes. Docling is 100% open-source under the permissive MIT License and runs locally without cloud fees or telemetry.
Does Docling send my documents to the cloud?
No. Docling runs locally on your machine, container or private server. It needs no cloud API keys and sends no document data or telemetry. Models download once from Hugging Face, so air-gapped setups work after the models are pre-downloaded.
How do I speed up conversion?
Disable OCR for digital PDFs with --no-ocr or pipeline_options.do_ocr = False, and turn off enrichment you do not need.
Can Docling run as an API or MCP server?
Yes. docling-serve provides a self-hosted FastAPI REST API and UI, and docling-mcp connects Docling to AI desktop clients such as Claude Desktop and LM Studio.

See troubleshooting

Official Docling Resources

Docling.org is independent. For authoritative information, always use the official project.