PDF to Markdown: MinerU, Marker, or Docling ?

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.
#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.
| Your use case | Recommended tool | Why |
|---|---|---|
| Native PDFs (selectable text), high volume, laptop without a GPU | Marker, fast or no_ocr mode | Modes documented as running on the CPU, without a model server |
| Scientific papers, formulas, multi-page tables | MinerU, standard or advanced tier | Tiers designed for demanding layouts; cross-page table merging improved in 4.2 |
| Python RAG pipeline (LangChain, LlamaIndex, Haystack) | Docling | Native integrations, built-in chunking, MIT-licensed code |
| Poor-quality scanned PDFs | MinerU advanced or Marker vllm | Settings their developers present as the most accurate on difficult documents and degraded scans |
| Commercial use in a company | Docling or MinerU, after reviewing the licenses | Marker's model weights have a restrictive license above $5M |
| Mac Apple Silicon | All three | Marker 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?
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.
#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.
| Tool and setting | Required memory or accelerator | Note |
|---|---|---|
| MinerU basic (ONNX) | 2 GB of RAM, no accelerator | About 0.8 GB of models to download |
| MinerU standard or advanced (ONNX + llama.cpp) | 8 GB of RAM, an adequate CPU | About 2 GB of models, Vulkan recommended |
| MinerU standard or advanced (PyTorch) | 16 GB of RAM, GPU or MPS with 8 GB of VRAM or more | About 2 to 3 GB of models |
| Marker fast or no_ocr | CPU or MPS, no GPU | Indra ONNX weights of about 18 MB according to Datalab |
| Marker balanced or vllm | NVIDIA GPU with Docker, or llama.cpp on Mac and CPU | Surya server launched automatically on first use |
| Docling | Not quantified in the README | PyTorch 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.
- 01Create a dedicated Python environmentCreate 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.
- 02Install the tool you choseInstall 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.
- 03Convert your first PDFRun 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.
- 04Check the outputOpen 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.
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).
| Tool | Code license | Condition to know |
|---|---|---|
| Marker | Apache 2.0 | Model weights under a modified Open Rail-M license: free for research, personal use, and startups with under $5M in funding or revenue |
| MinerU | Apache 2.0 with additional terms | Commercial license required above 100 million monthly active users or $20M in monthly revenue; MinerU attribution required in an online service |
| Docling | MIT | Each model you use keeps its own license |
Can you convert a PDF to Markdown for free?+
Do you need a graphics card to convert a PDF to Markdown?+
Marker, MinerU, or Docling: which is the most accurate?+
Do these tools convert scanned PDFs to Markdown?+
Is an online PDF to Markdown converter safe for confidential documents?+
Do Marker and MinerU run on Apple Silicon Macs?+
#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.
- Source: official Marker repository (Datalab)
- Source: official MinerU repository (OpenDataLab)
- Source: MinerU license
- Source: official Docling repository (LF AI & Data)
- Source: Docling command-line reference
- Source: official MarkItDown repository (Microsoft)
Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.