MinerU: converting a PDF with tables and formules

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.
#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?
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.
| Tier | Intended use | What runs locally | When to choose it |
|---|---|---|---|
| flash | Quick previews, indexing, native documents | Reads the PDF's text layer; Flash OCR for scans | Report exported from a word processor, text already selectable |
| basic | OCR, formulas, and tables | Small ONNX or Torch models, no VLM | CPU with 4 to 11 logical cores, simple scans |
| standard | Complex layouts, high quality | Small models and VLMs | Columns, dense tables, formulas; default tier for a PDF |
| advanced | Higher quality requirements | Standard-tier models, more compute | Pages 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.
- 01Create a Python 3.12 environmentIn 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.
- 02Activate the environmentOn Linux and macOS: source .venv/bin/activate. In Windows PowerShell: .venv\Scripts\Activate.ps1 from the same folder.
- 03Install the 4.x base packageRun 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.
- 04Check the version and hardwareRun 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.
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.
#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.
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.
| Document | Commande | Observed | Observed 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 mode | None on this simple table |
| Article with formulas as native text | --tier standard | E = m c^2 and 2 + 3 = 5 kept as is | Copied text, not proof of formula recognition |
| Scanned French letter | --ocr-mode ocr | Accents, reference QLL-2026-1042, and amount 1 234,56 euros correct; 16.7 s | QuelLLM read as QueILLM (l/I confusion) |
| PDF with two formulas as images | Unrated options | Two formulas rendered in LaTeX | Absolute value bars added around the integral; x turned into X in the quadratic formula |
| Folder for the first three PDFs | --format zip | Three intact archives with markdown.md, middle_json.json and structured_content.json; 17.5 s for the batch | None; 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.
#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.
- 01Build a small test setGather 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.
- 02Convert with a specified tierRun 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.
- 03Compare side by sideOpen 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.
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.
| Symptom | Likely cause | Action |
|---|---|---|
| Empty or nearly empty output on a scan | --tier flash --ocr-mode txt reads only the text layer | Rerun with --ocr-mode ocr after preparing the models |
| Only the first ten pages are output | mineru parse (library) instead of mineru-kit parse | Use mineru-kit parse, or add --pages all to mineru parse |
| Engine or dependency error | Engine explicitly selected but not installed, incompatible driver | Read mineru-kit hardware info --json, then the tiers and engines page |
| Command from an old tutorial rejected | 3.x syntax, for example mineru -p | Replace with mineru-kit parse, then review the 4.0 and 4.1 migration pages |
| Offline failure with the local source | Model missing from the models folder | Run mineru-kit models verify, then download the missing tier |
| Incorrect table or formula | Limitation of the chosen tier or of OCR | Try 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.
Is MinerU free for professional use?+
Does MinerU run on an Apple Silicon Mac?+
How do you use MinerU from Python or an API?+
What is MinerU2.5, and how does it relate to MinerU 4?+
Does the mineru.net site upload my documents online?+
#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.
- Source: MinerU 4.x quick start (OpenDataLab)
- Source: Tiers and execution engines (OpenDataLab)
- Source: Output formats and result contract (OpenDataLab)
- Source: downloading and configuring models (OpenDataLab)
- Source: migrating from 4.0 to 4.1 (OpenDataLab)
- Source: migrating from 3.x to 4.0 (OpenDataLab)
- Source: command-line tools (OpenDataLab)
- Source: Official MinerU GitHub repository and license
- Source: mineru package on PyPI
- Source: MinerU2.5 technical report (arXiv)
- Source: MinerU2.5-Pro technical report (arXiv)
Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.