Skip to content

What Is MinerU? Converting PDFs to Markdown and JSON, OCR, Setup, License and Commercial Use

You type `mineru-kit parse report.pdf -o report.md --tier standard` in the terminal; MinerU uses models to work out the PDF's page layout, tables and formulas, and gives you the document as Markdown or JSON. It runs OCR on scanned pages and also converts Word, PowerPoint, Excel, EPUB, HTML and CSV files. You pass the output to AI, a knowledge base or your own program. Developed by the OpenDataLab team at Shanghai AI Laboratory, it's used as a command-line tool, a web interface, a Python SDK and an HTTP API; processing happens on your computer by default.

What it does
Converts documents to Markdown/JSON with tables and formulas
Type
Python package + command line + web interface + API
Maker
Shanghai AI Laboratory (OpenDataLab)
Privacy
Local by default; goes remote only if you configure it
Watch out
The license isn't plain Apache 2.0: it has extra terms
Latest release
4.2.3 (November 16, 2026)
Price
Free (license thresholds on the page)

What is MinerU and what does it do?

Getting text out of a PDF is easy; the hard part is preserving the reading order on a multi-column page, a table's rows and cells, a formula and the position of a figure. If that structure is lost, AI matches a figure in a report to the wrong heading. MinerU is a document converter built for this: it examines the page with models, runs OCR on scanned pages and turns the result into formats AI can read, such as Markdown or JSON. The docs home page introduces the tool this way: it converts PDFs, images and office documents into Markdown and structured data. MinerU is not a RAG framework, a vector database or a chat-with-your-documents app; it prepares the document, and you build what comes after.

Who it's for: consulting, research and legal teams that feed multi-column reports, papers and contracts into a knowledge base; accounting firms processing statements and invoices with tables; developers working with academic and technical documents full of formulas. Running locally by default suits organizations that want to convert documents without sending them out. Who it's not for: someone who doesn't use the terminal and wants a one-click interface; even the local web interface is first installed from the terminal. For a ready-made app, you can try the online demos (the document is uploaded; see the data section).

Sources: MinerU README (Overview, Agent Guide), docs/en/index, mineru.net, November 23, 2026.

How does MinerU work?

You give it a documentreport.pdfInputA file or folder.
You pick a tier
  • flash: fast, lowest quality
  • basic: OCR, formulas, tables
  • standard / advanced: complex pages
Models read the pageLayout, tables, formulas and OCR.
You get the output› -o report.mdMarkdown, JSON, HTML, LaTeX, DOCX, EPUB, PDF.
PDFs and images use all four tiers. Office, OpenDocument, RTF, EPUB, OFD, HTML and CSV files are parsed locally as whole documents at the Flash tier. Model weights are downloaded on the first run that uses models.

Sources: README (Overview), docs/en/usage/tiers, docs/en/reference/output_files, November 23, 2026.

Which files does MinerU read, and what does it output?

PDFPDF (scanned too)DOCXWord (doc, docx)PPTXPowerPoint (ppt, pptx)XLSXExcel (xls, xlsx)HTMLHTML, MHTMLPNGImages (png, jpg, webp, tiff…)CSVCSV, TSV
  • Others it reads: RTF, OpenDocument (ODT, ODS, ODP), EPUB (as a whole document in OPF order), OFD. Plain-text files (.txt, .md, .rst, .tex) aren't converted; they're read directly.
  • Outputs it produces: nine targets from a single document model: Markdown, HTML, LaTeX, DOCX, EPUB, PDF, Structured Content, and Content List V1 and V2. Each command and interface offers a subset of them; which one gives what is on the "Output Formats and Result Contract" page.
  • In the web interface, the Markdown and JSON results download as separate ZIP files together with their images.

Sources: README (Supported Inputs), docs/en/usage/webui, docs/en/reference/output_files, November 23, 2026.

How do you install MinerU?

No account needed. You need Python 3.11 to 3.14 (the README calls Python 3.12 a good starting point); it runs on Windows, Linux and macOS. The base package runs on the CPU, on Apple Silicon and on compatible Intel, AMD and NVIDIA graphics cards. In the commands below, the latest release as of November 23, 2026 (4.2.3) is pinned; the README gives an unpinned range (mineru>=4.0,<5).

Virtual environment (Linux / macOS)› pip install uv uv venv .mineru --python 3.12 source .mineru/bin/activate
Virtual environment (Windows PowerShell)› pip install uv uv venv .mineru --python 3.12 .\.mineru\Scripts\Activate.ps1
Version pinned› uv pip install "mineru==4.2.3"

The README's command has no pinned version: uv pip install -U "mineru>=4.0,<5". After installing, mineru --help lists the commands.

  1. A first try without models: mineru-kit parse report.html -o report.md --tier flash runs with the native HTML parser and needs no model download (the Quick Start example).
  2. Download the models in advance (optional): mineru-kit models download --tier standard --source huggingface, then mineru-kit models verify --tier standard. You need these two steps if you'll work offline.

Sources: README (Install Manually), docs/en/quick_start, extension modules, docker_deployment, usage/model_source, PyPI mineru 4.2.3. Checked on November 23, 2026.

How do you use MinerU? What you type, what you get

There are two command trees: mineru-kit holds the stateless conversion, service and model tools, while mineru is the client for a document library that stores converted documents, searches them and reads them by location. The commands come from the docs' examples; the outputs are described only as far as the docs describe them.

Convert a PDF to Markdown› mineru-kit parse report.pdf -o report.md --tier standard

What you get: report.md in your current folder. By default, mineru-kit parse converts all of the PDF's pages. Model weights are downloaded on the first run that uses models, so it can take a while. Open your first document and check how the tables and formulas look in the Markdown.

Every document in a folder› mineru-kit parse ./documents -o ./output --format zip

What you get: result ZIP files in the output folder. With multiple inputs, -o must be a folder; for a single file you give a file path.

Without models: only the PDF's text layer› mineru-kit parse document.pdf -o document.md --tier flash --ocr-mode txt

What you get: the PDF's embedded text; no OCR fallback is added for scanned pages. For scanned pages, you need --ocr-mode ocr and the relevant models prepared.

Document library: search, read by location, cite
Start the service and convert a PDF in full› mineru server start mineru parse document.pdf --pages all -o document.md --wait 600

mineru parse requests only the first 10 pages of a PDF by default; for the whole document, write --pages all. The default wait is 60 seconds; running out doesn't cancel the conversion, and you keep waiting by repeating the same command.

Search the library, then read from a location› mineru search "liquidated damages" --min-tier basic --json mineru read "doc:ab12cd3/tier:standard/page:18" --json

What you get: the search result gives a document ID (short_id), a snippet and a location; mineru read returns the text from that page or block. The location format is doc:{short_id}/tier:{tier}/page:{page}/block:{block}; it stays stable for citations.

Web interface and Python
Local web interface› mineru-kit webui

You open the address printed in the terminal in your browser, upload the file, select the page range and press Convert. In the result, clicking a region in the source page highlights the converted paragraph; the download menu offers Markdown, JSON, HTML, DOCX, LaTeX, EPUB and PDF. The online demos are on Hugging Face (flash and basic tiers only) and ModelScope (all four tiers).

Python SDK (README example, shortened)› from mineru import DoclibClient from mineru.doclib import ParseRequest client = DoclibClient() submit = client.ensure_parse(ParseRequest(path="paper.pdf", tier="standard")) # poll client.get_parse(...) until done, then: content = client.read_content(f"doc:{submit.short_id}/tier:standard/page:1")

First you start the service with mineru server start; ensure_parse returns immediately, the conversion continues in the background, and you wait for the result by polling the task status. For your own service, mineru-kit api-server exposes the asynchronous Tasks API.

Sources: README (Quick Start, Python SDK, Agent Guide), docs/en/quick_start, usage/cli_tools, usage/quick_usage, usage/webui, November 23, 2026.

Which tier and model? The differences

MinerU isn't a chat model; it uses task-specific models to read documents. The choice is made less by model than by tier: the tier sets the quality, the speed and the hardware needed. The small models (layout, OCR, formulas, tables) run with ONNX or PyTorch; the standard and advanced tiers also run a vision-language model (a model that sees an image and writes text, a VLM) on top of them, and llama.cpp, vLLM, LMDeploy or mlx can serve the VLM. The technical reports linked in the README describe MinerU2.5 and MinerU2.5 Pro.

TierWhat runsWhat for (the docs' description)
flashThe PDF text layer and native document parsing; Flash OCR for scanned pages and imagesFast previews and indexing; lowest quality, not the default for final reading
basicONNX or PyTorch small models; no VLMOCR, formulas and tables; local reading or a low-resource machine
standardSmall models + VLMComplex layouts and high quality; the default tier for PDFs
advancedThe same models as standard, with more inference computationDifficult documents; slowest, never chosen implicitly

Which should you pick? For an ordinary PDF, the default standard is enough; if your machine can't handle it, basic is the remaining option. flash is only for quick browsing and indexing. advanced only for difficult documents and if you accept the wait. The docs say advanced downloads no separate models: it shares standard's models.

Where models are downloaded from

The default model.source: auto tries Hugging Face first and switches to ModelScope if it's unreachable. With models downloaded in advance, you can work offline (mineru-kit models download and verify).

Automatic tier ceiling

When the server picks tiers automatically, a graphics card opens all four tiers; on the processor alone, at least 12 logical cores allow up to standard, 4 to 11 cores up to basic, and fewer than 4 only flash.

Checked on November 23, 2026. Sources: docs/en/usage/tiers, usage/model_source, README (Quality Tiers, Model Engines with Extras). The tier list and engines change with releases.

What hardware does MinerU need? The real cost

The software is free; the cost is in hardware. Flash conversion without models (a PDF's text layer, Office, HTML) needs no inference models. For the tiers that use models, the README's table:

TierEngineModel downloadMinimum RAMAccelerator
basicONNX~0.8 GB2 GBNone (CPU works)
basicPyTorch~0.8 GB8 GBGPU / MPS recommended
standard / advancedONNX + llama.cpp~2 GB8 GBCPU works, Vulkan recommended
standard / advancedPyTorch + llama.cpp~2 GB16 GBGPU / MPS required, 8 GB+ VRAM
standard / advancedPyTorch + vLLM / LMDeploy / mlx~3 GB16 GBGPU / MPS required, 8 GB+ VRAM
Which machine gets what (the README's recommendation)
  • Apple Silicon Mac: standard (PyTorch + llama.cpp); at least 16 GB of unified memory is recommended
  • Mac with an Intel processor: basic (ONNX)
  • NVIDIA with 8 GB+ VRAM: standard (the full extra)
  • NVIDIA with 4 GB+ VRAM: basic (the torch extra)
  • Modern integrated graphics: standard (ONNX + llama.cpp)
  • Machine without a modern accelerator: basic (ONNX)
About speed

The docs give no pages-per-second figure. The 4.1 release notes say that with automatic graphics acceleration through ONNX on Windows and Linux, representative core workloads run at about 2–3 times the processor's speed (the maker's statement). mineru-kit hardware detect recommends a tier for your machine.

The real cost: the software is free; the computer, electricity and (if you run it on a server) the rental fee are yours. No server amount is given: it varies by provider. You handle updates and model downloads yourself.

Sources: README (Model Engines with Extras, Choose Local Tier), docs/en/usage/tiers, README MinerU 4.1 notes, November 23, 2026.

Is MinerU free? License and commercial use

Using the software is free; there's no paid plan and no account. The license isn't plain Apache 2.0: it's Apache 2.0 plus additional terms (the "MinerU Open Source License"). GitHub's license field shows "Other", and pyproject.toml names a project-specific license. That's why the license is cited by its name rather than as a standard open source license: the source code is publicly available on GitHub, but its use is subject to the additional terms.

Allowed
  • Using it for commercial purposes without a separate commercial license
  • The use, modification and distribution that Apache 2.0 allows (subject to the additional terms)
Not allowed
  • If you and your affiliates together exceed 100 million monthly active users or USD 20 million in total monthly revenue, using it without a separate commercial license from the MinerU team before continuing
  • When offering an online service based on MinerU to third parties, not stating clearly in the interface or in public documentation that MinerU is used
  • According to the license text: if you don't obtain the commercial license at the threshold or don't meet the attribution requirement, the license and all the rights it grants terminate automatically

Online service: mineru.net offers the official application (a download client and online use); this service's price and free quota aren't in the documentation. The mineru usage command shows the usage and limits of the remote API you configured. For pricing, check the official site.

Sources: LICENSE.md (raw text, "MinerU Open Source License"), README (License Information), pyproject.toml, GitHub repository info, November 23, 2026. This is not legal advice.

Does MinerU work with Turkish documents?

Interface and docsNoThe commands and docs are in English; the README also exists in Chinese.
Turkish PDFs and office documents with a text layerUnclearThe docs state no language-specific limit; compare the text that comes out of your first document with the original.
Scanned Turkish documents (OCR)UnclearThe 4.x docs give no OCR language list; they state neither support nor a limit for Turkish. Try your scanned document with a single page first.

Sources: README, docs/en/usage/tiers and quick_start; no OCR language list is given, November 23, 2026.

Is MinerU safe? Where do my documents go?

By default: it stays on your computer

README: a document is sent for remote parsing only when the command includes --remote; if local work fails, it doesn't switch to remote on its own. There's no automatic upload to the official service; remote parsing is configured explicitly.

What can leave your computer

A document sent to remote parsing with --remote (or with a parsing rule that includes --remote); page images sent to a remote vision-language model service you configure; text sent to an LLM-aided post-processing service you configure (both are off by default); a file uploaded to the online demos (Hugging Face, ModelScope); the request to Hugging Face or ModelScope when downloading model weights.

Telemetry

The document library (the mineru command) collects usage and diagnostic telemetry, enabled initially; document contents, file names and paths are excluded. mineru telemetry disable or MINERU_TELEMETRY_DISABLED=1 turns it off. mineru-kit parse and the V1 API server are out of scope.

Scanned documents

Scanned documents can contain identity, health or customer information; convert those files locally rather than through remote parsing or the online demos.

Sources: README (Privacy Rules, Telemetry), docs/en/quick_start, usage/model_source, November 23, 2026. This is not a security audit.

Common problems and fixes

What happensWhat to do
server_not_running errorThe document library service is off: mineru server start; for status, mineru server status.
quality_tier_unavailable or no_engine: no normal-quality tierCheck the tiers with mineru server status --json. Options: set up the local parse server (download and verify the models, mineru config set parse_server.local.managed_tier <tier> and parse_server.local.mode managed), approve remote parsing with --remote (the document is uploaded), or accept the lower-quality flash.
parse_oom: memory or video memory ran outA lower tier, fewer pages (--pages) or remote parsing (the document leaves your computer).
parse_wait_timeout: the wait ran outThe conversion isn't cancelled; it continues. Repeat the same command or add --wait 600; models are downloaded on the first run.
file_encrypted: a password-protected fileProvide a copy with the password removed.
An environment older than Python 3.11Stop the services, recreate the environment with Python 3.11–3.14, then install MinerU.

Sources: README (Server Rules, Error Recovery), docs/en/usage/cli_tools and quick_start, November 23, 2026.

How do you uninstall MinerU?

› mineru server stop uv pip uninstall mineru

First stop the document library service. The downloaded models and configuration stay on disk separately: the MINERU_HOME folder (default ~/.mineru) holds the configuration (config.yaml), and the model folder defaults to ~/.mineru/models. Delete these folders to free up space. If you want to rebuild the virtual environment from scratch, deleting the .mineru environment folder is enough.

Sources: README (Configuration), docs/en/usage/model_source, November 23, 2026.

MinerU or Docling?

MinerUDocling
ApproachFour tiers (flash, basic, standard, advanced); standard and above use a vision-language modelA standard pipeline (layout, table, OCR models) and an optional VLM pipeline
OCRLocal OCR depending on the tier; no language list in the docsLocal engines; the language is chosen with --ocr-lang
OutputMarkdown, HTML, LaTeX, DOCX, EPUB, PDF, JSON (Structured Content, Content List)Markdown, HTML, lossless JSON, chunks
Document libraryYes: storage, search, reading by locationNo (a library and a command line)
LicenseApache 2.0 + additional terms (revenue and user thresholds, attribution)MIT (models under their own licenses)
Python3.11–3.143.10+

The table comes from the official MinerU and Docling documentation (November 23, 2026) and Docling's own guide. This is not a ranking.

Frequently asked questions

How do you convert a PDF to Markdown with MinerU?

Install it with uv pip install mineru on Python 3.11–3.14 and type mineru-kit parse document.pdf -o document.md --tier standard. Model weights are downloaded on the first run that uses models. For the document library there's mineru parse document.pdf --pages all -o document.md; by default it requests only the first 10 pages.

MinerU or Docling?

Both convert a PDF to Markdown and JSON with its layout. MinerU offers four quality tiers and a document library that stores and searches converted documents, and its license adds terms to Apache 2.0. Docling has MIT-licensed code and gives lossless JSON, and lets you choose the OCR language by command. Your license and OCR-language needs may decide.

Is MinerU free, and can it be used commercially?

Yes, it's free and no separate license is needed for commercial use. If you and your affiliates together exceed 100 million monthly active users or USD 20 million in monthly revenue, you must obtain a commercial license from the MinerU team before continuing to use it. If you offer an online service based on MinerU, you must state clearly that MinerU is used.

Is MinerU open source?

The source code is publicly available on GitHub, but the license isn't plain Apache 2.0: revenue and user thresholds and an attribution requirement are added to Apache 2.0. GitHub shows the license as "Other". That's why it is cited by its name ("MinerU Open Source License") rather than as a standard open source license.

What is the MinerU API, and do you need an API key?

On your own server you can run the asynchronous Tasks API with mineru-kit api-server; if you configure a key, requests need the Bearer key, and a local service without a key doesn't. For the official remote service, MINERU_API_KEY is used and mineru usage shows the quota; its price isn't in the docs.

Does MinerU need a graphics card?

No. The base package runs on the processor: the basic tier with 2 GB of memory, standard and advanced with ONNX + llama.cpp with 8 GB. NVIDIA or Apple Silicon is faster and opens more tiers; standard on PyTorch needs 16 GB of memory and 8 GB+ of video memory.

Does MinerU send my documents out?

Not by default: a document leaves your computer if the command has --remote or if you configured a remote vision-language model or LLM-aided post-processing service. Files uploaded to the online demos and model download requests do leave your computer. The document library collects usage telemetry; mineru telemetry disable turns it off.

Does MinerU work with Turkish documents?

The 4.x docs give no OCR language list and state neither support nor a limit for Turkish. For a Turkish PDF with a text layer, compare the text from your first document with the original; try a scanned document with a single page first.

Related guides

Sources

Not clear in the official sources: OCR accuracy on scanned Turkish documents: the 4.x docs give no OCR language list · the price and free quota of the official remote service (mineru.net): not in the docs, mineru usage shows the quota · the docs give no speed figure (pages per second).