How to convert a PDF to Markdown for free: online converters for quick files, and MarkItDown, Docling, Marker or MinerU locally. Why Pandoc won't work.
By HoverNotes Team•6 min read
To convert a PDF to Markdown for free, use an online converter for a quick, non-sensitive file, or a local tool when the file is private or complex. For simple PDFs, pdf2md works in your browser and MarkItDown works from the command line. For papers with tables, equations or two columns, use Docling on a normal laptop, or Marker or MinerU if you have a GPU. Pandoc can't read PDFs, and scanned PDFs need OCR.
All four local tools are Python packages that need Python 3.10 or later. Commands below are from each project's README as of August 2026; the projects release often, so check the README if a flag has changed.
Many guides, including an older version of this one, tell you to run pandoc file.pdf -o file.md. That fails. Pandoc can write PDFs but cannot read them, so it rejects PDF input. Pandoc is still the right tool once your text is in another format: Word to Markdown (pandoc file.docx -o file.md) works well.
pdf2md is a free, open-source (MIT) converter built on Mozilla's pdf.js that runs in the browser: drag a PDF in, review the result, and download the Markdown. It handles headings, paragraphs and lists in born-digital PDFs (ones made from a document, not scanned). It struggles with tables, two-column layouts and equations, and it can't read scans.
iLovePDF and CloudConvert both have free PDF-to-Markdown converters. They are the fastest route when you can't install anything, and they keep headings and lists reasonably well. The catch: you upload the file to their servers. Don't use them for contracts, medical records, unpublished research or anything else private.
MarkItDown is Microsoft's lightweight converter. It has a handful of dependencies, downloads no AI models and runs anywhere Python does. It also converts Word, PowerPoint and Excel files.
Its own README says the output is meant for text analysis rather than high-fidelity conversion. Use it for simple, text-based PDFs. It does not rebuild tables or two-column reading order, and it does not OCR scans on its own.
Docling, from IBM, understands page layout, reading order, tables, code and formulas, and runs on a CPU. You can pick the OCR engine it uses for scanned pages, including Apple's built-in OCR on a Mac. It is MIT licensed.
Marker reads the PDF's text layer and calls a vision model only where the text is bad, which makes it accurate on academic papers with tables and equations. It is fastest with an NVIDIA GPU; on a CPU or Apple Silicon it switches to a faster, less thorough mode.
pip install marker-pdf
marker_single file.pdf
The code is Apache 2.0, but the model weights are free only for research, personal use and companies under $5M in funding or revenue. Setting it up is the heaviest of the four.
MinerU handles PDFs, images and Office files, with OCR in 109 languages. It has a CPU-friendly "pipeline" backend and a more accurate vision-model backend that needs a GPU.
A scanned PDF is a stack of images with no text layer, so a plain converter returns nothing, often without an error. Check that the output isn't empty. For scans, use Docling or MinerU (both run OCR), or Marker with OCR turned on. Handwriting is much harder: expect to correct the result by hand.
Tables come out as one long line: the converter flattened the table. Try Docling, Marker or MinerU, which rebuild table structure. For one or two tables, it is often faster to retype them as a Markdown table.
Equations turn into gibberish: math is drawn with symbol fonts. Marker, MinerU and Docling (with --enrich-formula) output LaTeX ($...$), which Obsidian renders.
Two columns get interleaved: use a layout-aware tool (Docling, Marker, MinerU), not MarkItDown or pdf2md.
Save the .md file into your vault, and put any extracted images in your attachments folder so the links resolve. Then make the note useful: add a short summary at the top in your own words, link it to the notes it relates to, and delete the parts you'll never read. A 40-page PDF dump is still hard to search; a 2-page note with links is not.
If you also learn from videos, HoverNotes saves video notes and timestamped screenshots as Markdown into the same vault, so both end up in one place.
For one simple PDF, pdf2md in the browser. For private files, MarkItDown for simple PDFs or Docling for ones with tables. For research papers with math on a machine with a GPU, Marker.
No. Pandoc can't read PDF files, only write them. Convert the PDF with one of the tools above, or, if you have the original Word file, run pandoc file.docx -o file.md.
Use a tool with OCR: Docling, MinerU, or Marker with OCR on. Check the output isn't empty, and proofread it; OCR makes mistakes, especially on handwriting.
For public documents, yes. For anything private, no: the file is uploaded to someone else's server. Use pdf2md, which runs in your browser, or a local tool instead.
Build a powerful workflow for your Obsidian YouTube notes. Learn how to capture, organize, and link video knowledge to actually remember what you watch.
Discover the best obsidian plugins for learning in 2026. A complete stack including video capture, spaced repetition, dataview, and excalidraw for students.
Compare Obsidian YouTube plugins: Media Extended, YTranscript, Timestamp Notes and Readwise, plus HoverNotes for notes and screenshots in your browser.