Best Open-Source PDF-to-Markdown Tools in 2026: Marker vs Docling vs MinerU vs pdf-craft vs PyMuPDF

By Prahlad Menon 9 min read

You’re building a RAG pipeline, processing research papers, or digitizing a bookshelf β€” and you need PDFs turned into clean Markdown. The good news: open-source tooling for this has gotten very good. The bad news: there are now enough options that picking the right one takes real research.

I did that research. Here are the five tools worth knowing about in 2026, what each does best, and which one you should actually use.

Updated: November 2026. In October 2026, Artifex (the company behind PyMuPDF) shipped PyMuPDF 2.0, folding PyMuPDF4LLM and PyMuPDF Layout into the core package and switching on GNN-based layout analysis by default. That’s enough of a change to move PyMuPDF from β€œfast but basic” to a genuine Marker/Docling competitor for CPU-only pipelines β€” see the updated entry and comparison table below.

The Contenders

1. Marker (datalab-to/marker) β€” ⭐ 19K+

The all-rounder. Marker converts PDFs, images, DOCX, PPTX, XLSX, HTML, and EPUB to Markdown, JSON, or chunks. It uses Surya OCR for text recognition and supports GPU, CPU, and Apple MPS.

What sets Marker apart is the optional --use_llm flag that layers an LLM on top for accuracy-critical documents. Without it, you get fast local conversion. With it, you get near-perfect output on messy layouts.

Best for: General-purpose conversion, multi-format pipelines, teams that want one tool for everything.

Strengths:

  • Widest format support (not just PDFs)
  • Optional LLM boost for higher accuracy
  • Built-in benchmarking suite
  • Structured JSON extraction with schema support
  • ~25 pages/sec throughput on H100 in batch mode

Trade-offs:

  • LLM mode adds latency and API cost
  • Surya OCR is good but not best-in-class for every language

2. Docling (docling-project/docling) β€” ⭐ 20K+

The enterprise pick. Built by IBM Research, Docling is designed for production RAG pipelines. It outputs a structured DoclingDocument that preserves semantic hierarchy β€” not just text, but the meaning of the document structure.

Docling handles PDF, DOCX, PPTX, XLSX, HTML, images, audio (WAV/MP3), LaTeX, and plain text. It has first-class integrations with LlamaIndex, LangChain, and other gen AI frameworks.

Best for: Enterprise document processing, structured extraction, teams already in the LlamaIndex/LangChain ecosystem.

Strengths:

  • Rich structured output (DoclingDocument format)
  • Advanced layout analysis and reading order detection
  • Native integrations with RAG frameworks
  • Handles audio and image formats too
  • Linux Foundation AI project β€” strong governance

Trade-offs:

  • Heavier setup than simpler tools
  • CPU mode is notably slower
  • Formula support less mature than Marker

3. MinerU (opendatalab/MinerU) β€” ⭐ 30K+

The heavy hitter. MinerU has the most GitHub stars for a reason β€” it’s extremely capable at complex document layouts, especially CJK content. Built by OpenDataLab (Shanghai AI Lab), it uses PaddleOCR and custom layout detection models.

MinerU outputs both Markdown and JSON, with explicit support for agentic workflows. It also has the broadest hardware support of any tool here, running on NVIDIA, AMD, and a dozen Chinese accelerator platforms (Ascend, Kunlunxin, Cambricon, etc.).

Best for: CJK documents, complex academic papers, teams with diverse GPU hardware.

Strengths:

  • Best layout detection for complex documents
  • Excellent CJK language support
  • Runs on practically any accelerator
  • Active development (v2.7.6 as of Feb 2026)
  • LLM-ready JSON output

Trade-offs:

  • Heavier dependencies (PaddlePaddle ecosystem)
  • Setup can be complex on non-standard hardware
  • Primarily focused on PDFs (not multi-format)

4. pdf-craft (oomol-lab/pdf-craft) β€” ⭐ 4.6K

The book specialist. pdf-craft is purpose-built for converting scanned books to Markdown or EPUB. It uses DeepSeek OCR and runs entirely locally β€” no network requests, no API keys, no cloud dependency.

Starting with v1.0, pdf-craft dropped LLM-based text correction entirely in favor of pure OCR. The result is faster, more predictable conversion. It automatically generates EPUB table of contents and handles footnotes, formulas, and tables.

Best for: Digitizing physical books, library/archive projects, anyone who wants fully offline conversion.

Strengths:

  • Purpose-built for scanned books (headers/footers auto-filtered)
  • EPUB output with auto-generated TOC
  • Fully local β€” zero network calls
  • DeepSeek OCR handles tables and formulas well
  • Clean, focused codebase

Trade-offs:

  • PDF-only (no DOCX, PPTX, etc.)
  • Requires GPU for practical use
  • Smaller community than Marker/Docling/MinerU
  • No LLM correction option (removed in v1.0)

5. PyMuPDF (pymupdf/PyMuPDF) β€” ⭐ 10K+ β€” Updated for 2.0 (October 2026)

The consolidated option. Through 2025 and early 2026, getting LLM-ready Markdown out of PyMuPDF meant installing three separately versioned packages β€” PyMuPDF for the engine, PyMuPDF4LLM for structured extraction, and PyMuPDF Layout for reading order and table/header detection β€” and remembering to import Layout before anything else or results would silently degrade.

PyMuPDF 2.0 (released October 19, 2026) ends that. PyMuPDF4LLM and PyMuPDF Layout are now part of the core package. One pip install pymupdf, one import, and layout-aware Markdown/JSON/plain-text output is on by default.

The bigger change is under the hood: PyMuPDF’s layout engine works directly on a PDF’s internal document structure using graph neural networks, rather than rendering each page to an image and running a vision model over it like most layout tools do. That’s how it gets reading order, multi-column handling, and header/footer detection right while staying CPU-only. It also does selective OCR now β€” pages are inspected first, and only the regions that actually need OCR get it, with the recognized text merged back into the existing digital content.

If you already have import pymupdf4llm in your codebase, it keeps working as a compatibility shim β€” nothing breaks on upgrade.

Best for: Native and lightly-scanned PDFs, CPU-only environments, teams who want Marker/Docling-grade layout understanding without a GPU or three packages to version-pin.

Strengths:

  • GNN-based layout analysis on by default β€” reading order, headers/footers, tables, multi-column pages
  • Selective/hybrid OCR β€” only runs where it’s needed, merges with native text
  • Markdown, JSON (with bounding boxes + element types), and plain-text output built in
  • LlamaIndex and LangChain integrations included
  • Still CPU-only, still fast, no API keys, no cloud calls β€” works air-gapped
  • One package instead of three; old pymupdf4llm imports still work

Trade-offs:

  • Formula recognition still isn’t a strength relative to Marker or pdf-craft
  • CJK layout handling is improved but not at MinerU’s level
  • Newer consolidated release β€” less time in production than Marker/Docling/MinerU’s current versions

Head-to-Head Comparison

FeatureMarkerDoclingMinerUpdf-craftPyMuPDF 2.0
GitHub Stars19K+20K+30K+4.6K10K+
OCR EngineSuryaCustomPaddleOCRDeepSeekSelective hybrid OCR
GPU RequiredNo (optional)No (optional)RecommendedYesNo
Scanned PDFsβœ…βœ…βœ…βœ… (specialized)βœ… (selective)
Multi-formatPDF, DOCX, PPTX, EPUB, imagesPDF, DOCX, PPTX, HTML, audioPDFPDFPDF, Office files
Tablesβœ…βœ…βœ…βœ…βœ…βœ…βœ…βœ…βœ…βœ…
Formulasβœ…βœ…βœ…βœ…βœ…βœ…βœ…βœ…
EPUB OutputβŒβŒβŒβœ…βŒ
LLM BoostOptional❌❌❌ (removed)❌
Fully Localβœ…βœ…βœ…βœ…βœ…
CJK SupportGoodGoodExcellentGoodImproving
RAG IntegrationJSON/chunksLlamaIndex, LangChainJSON❌LlamaIndex, LangChain, JSON w/ bounding boxes
Layout methodVision model (Surya)Custom MLVision model (PaddleOCR)Vision model (DeepSeek OCR)Graph neural network on doc structure
Speed (native PDF)FastModerateModerateN/AFastest
Speed (scanned)Fast (GPU)ModerateFast (GPU)Fast (GPU)Fast (CPU, selective OCR)

Decision Tree

Start here:

  1. Is your PDF native (has selectable text), or only lightly scanned? β†’ Try PyMuPDF 2.0 first. It’s fast, CPU-only, and its GNN layout engine now genuinely competes with Marker/Docling on reading order and structure β€” not just a fallback anymore. If the output quality isn’t there, move to Marker.

  2. Are you processing scanned books? β†’ pdf-craft is built for exactly this. If you also need multi-format support, use Marker instead.

  3. Do you need structured output for a RAG pipeline? β†’ Docling if you’re in the LlamaIndex/LangChain ecosystem. Marker if you want JSON schema extraction. PyMuPDF 2.0 is now a legitimate third option here too, with the same framework integrations and lower resource requirements.

  4. Complex academic papers with CJK text? β†’ MinerU. Nothing else comes close for Chinese/Japanese/Korean layout detection.

  5. Want one tool that does everything reasonably well? β†’ Marker remains the Swiss Army knife for multi-format pipelines. PyMuPDF 2.0 is the pick if you want that breadth without a GPU.

The Bottom Line

The PDF-to-Markdown space has matured fast. Two years ago you were choosing between β€œbad” and β€œless bad.” Now you’re choosing between genuinely good tools with different specializations β€” and the consolidation of PyMuPDF 2.0 closes what used to be the gap between β€œquick and dirty” and β€œreal layout understanding.”

If you’re only going to install one tool: Marker is still the safest default for multi-format, GPU-friendly pipelines. If you want the same caliber of layout analysis without a GPU or extra packages, PyMuPDF 2.0 is now the better starting point than the old PyMuPDF4LLM was. For specific use cases β€” books (pdf-craft), enterprise RAG (Docling), CJK (MinerU) β€” pick the specialist.

All five are open source, all run locally, and all are actively maintained. The real winner is the ecosystem.


Have a favorite PDF-to-Markdown tool I missed? Let me know.