If you feed PDFs to an LLM or a RAG pipeline, the PDF-to-Markdown step is where quality quietly dies. The text comes out fine, then a table collapses, a formula shatters, and a number changes to something that looks right but isn't.
So I benchmarked the open-source converters people actually reach for: MinerU, Marker, Docling, PyMuPDF4LLM, MarkItDown. I ran them on five deliberately hard documents (a research paper, a Japanese financial report, a US legal brief, a page of nothing but data tables, and a 1973 scan) and scored what an LLM actually needs. I also threw a few hosted tools (Mathpix, CloudConvert, pdf2md, and PDF·Markdown App) in for comparison, since sometimes you just want it done without a Python setup.
Two of the nine silently changed numbers. More on that below.
It's all reproducible. Every source document, all nine tools' raw outputs, the answer keys, and the scoring scripts are open:
→ Benchmark repo on GitHub · Full methodology & per-document scores
Pick one in ten seconds
TL;DR
Open source (run it yourself):
- Strongest overall: MinerU (top-end VLM). Excellent tables and formulas, but it deletes footnote text and turns contents lines into fake H1s. The VLM wants a GPU.
- Safe, balanced default: Marker. Consistent, good on formulas and figures; stumbles on multi-column layout and reference lists. (Check its commercial-use license.)
-
RAG pipelines: MinerU, Marker and Docling all keep headings.
- Skip MarkItDown: it emits zero Markdown headings, which kills heading-based chunking.
Speed on simple PDFs: PyMuPDF4LLM, until a figure breaks the reading order.
Just want it done, no setup:
- Mathpix has the cleanest formulas, but it silently drops numbers in dense tables.
- CloudConvert is fine for a one-off, but collapses dense tables into a single cell.
- pdfmarkdown.app runs in the browser with nothing uploaded, and stayed the most consistent across every document type.
Capability profiles
Here's how the nine compare across five capabilities. A bigger, rounder shape is a better all-rounder; a dent is a weak spot. It's five hard documents, not a representative sample, so read the shapes, not fine rankings. (The full per-document scores are on the original article.)
The open-source tools
MinerU: strongest overall, two blind spots
Highest recovery of any open-source tool here.
- Strong: perfect tables (including a brutal 26-row one) and perfect formulas.
- Deletes footnote text: on the legal brief it kept every footnote marker but dropped the text, so 10 of 11 citations point at nothing.
- Fake headings: on the financial report it promoted about 13 contents lines into H1s.
- Setup: I ran the top-end VLM, a few points above the lighter pipeline on MinerU's own OmniDocBench numbers (about 91 vs 86); it needs a GPU.
Marker: the balanced default
Consistently good, rarely the winner.
- Strong: formulas and figures, and it never fell apart on any document.
- Scrambles multi-column blocks: it interleaved a two-column attorney signature block into one address.
- Breaks reference lists: a Table of Authorities came out with each case name split from its page number.
-
Detaches row labels: it stripped the labels off a US-GAAP table, leaving
29,929,992with nothing to say it's net sales. - License: commercial-use conditions worth checking before you ship it.
Docling: honest, and allergic to math
Clean text, and it fails out loud instead of faking.
- Strong: clean tables, and it marks anything it can't handle as undecoded rather than inventing it. Zero silent errors in the whole test.
- Drops every formula and image.
- Mangled a table of contents into a duplicated table.
- Good fit for text- and table-heavy RAG, poor for anything with math or figures.
PyMuPDF4LLM: fast, until layout carries meaning
A quick Python library, clean and very fast on simple single-column PDFs.
- Strong: speed and dead-simple integration.
- Reading order breaks at figures: on the paper it collapsed at the Figure 1 boundary and severed whole sections.
- Drops most display formulas.
MarkItDown: no headings, anywhere
Handles many formats with a simple API, but it disqualifies itself for RAG.
- Zero Markdown headings on every document I tested; section titles become plain text, so heading-based chunking loses its outline.
- Tables and formulas shatter.
- Drops images.
- No OCR: scans need an external OCR or LLM you wire in yourself.
The hosted & browser tools
These need no Python setup, which is the whole appeal when you just want a file converted. The fidelity trade-offs are real, though, especially the silent ones.
Mathpix: beautiful output, with a knife in it
The single cleanest result in the test, with a perfect score on the paper. But that clean output hides two silent errors:
- Dropped dividends: on the financial report it kept only the parenthetical interim, so an AI reads 100 where the real number is 220.
-
Swapped a total: on the data tables it replaced
87,416with100.0%. - Both look completely normal. Cloud, paid, with a roughly 10-page free tier.
CloudConvert: valid tables that are secretly unusable
Emits proper Markdown tables, which sounds good, until a dense one.
- Strong: easy, no install, many formats.
- Crams rows into one cell: the Markdown is valid but useless as data.
- Formulas mangled, figures dropped.
pdf2md: the one that quietly cuts your numbers off
The scariest visible failure.
-
Truncates numbers at the thousands separator (
458,614becomes458,). At least the dangling comma is greppable. - No real tables, every formula shatters, images dropped.
- Invents headings: it promoted a copyright notice and formula fragments into 30+ headings.
- One genuine silent swap on the financial report, on top of the visible damage.
pdfmarkdown.app: mine, including where it loses
I'll be straight, since it's mine.
- Strong: top tier across all five documents with zero silent errors. It kept Toyota's minus signs, bracketed counts and dividends, got all five reading-order seams right on the legal brief, and produced the most complete figure crops of anything I tested.
- Where it loses: MinerU and Mathpix edged it on the pure paper; it kept the scan's cover as an image but didn't OCR the cursive title; and on the nastiest multi-level tables (the Attention paper's Table 4) it crammed parser rows into stacked cells, where MinerU reads the layout better.
- It's a browser tool, not a scriptable library, so for automated batch pipelines an open-source option fits better.
How it was scored, and the raw data
Two axes:
- Recovery score: the share of a fixed per-document checklist that came through correctly.
- Silent-error count: plausible-but-wrong values, kept separate and never averaged in.
I graded one criterion at a time across all nine tools, checked it by hand against the source PDFs, and ran an adversarial second pass. The full writeup, with the methodology, the capability-score derivation, and the reproducible test set and raw outputs, lives on the original article:
→ Best PDF to Markdown Tools in 2026: 9 Converters Tested on Real Documents
I'm Jerome, builder of pdfmarkdown.app. I included direct competitors and tried to credit each fairly. If you think I got a call wrong, tell me.





























Top comments (0)