
How to Convert PDF to Markdown (Step by Step)
A practical guide to converting PDF documents into clean Markdown — including scanned PDFs — and getting one Markdown file per chapter.
Markdown is the lingua franca of note-taking apps, static site generators, documentation systems, and LLM pipelines. PDF is not. Converting a PDF to Markdown lets you edit, search, version-control, and republish content that was locked in a fixed-layout format.
This guide walks through the fastest way to do it — and what to watch out for.
Why convert PDF to Markdown at all?
- Editing: PDFs are designed for printing, not editing. Markdown opens in any text editor.
- Note-taking apps: Obsidian, Logseq, Notion, and Joplin all speak Markdown natively.
- Publishing: Hugo, Astro, Next.js, and most static site generators build pages from Markdown.
- AI workflows: LLMs handle Markdown far better than raw PDF text, because headings, lists, and tables survive as explicit structure.
- Version control:
git diffworks on Markdown. It does not work on PDF.
The quick way: an online converter
For most documents, an online converter is the pragmatic choice. With PDF Chapter Markdown the flow is:
- Upload your PDF (up to 50 MiB and 200 pages).
- Pick a mode:
- Balanced — fast, ideal for digitally-born PDFs like reports and ebooks. 1 credit per page.
- Accurate — OCR-friendly, for scanned documents and complex layouts. 2.5 credits per page.
- Download the result — one Markdown file per chapter, with headings, tables, and images preserved. You can also download the whole document as a single file.
Results are kept for 24 hours, so download them in time. Credits are pay-per-use (packs start at $9.90) and stay valid for 12 months — no subscription.
Choosing the right mode
| Your PDF | Recommended mode | Why |
|---|---|---|
| Exported from Word/LaTeX/Google Docs | Balanced | Text layer is already clean; OCR adds nothing |
| Scanned book or paper | Accurate | Needs OCR to recover text at all |
| Heavy tables, formulas, multi-column | Accurate | Layout analysis handles structure better |
| Quick draft for notes | Balanced | Faster and cheaper |
If you are not sure, start with Balanced and re-run with Accurate only if the output looks wrong — failed conversions are refunded automatically, but a successful conversion you don't like still costs credits, so testing with a small PDF first is smart.
What a good conversion looks like
A quality converter should preserve:
- Headings as headings (
#,##,###) — not just bold lines - Tables as Markdown tables — not flattened paragraphs
- Images as image references — extracted, not dropped silently
- Lists and code blocks — with correct indentation and fences
The thing that separates useful output from a wall of text is structure. That is also why chapter-level splitting matters: a 200-page book as one giant document.md is barely more useful than the PDF. One file per chapter maps cleanly to notes, docs pages, or RAG chunks.
Doing it yourself: open-source alternatives
If you prefer local tools, the honest options are:
- Marker and Docling — excellent open-source models for PDF→Markdown; need a Python environment and ideally a GPU.
- Pandoc — great for many formats, but its PDF input is weak (PDF is an output format for Pandoc, not an input).
- PyMuPDF / pdfplumber — low-level text extraction; you rebuild structure yourself.
These are solid if you enjoy wiring up tooling. If you just need a document converted well, a hosted converter saves the setup time.
Common pitfalls
- Encrypted or DRM-protected PDFs cannot be converted — remove the protection first if you own the document.
- Two-column academic papers confuse naive extractors; use an OCR/layout-aware mode.
- Huge files: if your PDF is over 200 pages, split it first (any PDF tool can do this) and convert the parts.
Try it
Upload a PDF on the convert page and you'll have chapter-based Markdown in a couple of minutes. If you're converting documents for an LLM pipeline, also read our guide on PDF to Markdown for LLMs and RAG.
More Posts

How to Split a PDF into Chapter-Based Markdown Files
Turn a long PDF — a book, manual, or report — into one clean Markdown file per chapter, ready for Obsidian, Notion, static sites, or RAG chunking.


PDF to Markdown for LLMs and RAG: A Practical Guide
Why Markdown is the best intermediate format for feeding PDFs into LLMs and RAG pipelines, and how to convert PDFs into chapter-level Markdown chunks.

Newsletter
Join the community
Subscribe to our newsletter for the latest news and updates