Comparisons

Docling vs. Marker

Docling is better for permissive MIT licensing and the widest format support. Marker is better for high-fidelity PDF-to-Markdown and a hosted API. Licences compared.

Last updated December 2026

Docling is the better choice for most teams that want a free, permissively licensed document converter they can run anywhere, because its MIT licence has no revenue threshold and it reads the widest range of formats, from PDFs and slides to email, audio and video. Marker is the better choice when PDF-to-Markdown fidelity and speed matter most, with an optional LLM mode for tables and equations and a hosted API from Datalab, provided you check its model-weight licence for commercial use.

We make Exabase, which appears as a short third option near the end. This is a neutral comparison of Docling and Marker, based on each project’s GitHub README and Datalab’s pricing page, checked on 4 December 2026.

Quick verdict

Choose Docling if you need a converter you can embed in a commercial product without licence questions, want one tool for PDFs, office files, HTML, email and media, and value a single document model with integrations for LangChain, LlamaIndex, CrewAI and Haystack.

Choose Marker if your corpus is mostly PDFs with tables, equations and code, you want the cleanest Markdown you can get, and you either qualify for the free commercial weights or are happy to use Datalab’s hosted API.

Consider Exabase if you would rather not run a converter at all, and want documents, audio and video parsed, stored and searchable for an agent through one hosted API.

Comparison table

Feature

Docling

Marker

What it is

Open-source document conversion toolkit

Open-source PDF and document to Markdown converter

Origin

Started by IBM Research Zurich; LF AI & Data Foundation project

Built by Datalab

Code licence

MIT

Apache 2.0

Model weights

Per original model licence

Modified OpenRAIL-M; free commercial use under $5M revenue and funding

Inputs

PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, email, LaTeX, audio, video and more

PDF, images, PPTX, DOCX, XLSX, HTML, EPUB

Outputs

Markdown, HTML, lossless JSON, DocTags, WebVTT

Markdown, JSON, HTML, chunks

OCR

Built-in OCR for scans and images

Surya VLM, multilingual

LLM boost

VLM pipeline, e.g. GraniteDocling

--use_llm flag, Gemini by default

Hosted option

docling-serve to self-host; no first-party hosted API

Datalab API from $0 plus usage

GitHub stars

About 69.8k

About 40.9k

What each tool does

Docling is an open-source toolkit that converts documents into a unified representation called DoclingDocument, then exports it as Markdown, HTML, lossless JSON or DocTags. It was started by the AI for knowledge team at IBM Research Zurich and is now hosted by the LF AI & Data Foundation. Its PDF pipeline covers page layout, reading order, table structure, code, formulas and image classification. It runs locally on macOS, Linux and Windows, including air-gapped machines, and ships a CLI, an API server called docling-serve and an MCP server for agents.

Marker is Datalab’s converter. It turns PDFs, images, office files, HTML and EPUB into Markdown, JSON, HTML or a flat list of chunks for retrieval. It formats tables, forms, equations, inline maths, links, references and code blocks, and runs OCR through Surya, Datalab’s multilingual vision model. A --use_llm flag adds an LLM pass for the hardest pages, with Gemini as the default and other providers supported. Marker runs on GPU, CPU or Apple Silicon.

Both are libraries you run yourself, which is the main thing they share and the main difference from hosted parsers such as LlamaParse. You own the hardware, the scaling and the upgrades, and in return no document leaves your machines.

Winner: Docling for breadth. Marker for a focused PDF-to-Markdown tool.

Parsing quality and layout

PDF parsing quality comes down to layout: multi-column pages, table structure, equations and scanned PDFs with no text layer. Both projects aim squarely at these cases, and both publish their own results rather than a shared independent benchmark.

Marker’s README reports self-measured throughput of 4.5 pages a second in its vllm mode, 16.9 in balanced, 23.6 in fast and 57 with OCR switched off, with headline scores on Datalab’s OmniParseBench between 40.8 and 85.9 depending on mode. Its strengths are equations, inline maths and code blocks, which makes it popular for scientific papers and technical manuals, and the LLM mode can merge tables that break across pages.

Docling’s strength is structure. Layout analysis and table recognition feed a document model that keeps headings, lists, tables and pictures as typed items, so downstream code can chunk by section or pull every table without re-parsing Markdown. Its VLM pipeline, with GraniteDocling as the example model, gives an alternative route for difficult pages.

Neither result transfers cleanly to your files. Run both on fifty of your hardest pages, compare tables cell by cell, and measure time per page on the hardware you will use in production.

Winner: Marker for Markdown fidelity on papers and equations. Docling for structured output.

Formats and outputs

Docling reads far more than PDFs. Its README lists DOCX, PPTX, XLSX, HTML, EPUB, Apple iWork files, LaTeX, plain text, ODF, XBRL, email in EML and MSG, images in PNG, TIFF and JPEG, audio through speech recognition and WebVTT, and video. That makes it a reasonable single entry point for a mixed data ingestion pipeline.

Marker covers PDF, images, PPTX, DOCX, XLSX, HTML and EPUB in all languages. Its chunk output is ready for a RAG pipeline, and its JSON output is a block tree with each block’s type and position, which helps with source attribution.

For a view of which format suits an LLM prompt, see JSON vs Markdown for LLMs.

Winner: Docling for input formats.

Licensing and commercial use

This is often the deciding factor. Docling’s code is MIT-licensed, and the README points to each bundled model’s own licence for model usage. In practice, teams embed Docling in commercial products without a separate agreement, but your legal team should check the licences of the specific models you enable.

Marker’s code is Apache 2.0, but its model weights use a modified AI Pubs OpenRAIL-M licence. They are free for research, personal use and companies under $5M in both revenue and funding. Above that, commercial use of the weights needs a licence from Datalab, and the pricing page asks you to contact sales for an on-premises licence rather than listing a price. Datalab’s newer Chandra model has a lower $2M threshold.

Winner: Docling for licence simplicity.

Hosted options and pricing

Both libraries are free to download. The real costs are compute, which is modest on CPU for Docling’s standard pipeline and higher on GPU for Marker’s fastest modes, plus the engineering time to run, scale and monitor them.

Docling has no first-party hosted API. You can run docling-serve yourself, and third parties list Docling as a hosted actor, for example on Apify.

Marker has a managed route. Datalab’s pricing page, checked on 4 December 2026, lists a Free plan at $0 plus usage with up to $20 of one-time credit, Launch at $25 a month or $300 a year, Team at $400 a month or $4,800 a year, and custom Enterprise. Each plan’s fee is credited against usage. Convert costs $0.375 per 1,000 pages on Lite, $1 on Fast, $3 on Balanced and $7.50 on Accurate, and Extract starts at $4.50 per 1,000 pages. EU processing adds 25%. Some figures on the page’s estimator differ from its rate card, so confirm with Datalab before budgeting.

A worked example: converting 100,000 pages a month on Datalab’s Balanced mode costs about $300, which fits inside the Team fee. Self-hosting either library on a single GPU machine can cost less at that volume, but only if someone already owns the infrastructure.

Winner: Marker for teams that want a hosted fallback. Docling for zero licence cost at any company size.

Integrations and developer experience

Docling integrates with LangChain, LlamaIndex, CrewAI and Haystack, has an MCP server so agents can call it as a tool, and requires Python 3.10 or later. Its DoclingDocument model makes custom chunking by heading or table straightforward.

Marker is a Python package and CLI that also needs Python 3.10 or later and PyTorch, with Docker and the NVIDIA Container Toolkit for the vllm mode. Datalab’s hosted API adds per-field citations on Extract, SOC 2 Type II reports on every plan and a BAA from Team.

Winner: Docling for framework integrations. Marker for a managed API with compliance paperwork.

Who should choose Docling

Docling suits platform teams building an internal ingestion service across many file types, regulated teams that must keep documents on premises, and startups that want no licensing surprises as they grow. A real-world example: a legal-tech team runs Docling inside its own VPC to convert contracts, emails and slide decks into DoclingDocument JSON, then chunks by section heading before embedding. See also Docling alternatives, Docling vs Unstructured and LlamaParse vs Docling.

Who should choose Marker

Marker suits research and education tools, technical documentation search and any corpus full of equations and code, especially for small companies under the weight-licence threshold. A real-world example: a research assistant converts arXiv papers with Marker on a single GPU, keeps LaTeX for equations in the Markdown, and falls back to Datalab’s Accurate mode for scanned journals. See also Exabase vs Marker and the research agents use case.

A third option: Exabase

Docling and Marker give you converted text, and you still have to host the converter, store the output, index it and keep it current. Exabase Extract is a hosted alternative: one endpoint parses PDFs, including scanned ones, Word documents, images, audio, video and web pages, and returns text chunks with page numbers or timestamps, thumbnails and structured fields for invoices, resumes and contracts. Store files as Resources and they are indexed on arrival, so Deep Search can return the exact passage without an embedding pipeline, and a Worker can re-extract documents when they change. Where Docling and Marker are stronger: Exabase is not open source, cannot be self-hosted, and has no LaTeX-aware equation output or DoclingDocument-style typed tree. See Exabase vs Docling, the PDF to Markdown tool and the extraction docs. The Free plan is $0 a month with 1 GB of storage and 200 credits.

How we compared

We read the Docling and Marker GitHub READMEs and Datalab’s pricing page on 4 December 2026. We compared scope, parsing approach, formats, licensing, hosted options, pricing and integrations. Speed and accuracy figures are each project’s own, and we did not run a benchmark. Projects this active change monthly, so check each README before you commit.

Frequently asked questions

Is Docling better than Marker?

Docling is better for permissive licensing, the widest range of input formats and structured JSON output. Marker is better for high-fidelity PDF-to-Markdown on papers with tables and equations, and for teams that want a hosted API as a fallback.

Is Docling free for commercial use?

Yes. Docling’s code is MIT-licensed. Check the licences of any individual models you enable, as the README asks.

Is Marker free for commercial use?

Marker’s code is Apache 2.0, but its model weights are free for commercial use only for companies under $5M in both revenue and funding. Above that, you need a licence from Datalab.

Who makes Docling?

Docling was started by the AI for knowledge team at IBM Research Zurich and is hosted as a project in the LF AI & Data Foundation.

Who makes Marker?

Marker is built by Datalab, which also makes the Surya OCR model and runs a hosted document API.

Does Marker need a GPU?

No. Marker runs on GPU, CPU or Apple Silicon. Its fastest vllm mode needs an NVIDIA GPU with Docker.

Can Docling handle scanned PDFs?

Yes. Docling includes OCR for scanned PDFs and images, and a VLM pipeline for difficult pages.

Which is better for RAG?

Both work well. Marker outputs ready-made chunks; Docling’s typed document model makes it easy to chunk by heading or table. Docling also integrates directly with LangChain, LlamaIndex and Haystack.

Does Docling have a hosted API?

Not from the maintainers. You can self-host docling-serve, and third parties offer hosted versions.

How much does the Datalab API cost?

Convert costs from $0.375 per 1,000 pages on Lite to $7.50 on Accurate. Plans run from Free at $0 plus usage to Team at $400 a month, with Enterprise custom.

How do I move from Marker to Docling?

Run the same files through Docling’s converter and export Markdown, or use its JSON for structure. Replace Marker’s chunk output with Docling’s chunking, re-embed, and compare tables and equations on a sample before switching.

Is Exabase an alternative to Docling and Marker?

For teams that want hosted parsing, storage and search in one API, yes. For on-premises or open-source requirements, Docling or Marker fit better; see file extraction.

Related pages: Docling review, Docling alternatives, Exabase vs Marker, Exabase vs Docling, Best open-source document parsers, Best PDF parser, LlamaParse vs Reducto, Docling vs Unstructured, PDF parsing, File extraction

Compare similar apps and tools:

LangGraph vs. OpenAI Agents SDK

CrewAI vs. AutoGen

n8n vs. Zapier

Relevance AI vs. Lindy

Temporal vs. Inngest

Inngest vs. Trigger.dev

E2B vs. Modal

E2B vs. Modal

E2B vs. Daytona

People Data Labs vs. Apollo

ScreenshotOne vs. Urlbox

Microlink vs. Iframely

AWS Rekognition vs. Google Cloud Vision

Twelve Labs vs. Mixpeek

Twelve Labs vs. Google Video Intelligence

ElevenLabs vs. Deepgram

Deepgram vs. Speechmatics

AssemblyAI vs. Gladia

Zyte vs. ScrapingBee

Bright Data vs. Oxylabs

Google Document AI vs. Azure Document Intelligence

Rossum vs. Nanonets

Mindee vs. Veryfi

Reducto vs. Extend

LlamaParse vs. Mistral OCR

LlamaParse vs. Docling

Bedrock Knowledge Bases vs. Vertex AI Search

Vectara vs. Ragie

LanceDB vs. Chroma

MongoDB Atlas vs. Pinecone

Weaviate vs. Milvus

Vespa vs. Elasticsearch

Algolia vs. Typesense

Typesense vs. Meilisearch

Elasticsearch vs. OpenSearch

LangMem vs. Zep

Vertex AI Memory Bank vs. AWS AgentCore Memory

AWS AgentCore Memory vs. Mem0

Letta vs. Cognee

Zep vs. Cognee

Bedrock Knowledge Bases vs. Azure AI Search

OpenAI file search vs. Pinecone

Docling vs. Unstructured

Azure Document Intelligence vs. Textract

Mistral OCR vs. Textract

Reducto vs. Unstructured

Apify vs. ScraperAPI

Firecrawl vs. ScraperAPI

turbopuffer vs. Pinecone

pgvector vs. Qdrant

Chroma vs. Weaviate

Qdrant vs. Milvus

Letta vs. LangMem

Cognee vs. Mem0

Supermemory vs. Zep

CrewAI vs. LangGraph

LangChain vs. LlamaIndex

Whisper vs. Deepgram

Deepgram vs. AssemblyAI

Textract vs. Google Document AI

Docling vs. Marker

LlamaParse vs. Reducto

LlamaParse vs. Unstructured

Firecrawl vs. Apify

Firecrawl vs. Jina

LangMem vs. Mem0

Mem0 vs. Supermemory

Zep vs. Letta

Mem0 vs. Letta

pgvector vs. Pinecone

Mem0 vs. Zep

Milvus vs. Pinecone

Chroma vs. Qdrant

Weaviate vs. Qdrant

Pinecone vs. Qdrant

Pinecone vs. Chroma

Pinecone vs. Weaviate

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.