Intermediate 13 minDocuments

PDF to Markdown: MinerU, Marker, or Docling ?

Sheets of paper are spread out beside a laptop on a wooden desk.
Direct response

To convert a PDF to Markdown locally, choose Marker for speed and native PDFs (modes without a graphics card), MinerU for difficult layouts, formulas, and tables, and Docling for a Python RAG pipeline under the MIT license. All three are free and open source; check the licenses before commercial use (versions as of November 18, 2026: Marker 2.2.0, MinerU 4.2.3, Docling 2.150.1).

Online PDF-to-Markdown converters send your file to their servers; Marker, MinerU, and Docling do the same job on your own machine. Here are their strengths, hardware requirements, official commands, and licenses, followed by a method for checking that a conversion is reliable.

By Mohamed Meguedmi·Update 2026-11-26·Tested on Windows, macOS, and Linux

#PDF to Markdown: which tool should you choose for your document?

To convert a PDF to Markdown locally, the choice mostly depends on the type of document. Marker focuses on speed and runs without a GPU in its fast and no_ocr modes. MinerU targets difficult layouts, formulas, and tables, with four quality levels. Docling, under the MIT license, integrates best into a Python RAG pipeline.

A PDF-to-Markdown converter is a program that reads a PDF's layout (headings, columns, tables, formulas, images) and rewrites it as structured Markdown text. The three tools in this guide are open source, install with Python, and run on your own machine.

Which PDF-to-Markdown converter for which use case (official documentation reviewed November 18, 2026)
Your use caseRecommended toolWhy
Native PDFs (selectable text), high volume, laptop without a GPUMarker, fast or no_ocr modeModes documented as running on the CPU, without a model server
Scientific papers, formulas, multi-page tablesMinerU, standard or advanced tierTiers designed for demanding layouts; cross-page table merging improved in 4.2
Python RAG pipeline (LangChain, LlamaIndex, Haystack)DoclingNative integrations, built-in chunking, MIT-licensed code
Poor-quality scanned PDFsMinerU advanced or Marker vllmSettings their developers present as the most accurate on difficult documents and degraded scans
Commercial use in a companyDocling or MinerU, after reviewing the licensesMarker's model weights have a restrictive license above $5M
Mac Apple SiliconAll threeMarker in fast mode on MPS, accelerated MinerU on Apple Silicon, Docling with MLX for GraniteDocling

#Why convert a PDF to Markdown for a local AI?

The complete kit for building your own local RAG.

Benefit from our experience and a guided path to build your local RAG and work with your own documents.

  • Lifetime online access
  • PDF + files
  • Refunded within 30 days

Converting a PDF to Markdown gives a language model clean text in reading order, with its headings and tables. A PDF describes character positions, not structure: its raw text often mixes up columns, page headers, and notes.

Markdown preserves the document's hierarchy with very little markup: chunking in a RAG pipeline can follow the headings, and the model sees a table instead of a string of numbers. Microsoft itself describes its MarkItDown tool as a lightweight utility that converts files to Markdown for LLMs.

Native PDF
A PDF produced by software (word processor, export) whose text is already present and selectable. No OCR needed.
Scanned PDF
A PDF that contains only page images. You need OCR, or optical character recognition, to extract text from it.
Layout analysis
Step that identifies the blocks on a page (heading, paragraph, table, figure, formula) and their reading order.
VLM
A vision-language model that reads a page image and directly outputs structured text. It's more accurate on difficult pages but slower than traditional OCR.

#Marker: the fastest PDF-to-Markdown converter?

According to figures published by its developer Datalab, Marker is the fastest of the three tools. This open-source converter turns PDF, images, PPTX, DOCX, XLSX, HTML, and EPUB into Markdown, JSON, HTML, or RAG-ready chunks. Version 2.2.0, released on November 12, 2026 on GitHub, offers four conversion modes that trade off speed and accuracy.

Fast mode, the default on CPU and on Apple Silicon Macs (MPS), and no_ocr mode run without a GPU or a model server. Balanced mode, the default on GPU, processes clean prose on the CPU and sends only equations, complex tables, non-Latin scripts, and scanned pages to the Surya 2.5 vision model. vllm mode sends every page through that model.

In the Marker README, on its own OmniParseBench benchmark, Datalab reports that balanced mode scores 80.5 points at 16.9 pages per second, versus 67.5 points at 2.1 pages per second for Docling; fast mode scores 71.0 points at 23.6 pages per second. These figures come from the vendor, on a benchmark it designed; throughput is measured on a single machine, with no GPU or CPU model specified.

!
Marker and the --use_llm option
Marker's --use_llm option improves tables and formulas with an LLM. According to the README reviewed November 18, 2026, it uses gemini-3.5-flash by default, an online Google service that then receives your pages. To stay local, choose Marker's Ollama service.

#MinerU: for which complex PDFs?

MinerU targets PDFs with demanding layouts: formulas, tables spanning multiple pages, difficult documents. This open-source tool from OpenDataLab converts PDFs, images, Office documents, EPUB, and HTML to Markdown, HTML, LaTeX, or DOCX. MinerU 4.2.3, released November 16, 2026, is the latest version on GitHub and PyPI.

MinerU works with parsing levels: flash for previews and indexing, basic for OCR and model-based parsing, and standard and advanced for demanding layouts. According to the README, standard is the default level for normal reading; advanced, the slowest, does better on difficult documents. Office, EPUB, and HTML files only go through the flash level.

The table published by Datalab, the developer of Marker, ranks MinerU 2.5-Pro, a version predating the 4.x branch, ahead of Marker on accuracy: 87.1 points, including 92.1 on tables, versus 85.9 and 78.3 for Marker in vllm mode. However, MinerU is also the slowest there, at 0.54 pages per second versus 4.5. No independent benchmark of MinerU 4.2 against Marker 2.2 could be found as of November 18, 2026. For your own documents, convert a sample of ten representative pages with each tool before choosing.

#Docling: when should you choose it over MinerU or Marker?

Choose Docling over MinerU or Marker when conversion is just one step in a Python pipeline, or when an MIT license simplifies business use. Docling is a library started by IBM Research Zurich and hosted by the LF AI & Data Foundation. It converts PDFs, Office documents, HTML, images, and even audio into an internal format, the DoclingDocument, which can be exported to Markdown, HTML, or JSON. Version 2.150.1 was released on November 14, 2026.

For a RAG pipeline, Docling offers native integrations with LangChain, LlamaIndex, Crew AI, and Haystack, chunking built into its command-line interface, and an MCP server for agents. The README emphasizes local execution for sensitive data and air-gapped environments. For difficult PDFs, Docling can use GraniteDocling, a small vision model from IBM. The site's Docling guide covers these settings in detail.

#What machine do you need to convert a PDF to Markdown locally?

A recent computer without a graphics card is enough to convert native PDFs to Markdown with all three tools. The graphics card is only needed for modes that run pages through a vision model: scanned PDFs, dense formulas, handwriting. MinerU publishes the most precise requirements.

Hardware requirements published by the developers (READMEs checked November 18, 2026)
Tool and settingRequired memory or acceleratorNote
MinerU basic (ONNX)2 GB of RAM, no acceleratorAbout 0.8 GB of models to download
MinerU standard or advanced (ONNX + llama.cpp)8 GB of RAM, an adequate CPUAbout 2 GB of models, Vulkan recommended
MinerU standard or advanced (PyTorch)16 GB of RAM, GPU or MPS with 8 GB of VRAM or moreAbout 2 to 3 GB of models
Marker fast or no_ocrCPU or MPS, no GPUIndra ONNX weights of about 18 MB according to Datalab
Marker balanced or vllmNVIDIA GPU with Docker, or llama.cpp on Mac and CPUSurya server launched automatically on first use
DoclingNot quantified in the READMEPyTorch required; macOS, Linux, and Windows, x86_64 and arm64

On Windows with a NVIDIA card, Marker requires Docker and the NVIDIA Container Toolkit for its Surya server, and the full version of MinerU (mineru[full]) requires a GPU build of PyTorch installed separately. On Mac, Marker replaces this server with llama.cpp, which you can install with Homebrew.

#How do you convert a PDF to Markdown with Marker, MinerU, or Docling?

You install Marker, MinerU, and Docling with pip in an isolated Python environment, then convert a PDF to Markdown with a single command. Marker requires Python 3.10 or later and PyTorch, MinerU 4.x requires Python 3.11 to 3.14, and Docling requires Python 3.10 or later. The commands come from the official READMEs, checked on November 18, 2026.

  1. 01
    Create a dedicated Python environment
    Create one virtual environment per tool to avoid PyTorch version conflicts: uv and Python 3.12 for MinerU, as its README suggests; a venv with Python 3.10 or later for Marker and Docling.
  2. 02
    Install the tool you chose
    Install Marker with the marker-pdf package (marker-pdf[full] for non-PDF files), MinerU with the mineru package at version 4.x, or Docling with the docling package. The first run downloads the analysis models, ranging from a few dozen megabytes to about 3 GB depending on the tool and setting.
  3. 03
    Convert your first PDF
    Run the conversion command on a short file that's representative of your documents. Marker writes the Markdown and extracted images to an output folder, MinerU writes to the path given after -o, and Docling writes a .md file to the current directory.
  4. 04
    Check the output
    Open the generated Markdown next to the PDF and check the reading order, headings, a table, and a formula. If a scanned page comes out blank or unreadable, switch to a more accurate mode: MinerU's advanced level, or Marker's vllm mode or --force_ocr option.
Marker: macOS, Linux, or Windows (Python 3.10+)
pip install marker-pdf
marker_single /path/to/file.pdf
MinerU: macOS or Linux (uv)
pip install uv
uv venv .mineru --python 3.12
source .mineru/bin/activate
uv pip install -U "mineru>=4.0,<5"
mineru-kit parse document.pdf -o document.md --tier standard
MinerU: activating the environment on Windows (PowerShell)
.\.mineru\Scripts\Activate.ps1
Docling: macOS, Linux, or Windows (Python 3.10+)
pip install docling
docling https://arxiv.org/pdf/2206.01062

The Docling command converts the arXiv paper used as an example in the documentation; according to the command-line reference, the source can also be a local file or a folder, and the default output is Markdown. The --vlm-model granite_docling option has GraniteDocling read the pages.

#How do you check that a PDF-to-Markdown conversion is reliable?

Check a PDF-to-Markdown conversion on five points, because no tool is perfect on every document: paragraph order on a two-column page; a table (rows, columns, merged cells, a table split across two pages); a readable LaTeX formula; removal of repeated headers and footers; no empty pages. An empty page in a native PDF often signals a damaged text layer, which Marker's --force_ocr option works around. Keep a fixed sample of pages to compare tools and their updates.

#Converting a PDF to Markdown online or locally: data and licenses

An online PDF-to-Markdown converter receives your file on its servers, which rules out contracts, medical records, and client documents. Marker, MinerU, and Docling run locally, with two settings to watch. MinerU's README states that documents are not sent to the official service without explicit configuration, and that MinerU's document library enables usage telemetry by default; the mineru-kit parse command used in this guide is not affected.

According to the same README, MinerU's telemetry excludes document content, file names, and search queries, and you can turn it off with the mineru telemetry disable command. With Marker, the sensitive point is the --use_llm option, which is online by default. Docling separates local conversion (docling convert) from conversion through a remote service (docling convert-remote).

Licenses checked on the official repositories on November 18, 2026
ToolCode licenseCondition to know
MarkerApache 2.0Model weights under a modified Open Rail-M license: free for research, personal use, and startups with under $5M in funding or revenue
MinerUApache 2.0 with additional termsCommercial license required above 100 million monthly active users or $20M in monthly revenue; MinerU attribution required in an online service
DoclingMITEach model you use keeps its own license
i
Professional use
A small business converting its own documents stays far below MinerU's thresholds; the attribution is only required for an online service built on MinerU. Above $5M in funding or revenue, Marker's model weights require a commercial license from Datalab.
Frequently asked questions
Can you convert a PDF to Markdown for free?+
Yes. Marker, MinerU, and Docling are open source, free for personal use, and installable with Python on Windows, macOS, or Linux. The limits apply to commercial use: Marker's model weights beyond $5M in funding or revenue, and mandatory attribution of MinerU in an online service. Docling's code is under the MIT license.
Do you need a graphics card to convert a PDF to Markdown?+
Not for native PDFs. Marker's fast and no_ocr modes, MinerU's basic level, and Docling all run on the CPU. A graphics card speeds up scanned PDFs and formulas: MinerU then requires 8 GB of VRAM or more with PyTorch, and Marker needs a NVIDIA GPU or llama.cpp for its Surya model.
Marker, MinerU, or Docling: which is the most accurate?+
No recent independent ranking settles the comparison between Marker 2.2, MinerU 4.2, and Docling 2.150. On OmniParseBench from Datalab, the company behind Marker, MinerU 2.5-Pro, an earlier version, gets the best score of the three (87.1 points, versus 85.9 for Marker in vllm mode and 67.5 for Docling), but it's the slowest. The reliable approach is to convert ten typical pages of your documents with each tool and compare the tables and reading order.
Do these tools convert scanned PDFs to Markdown?+
Yes, all three include OCR. Marker runs scanned pages through its Surya 2.5 model in balanced or vllm mode, MinerU handles them starting at the basic level, and Docling offers several OCR engines (including Tesseract, EasyOCR, and RapidOCR) as well as the GraniteDocling model. For heavily degraded scans, MinerU's advanced level and Marker's vllm mode are the settings their developers describe as the most accurate.
Is an online PDF to Markdown converter safe for confidential documents?+
An online PDF-to-Markdown converter receives the file on its servers, with a retention period set by its terms. For contracts, health data, or client documents, local conversion with Marker, MinerU, or Docling avoids that upload, provided you don't enable Marker's --use_llm option with a remote service.
Do Marker and MinerU run on Apple Silicon Macs?+
Yes. Marker picks its fast mode on MPS by default and uses llama.cpp, installable with Homebrew, for its vision-model modes. MinerU's default installation supports Apple Silicon acceleration. Docling runs on arm64 and accelerates the GraniteDocling model with MLX, Apple's machine learning framework for its chips.

#Sources and verification as of November 18, 2026

Versions, dates, commands, hardware requirements, and licenses were collected on November 18, 2026 from the official GitHub repositories, PyPI, and documentation; the scores are those published by Datalab and have not been verified by a third party, and all three projects ship new releases almost every week.

Did this guide help you?

Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.