PDF to Markdown Online

Best PDF to Markdown Converters

We ran the same five PDFs through ten converters: four open-source Python libraries, five websites and our own browser tool. Here is what each one kept, what it broke, and which to pick for your files.

Disclosure: we make PDF to Markdown Online, one of the tools in this test. We designed the test files ourselves and you can download them below to repeat the test, so you don't have to take our word for it. Where another tool beats ours, we say so.

Results at a glance

ToolRunsUploads fileHeadingsListsLinksTablesTwo columnsScannedFormulas
PDF to Markdown Online (ours)BrowserNo✓✓✓✓✓✗◐
MarkerPython, localNo◐◐✗✓✓✓◐
DoclingPython, localNo◐✓✗✓✓◐✗
PyMuPDF4LLMPython, localNo◐✓✗✓◐◐◐
MarkItDownPython, localNo✗◐✗◐✗✗✗
PDF24WebsiteYes◐✓✓✓✗✗✗
CloudConvertWebsiteYes◐✓✗✓◐◐◐
pdf2md.morethan.ioBrowserNo✓◐✗✗◐✗✗
PDF.aiWebsiteYes✗✗✗✗✗✗✗
iLovePDFWebsiteYes–––––––

✓ good · ◐ partly (some structure lost or errors) · ✗ failed · – not tested. "Formulas" ◐ means the symbols survived as plain text; no tool produced LaTeX.

How we tested

We made five PDFs, each aimed at one thing converters often get wrong:

  1. Text guide (2 pages): three heading levels, bold and italic, a bulleted and a numbered list, two links.
  2. Sales report: two tables, with numbers and a ligature ("fi") in a cell.
  3. Regression notes: three displayed formulas with superscripts, a fraction and a sum.
  4. Scanned report: the sales report as a slightly rotated grayscale image, with no text layer.
  5. Two-column paper (2 pages): six numbered sections in two columns, a code block, and a browser-generated running header and footer.

Python libraries ran with default settings on an Apple M1 laptop with 16 GB of RAM (CPU only): Marker 2.2.1, Docling 2.155.0, PyMuPDF4LLM 2.2 and MarkItDown 0.1.9 with its PDF extra. Websites were used through their normal page, free tier, without an account, on December 2, 2026. For every output we checked the same things: heading levels, list markers, whether links stayed clickable, whether table cells landed in the right columns, section order in the two-column paper, leftover headers and footers, and whether the code stayed a code block.

Five small files can't tell you everything. Long reports, complex merged-cell tables, and non-English text were not part of this round.

The tools, one by one

PDF to Markdown Online (our tool)

Runs in your browser with Mozilla's pdf.js and layout rules; nothing is uploaded. It got the most structure right on text PDFs: correct H1/H2/H3 levels, both list types, bold and italic, both links as Markdown links, clean tables (ligature fixed to "Pacific"), the two-column paper in the right order with the browser header and footer removed, and the only fenced code block in the test. Each file took well under a second.

Where it loses: it can't read scans (it detects them and tells you), and formulas come out as flat text with superscripts as <sup> tags, which is still not LaTeX.

Marker

The OCR winner. On the scanned report Marker returned both tables and the paragraphs with every word and number right, which no other tool managed. Tables and the two-column reading order were also correct, and it removed the running header and footer. But it flattened all headings to ##, merged the bulleted list into a single paragraph, dropped bold, italic and links, and turned the lines of the code block into headings. After a one-off model load of about 7 seconds, each file took 0.2 to 2 seconds.

License: the code is Apache 2.0, but the model weights use a modified OpenRAIL-M license that is free for research, personal use and startups under $5M in funding or revenue. Larger companies need a commercial license from Datalab.

Docling

IBM's open-source converter (MIT license) produced accurate tables, including from the scan, and kept lists and reading order. Every heading became ##, though, so the outline is lost; bold, italic and links were dropped; and on the scan the table was right but the surrounding paragraphs were garbled ("Revee ees e es stie"). Formulas were replaced with <!-- formula-not-decoded -->. It was the slowest tool: 2 to 5 seconds per file once warm, and over 20 seconds for the first file. Our Docling tutorial shows how to speed it up.

PyMuPDF4LLM

Fast and good on text PDFs: correct heading levels (though wrapped in bold, as in ## **1. Communication**), lists, emphasis and tables. Links became plain text, the two-column paper kept its order but also kept the running header and footer, and code was not fenced. It tried OCR on the scan and got the table shape, with errors such as "+12%" read as "412%". Built on PyMuPDF, which is AGPL-3.0 or commercially licensed.

MarkItDown

Microsoft's converter is very fast but treats PDFs as plain text: no headings at all, bullets dropped, and the "Units" and "Change" columns merged into one. On the two-column paper it read sections in the order 1, 3, 2, 4, 6, 5 and kept the header and footer; the scan came back empty. It shines on Word, Excel and HTML files more than on PDFs.

PDF24

The best of the upload websites for single-column documents. It kept links as Markdown links, lists, emphasis and well-formed tables with right-aligned numbers. But numbered section headings ("1. Communication") became numbered list items, formulas became headings, the scan was embedded as an image with no text, and the two-column paper was merged line by line across both columns, which scrambles the text. Free, with ads.

CloudConvert

Output on text PDFs looked almost identical to PyMuPDF4LLM's: right heading levels wrapped in bold, lists, tables, no links, header and footer kept on the two-column paper. It ran OCR on the scan and recovered the table, but with misread numbers ("+7%" became "47%", "+18%" became "418%") and missing spaces ("NorthAmerica").

pdf2md.morethan.io

An open-source converter that also runs in the browser. Headings and emphasis were right, but the bulleted list and both tables came out as code blocks, and the second table lost digits ("4,120" became "4,"). Formulas broke into scattered headings and the scan produced nothing.

PDF.ai

Its page says it uses the Marker model with a pdf.js fallback, but the free tool's output looked like the fallback: no title heading, lost sub-headings and bullets, a numbered list turned into bullets, and table rows turned into headings with the cells run together ("North America1,240,0008,310+12%"). The "2. Related work" heading disappeared from the two-column paper, and the scan returned nothing.

iLovePDF

iLovePDF's PDF to Markdown is marked as an AI feature. Without an account it converted one file; the second file opened an "Upgrade to Premium" sign-up dialog, so we could not complete the test. We don't create accounts for these tests.

Which should you choose?

FAQ

What is the best free PDF to Markdown converter?

For text-based PDFs, a browser-based converter such as PDF to Markdown Online is free, keeps headings, lists and links, and never uploads the file. For scanned PDFs, Marker was the most accurate free option in our test, but it runs in Python and its model weights are only free for research, personal use and smaller companies.

Which PDF to Markdown converter is best for scanned PDFs?

Marker. In our test it was the only tool that read every word and number of the scanned table correctly. Docling recovered the table but garbled the paragraphs; CloudConvert and PyMuPDF4LLM ran OCR but misread numbers (+7% became 47%). Browser-only tools, including ours, cannot OCR scans.

Can any of these convert math formulas to LaTeX?

Not in our test. None of the ten tools produced LaTeX from our formula PDF with default settings. Most kept the symbols as plain text; Docling replaced formulas with a formula-not-decoded comment. Marker and Docling have optional formula modes that use extra models, which we did not enable.

Which converter should I use to feed PDFs to ChatGPT, Claude or a RAG pipeline?

One that keeps heading levels and reading order, because both help the model and your chunker. For a few text PDFs, the online converter is fastest. For thousands of files in a pipeline, use a Python library: see PDF to Markdown in Python.

Last updated