Skip to content

Best PDF parsers for RAG in 2026

Most "best parser" lists rank tools nobody scored. This one gives every tool the same columns and, where a public benchmark score exists, says who measured it. Where none exists the cell says so.

We make ReadAnyDoc, one of the tools here, so read it the way you would read any vendor's list. The picks below are by the kind of PDF you have, because that decides more than any ranking: a parser that is best on scans is a waste of money on clean digital text. Last checked: 2 December 2026.

Pick by your PDFs

Your PDFs Pick Why
Born-digital, simple layout, text you can select PyMuPDF4LLM milliseconds a page, free, reads the text layer directly
Mixed digital PDFs and Office files, nothing may leave your network, no GPU Docling MIT, runs on a CPU, own layout and table models
Scans, photos, multi-column pages, small print, no GPU ReadAnyDoc 85.4 on olmOCR-bench with a hosted vision model; open source
Hard pages and you have GPUs MinerU or PaddleOCR-VL best published text scores on OmniDocBench, no per-page cost
You want a hosted API and speed Reducto or LlamaParse seconds a page, nothing to run
Many file types, plain text is enough MarkItDown MIT, converts Office, HTML and more to Markdown

The same facts for each

Tool Kind Licence Cost per page olmOCR-bench OmniDocBench text error (lower is better) Score measured by
PyMuPDF4LLM library AGPL-3.0 or commercial free not published not published -
Docling library MIT free, your hardware not published not published -
ReadAnyDoc library, server, MCP Apache-2.0 about $0.003-0.005, to your model provider 85.4 0.050 us; per-page results public
MinerU library + its own 1.2B model Apache-2.0 with extra terms free, your GPU 75.2 0.045 the benchmarks' authors
PaddleOCR-VL local vision model (0.9B) Apache-2.0 free, your GPU 80.0 0.040 the benchmarks' authors
Marker library Apache-2.0 code; weights free under $5M funding or revenue free, your hardware 76.1 (1.10.1) 0.157 the benchmarks' authors
Mistral OCR hosted API closed see Mistral's pricing 72.0 0.097 the benchmarks' authors
Reducto hosted API closed $0.010 (r-1) 80.9 0.095 us
LlamaParse hosted API closed service $0.0015-0.0375 by tier not published not published -
MarkItDown library MIT free not published not published -

Scores from different sources are not a ranking: tool versions and benchmark revisions differ, and several of these tools have newer releases than the version scored. Both benchmarks are public: olmOCR-bench (1,403 hard pages, unit tests) and OmniDocBench.

What matters for RAG, beyond a score

  • Reading order. Two columns read line by line across the page give you chunks that mix two topics. On olmOCR-bench's multi-column tests: ReadAnyDoc 80.9, Marker 80.0, MinerU 78.2, Reducto 65.6.
  • Tables. A table flattened to text loses which number belongs to which row. olmOCR-bench table tests: Reducto 92.7, ReadAnyDoc 89.8, MinerU 84.9, Marker 72.9.
  • Scans. A text-layer parser returns nothing, or worse, the bad text an old OCR pass left in the file. RAG gives wrong answers on scanned PDFs
  • Where the chunk came from. Page and box for each chunk lets you show the source beside the answer.
  • Speed and cost at your volume. A million pages at $0.010 is $10,000. The cheapest way to process a million pages

The picks, with their weak spots

PyMuPDF4LLM: best for clean digital PDFs

Fast and free. Weak spots: it reads the text layer, so scans need a separate OCR step; tables without ruling lines can come out wrong; the AGPL licence matters if you ship it inside a closed product.

Docling: best free local parser

MIT, CPU, good on digital documents and Office files, LangChain and LlamaIndex loaders. Weak spots: no published score on the two benchmarks above; scans depend on its OCR step.

ReadAnyDoc: best for hard pages without a GPU

A vision model you already have an account with (Claude Haiku 5.5 by default) reads each page; the engine checks tables, fixes reading order and returns a position for every block. LangChain and LlamaIndex loaders included.

import readanydoc
markdown = readanydoc.parse("report.pdf").markdown

Weak spots: 20-50 seconds a page, the slowest tool here. It costs money per page where the local tools do not. Pages go to the model provider you choose unless you host the model. Behind Reducto on tables (89.8 against 92.7). Benchmarks · PDF to Markdown for RAG

MinerU and PaddleOCR-VL: best with a GPU

Their small vision models post the best published OmniDocBench text scores and cost nothing per page. Weak spots: you need GPUs and someone to run them; MinerU's licence has extra terms for very large companies. Open-source parsers compared

Reducto and LlamaParse: best hosted

Seconds a page and nothing to operate. Reducto has the best table score we have measured. Weak spots: closed, per-page billing, documents leave your network unless you buy an enterprise deployment. LlamaParse publishes no score on these benchmarks. vs Reducto · vs LlamaParse

A cheap setup that works

Route by page, not by document: read digital pages from the text layer for free, and send only scanned or table-heavy pages to a vision parser. Most collections are mostly easy pages, so the bill drops by the share of pages that never reach a model. The routing code is in the million-pages guide.

Questions

What is the best PDF parser for RAG? For clean digital PDFs, PyMuPDF4LLM. For free local parsing of mixed documents, Docling. For scans and hard layouts without GPUs, ReadAnyDoc. With GPUs, MinerU or PaddleOCR-VL. For a hosted API, Reducto or LlamaParse.

What is the best open-source PDF parser for RAG? Docling (MIT) and ReadAnyDoc (Apache-2.0) need no GPU; MinerU, PaddleOCR-VL and Marker run local models. Of those with a published olmOCR-bench score, ReadAnyDoc's 85.4 is the highest, measured by us with results public.

Do I need a vision model to parse PDFs for RAG? Not for born-digital text. You do for scans, photos, complex tables and multi-column pages where the text layer is missing or in the wrong order.

How do I test parsers on my own documents? Take 30 pages that gave wrong answers, run each parser with default settings, and check three things by eye: reading order, one table per page, and whether the numbers match the page.

More comparisons