Intermediate 13 minDocuments

MinerU: converting a PDF with tables and formules

BestLLMfor — PDF with MinerU — Tables and formulas
Direct response

MinerU is an open-source converter from OpenDataLab that locally turns a PDF into Markdown and JSON, detecting tables, formulas, and reading order. Version 4.2.3 was released on November 16, 2026: install mineru 4.x on Python 3.11 to 3.14, then run mineru-kit parse document.pdf -o document.md. You still need to proofread extracted formulas: a test on November 17 found two errors.

MinerU converts difficult PDFs, with tables, formulas, columns, or scanned pages, into files a local AI can work with. The commands changed with the 4.x series, and many tutorials still show the old syntax. Here you'll learn how to install the right version, choose the analysis tier, run the conversion, and check what it actually produced.

By Mohamed Meguedmi·Update 2026-12-04·Tested on Windows, macOS, and Linux

#What is MinerU and what does it produce?

MinerU is an open-source document converter, published by OpenDataLab, that turns a PDF, an image or an Office file into Markdown and structured JSON, locally. It detects headings, tables, formulas and reading order, to prepare a corpus for a local AI or a search index.

As of November 18, 2026, the latest version on PyPI is MinerU 4.2.3, released November 16. The 4.x series changed the commands compared with the 2.x and 3.x tutorials still widely available online: direct conversion now goes through mineru-kit parse, while the mineru command is for the document library, with caching, search and chunked reading. According to the 3.x to 4.0 migration page, the old mineru -p input.pdf -o output command becomes mineru-kit parse input.pdf -o output.md for a one-off conversion.

Tier
Analysis quality and cost setting: flash, basic, standard, or advanced.
VLM
Vision-language model that reads complex regions of the page, such as MinerU2.5 with its 1.2 billion parameters.
Middle JSON
Intermediate representation of the document: ordered pages and semantic blocks produced by post-processing.

#Which MinerU tier should you choose: flash, basic, standard, or advanced?

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

Choose the MinerU tier based on the document: flash for a native PDF whose text is already selectable, basic for OCR, tables, and formulas without a vision-language model, and standard for complex layouts. According to the official tiers page, mineru-kit parse uses standard by default for a PDF.

The four MinerU 4.x parsing tiers, according to the official documentation as of November 18, 2026
TierIntended useWhat runs locallyWhen to choose it
flashQuick previews, indexing, native documentsReads the PDF's text layer; Flash OCR for scansReport exported from a word processor, text already selectable
basicOCR, formulas, and tablesSmall ONNX or Torch models, no VLMCPU with 4 to 11 logical cores, simple scans
standardComplex layouts, high qualitySmall models and VLMsColumns, dense tables, formulas; default tier for a PDF
advancedHigher quality requirementsStandard-tier models, more computePages where standard still falls short; on CPU, never enabled automatically

Without a graphics card, MinerU sets its own cap: according to the tiers page, at least 12 available logical cores allow up to standard, 4 to 11 cores up to basic, and fewer than 4 only flash. This rule applies to the automatic recommendation in the API and the web interface; an explicit tier still takes precedence. According to the official repository, version 4.1 automatically accelerates the ONNX engine on compatible Intel, AMD, and NVIDIA GPUs on Windows and Linux, with representative computations roughly 2 to 3 times faster than on the CPU.

On memory, the documentation stays cautious: at least 16 GB of system memory for a higher-throughput local deployment, at least 16 GB of unified memory on Apple Silicon, and 8 GB of VRAM on NVIDIA presented as a mere starting point, not a guarantee. No universal minimum is published, because standard-tier requirements depend on the VLM engine, page size, and the number of concurrent conversions.

#How do you install MinerU 4.x on Windows, macOS, or Linux?

MinerU 4.x installs with pip or uv in a separate Python environment. Since version 4.1, the official repository supports Python 3.11 through 3.14, and the quick start recommends Python 3.12. The migration pages ask you to validate 4.x in an isolated environment and, to move to 4.1, to create a fresh environment, preferably with Python 3.12.

  1. 01
    Create a Python 3.12 environment
    In an empty folder, create a dedicated MinerU environment with uv venv --python 3.12 .venv, without reusing one from a 2.x or 3.x version.
  2. 02
    Activate the environment
    On Linux and macOS: source .venv/bin/activate. In Windows PowerShell: .venv\Scripts\Activate.ps1 from the same folder.
  3. 03
    Install the 4.x base package
    Run uv pip install -U "mineru>=4.0,<5". The base package includes the web interface, the ONNX engine for the small models, and the VLM via llama.cpp; on Apple Silicon, Torch is added automatically.
  4. 04
    Check the version and hardware
    Run mineru version --json and note the version, then mineru-kit hardware info --json to see which engines and devices are selected. This second command doesn't download any weights and doesn't write the configuration.
Linux and macOS (terminal)
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -U "mineru>=4.0,<5"
mineru version --json
mineru-kit hardware info --json
Windows (PowerShell)
uv venv --python 3.12 .venv
.venv\Scripts\Activate.ps1
uv pip install -U "mineru>=4.0,<5"
mineru version --json

The torch and full extras aren't needed for a first conversion: they're for small Torch models or a higher-throughput VLM service, and optional engines such as vLLM or LMDeploy have their own system and driver requirements. Don't carry over the extras from the 3.x series.

i
Docker: mainly for Linux with NVIDIA
The official MinerU 4.x Docker deployment targets Linux with an NVIDIA GPU, or WSL2 on Windows. On an Apple Silicon Mac, the documentation recommends a direct install, because the Docker image doesn't provide MPS acceleration. Images for other hardware are awaiting an update.

#How do you convert a PDF to Markdown with MinerU?

To convert a PDF with MinerU, use mineru-kit parse followed by the file, the -o option, and the output Markdown file. By default, this command processes every page of the PDF and selects the standard tier. Work on a copy of the document and write the output to a separate file.

All systems (environment activated)
# PDF natif, sans modèle d'inférence ni OCR de secours
mineru-kit parse document.pdf -o document.md --tier flash --ocr-mode txt

# Analyse avec modèles (niveau par défaut pour un PDF)
mineru-kit parse document.pdf -o document.md --tier standard

# Dossier entier, archive ZIP par document
mineru-kit parse ./documents -o ./output --format zip

Flash mode with --ocr-mode txt reads only the PDF's text layer. According to the quickstart, it adds no fallback OCR: a scanned page comes out empty or nearly empty, and that is the expected behavior. For a scan, the documentation says to add --ocr-mode ocr and set up the corresponding models; the November 17 test used only this option, at the default standard tier.

For a folder or multiple files, the -o option must point to a folder. According to the formats reference, mineru-kit parse writes Markdown, Middle JSON or a ZIP archive; Word, HTML or LaTeX output goes through the web interface, the API or the Python rendering module.

#mineru parse vs. mineru-kit parse: the difference that truncates output

MinerU offers two similar commands. mineru-kit parse converts the file statelessly and writes the full output. mineru parse goes through the document library: according to the quickstart, by default it requests only the first 10 pages of a PDF and returns a continuation hint. If a forty-page PDF yields only ten pages of Markdown, first check which command was run; with the library, the command-line tools page says to add --pages all to get the whole document.

#What was verified during the November 17, 2026 MinerU test

Test on November 17, 2026: MinerU 4.2.3, Python 3.12.3, isolated virtual environment, Linux aarch64 machine running Ubuntu 24.04.5 with an NVIDIA GB10 chip, computation forced onto the CPU, telemetry disabled. Engines used: ONNX for the small models, llama.cpp for the VLM. Corpus: four authorized one-page synthetic PDFs.

Test of MinerU 4.2.3 on November 17, 2026 with four synthetic PDFs, CPU computation
DocumentCommandeObservedObserved limitation
Native report with a three-row table--tier standard (and flash)Three rows and the values 450, 700, and 1200 preserved in the Markdown and the structured table; 3.2 s in standard modeNone on this simple table
Article with formulas as native text--tier standardE = m c^2 and 2 + 3 = 5 kept as isCopied text, not proof of formula recognition
Scanned French letter--ocr-mode ocrAccents, reference QLL-2026-1042, and amount 1 234,56 euros correct; 16.7 sQuelLLM read as QueILLM (l/I confusion)
PDF with two formulas as imagesUnrated optionsTwo formulas rendered in LaTeXAbsolute value bars added around the integral; x turned into X in the quadratic formula
Folder for the first three PDFs--format zipThree intact archives with markdown.md, middle_json.json and structured_content.json; 17.5 s for the batchNone; the table is also included as an image in the archive

These timings, measured on single pages without a GPU, are not a benchmark. The weights were downloaded on the first model-based run: offline installation has not been validated.

!
Proofread every converted formula
In the November 17, 2026 test, MinerU 4.2.3 produced well-formed LaTeX for two image-based formulas, but with two errors: invented absolute-value bars and a variable switched to uppercase. Proofread a converted formula before feeding it into a corpus.

#How do you check the tables and formulas extracted by MinerU?

To check a MinerU conversion, compare the output with the original page on points chosen in advance: a few specific cells, two or three formulas, and the flow of paragraphs across columns. A command that finishes without errors doesn't guarantee correct output.

  1. 01
    Build a small test set
    Gather three documents you're allowed to process: a native PDF with a table, a document with display formulas, and a scanned or two-column page. For each one, note the page, the element being checked, and its exact value.
  2. 02
    Convert with a specified tier
    Run mineru-kit parse with an explicit tier, for example --tier standard, and keep a record of the version shown by mineru version --json so that two conversions stay comparable.
  3. 03
    Compare side by side
    Open the page and the Markdown side by side, then record for each item the value you got and a verdict: correct, error, or missing. Log any manual correction.
Tables
Repeated headers, merged cells, empty cells that shift a column, numbers with decimal commas.
Formules
Added or missing signs, variable case, subscripts and superscripts; in the ZIP archive, display equations may be saved as images named equation.
Reading order and OCR
Column transitions, footnotes, repeated headers, and letter mix-ups such as l and I in proper names.

Three documents won't give you an accuracy rate: they reveal the defects your corpus is likely to reproduce and tell you whether to move up a tier or proofread certain pages.

#Does MinerU work offline, and what happens to your document?

MinerU parses documents locally by default: according to the official repository, they aren't automatically sent to the official service, and remote parsing requires explicit configuration. However, the installation isn't offline out of the box, because the first model-based parse and the first ONNX calibration may download weights.

To work offline, first download and verify the models for your target level, then switch the model source to local. The models page states that the local source uses models that are already in place and fails if any are missing, without downloading anything. Then run a conversion again with the network disconnected before you promise offline operation.

Linux and macOS: prepare the standard models (ONNX and llama.cpp)
mineru-kit models download --tier standard --small-backend onnx --vlm-engine llama-cpp --source huggingface
mineru-kit models verify --tier standard --small-backend onnx --vlm-engine llama-cpp
export MINERU_MODEL_SOURCE=local
mineru-kit parse document.pdf -o document.md --tier standard

Telemetry applies to the document library, not to direct conversion. According to the quick start, Doclib includes usage and diagnostic telemetry that is enabled by default and excludes document contents, file names, and paths. The mineru telemetry disable command turns it off; the documentation states that mineru-kit parse is outside this scope.

#What should you do when MinerU botches a conversion?

When a MinerU conversion fails, the symptom often points to the cause: empty output on a scan, missing pages, engine not found, or command rejected.

Common MinerU 4.x failures, likely causes, and documented fixes
SymptomLikely causeAction
Empty or nearly empty output on a scan--tier flash --ocr-mode txt reads only the text layerRerun with --ocr-mode ocr after preparing the models
Only the first ten pages are outputmineru parse (library) instead of mineru-kit parseUse mineru-kit parse, or add --pages all to mineru parse
Engine or dependency errorEngine explicitly selected but not installed, incompatible driverRead mineru-kit hardware info --json, then the tiers and engines page
Command from an old tutorial rejected3.x syntax, for example mineru -pReplace with mineru-kit parse, then review the 4.0 and 4.1 migration pages
Offline failure with the local sourceModel missing from the models folderRun mineru-kit models verify, then download the missing tier
Incorrect table or formulaLimitation of the chosen tier or of OCRTry a higher tier on the same page and note the result

#MinerU or Docling: when should you check the other guide?

MinerU and Docling both convert PDFs for local AI, with different workflows. If MinerU won't install on your platform, the site's Docling guide covers the other pipeline. No comparative test was run: only a trial on your own documents will tell you which one fits. For scans alone, with no tables or formulas, the DeepSeek-OCR and PaddleOCR guides cover two other local OCR tools.

Frequently asked questions
Is MinerU free for professional use?+
MinerU is free and open source, under the Apache 2.0 license with additional terms. According to the repository's LICENSE.md file, commercial use doesn't require a separate license as long as you and your affiliates stay under 100 million monthly active users and under $20 million in monthly revenue. An online service built on MinerU must disclose that it uses it.
Does MinerU run on an Apple Silicon Mac?+
Yes, MinerU 4.x installs directly on macOS with Apple Silicon. The base package automatically adds Torch, with MPS for the small models and llama.cpp with Metal for the VLM. The documentation recommends at least 16 GB of unified memory and advises against Docker on Mac, since it doesn't provide MPS acceleration.
How do you use MinerU from Python or an API?+
MinerU provides a Python SDK, with the parse() function in the mineru.parser module, and an HTTP service started by mineru-kit api-server. You can also control the document library from Python with DoclibClient. Since version 4.1, the API uses the /v1/tasks endpoint: older 4.0 clients must be updated at the same time as the server.
What is MinerU2.5, and how does it relate to MinerU 4?+
MinerU2.5 is a 1.2-billion-parameter vision-language model, described on arXiv on September 26, 2025: it first analyzes the overall layout, then reads text, formulas, and tables in fine detail. MinerU2.5-Pro, introduced on arXiv on April 6, 2026, keeps the same architecture and improves the training data. MinerU 4 is the conversion software, which combines small models and the VLM depending on the selected level.
Does the mineru.net site upload my documents online?+
mineru.net hosts the MinerU web app referenced by the official repository: any file you upload to a website leaves your machine by definition. MinerU installed locally analyzes documents on your computer and sends nothing to the official service unless you explicitly configure it to. For confidential documents, stay local.

#Sources and verification as of November 18, 2026

Versions, commands, tiers, hardware rules, license terms and privacy rules were checked on November 18, 2026 against the official MinerU documentation, its GitHub repository, PyPI and arXiv; test results are those recorded on November 17, 2026 with MinerU 4.2.3. MinerU ships several releases a month, so recheck the commands before reusing them.

Did this guide help you?

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