SwitchPDF

PDF to Markdown

Extract a PDF's text into clean Markdown — copy it or download the .md file.

Convert a PDF to Markdown online free. Upload a PDF and get its text back as clean Markdown you can copy straight into a README, a docs site, a wiki, or an LLM prompt — or download it as a .md file. Works best with text-based PDFs.

Works best with text-based PDFs. Scanned or image-only PDFs have no selectable text — run OCR on them first. Tables and complex layouts may not carry over. Only convert files you own or have permission to use.

How PDF to Markdown works

A PDF stores positioned glyphs, not a document structure, so "PDF to Markdown" is fundamentally a best-effort extraction rather than a lossless conversion — and it is worth being honest about that. This tool reads the selectable text out of the PDF, splits it by page, and rebuilds it as Markdown: short all-caps lines become headings, bullet- and number-prefixed lines become list items, and blank lines become paragraph breaks.

That gives you a clean, editable Markdown starting point in seconds — ideal for pulling the prose out of a whitepaper, spec, or exported document so you can drop it into a README, a static-site generator (Docusaurus, MkDocs, Hugo), a Notion/Obsidian note, or an LLM context window without retyping.

What it can't recover: because the structure isn't in the file, tables, images, bold/italic runs, and multi-column layouts don't survive — you'll get the text, not a pixel-perfect reproduction. And a scanned or photographed PDF has no selectable text at all, so it will return nothing; run OCR on it first to make it searchable, then convert. For text-born PDFs (anything exported from Word, LaTeX, a browser, or a report generator), the output is genuinely useful with light cleanup.

How to use PDF to Markdown

1

Upload your PDF

Drop in a text-based PDF. It is processed in memory and deleted after conversion.

2

Get the Markdown

The text is extracted and formatted as Markdown, with heading and list heuristics applied and pages separated by a rule.

3

Copy or download

Copy the Markdown to your clipboard in one click, or download the .md file.

Frequently Asked Questions

What kind of PDFs work best?
+
Text-based PDFs — anything exported from Word, Google Docs, LaTeX, a browser "print to PDF", or a report generator. These have real selectable text that extracts cleanly.
Why did my scanned PDF return nothing?
+
A scanned or photographed PDF is just images of text — there is no selectable text to extract. Run it through our OCR tool first to add a text layer, then convert to Markdown.
Are tables and images preserved?
+
No. PDFs do not store tables or formatting as structured data, so tables flatten to text and images are dropped. You get the document's text as Markdown, which usually needs light cleanup.
How are headings detected?
+
Heuristically — short, mostly-uppercase lines are promoted to Markdown headings. It is a best guess, not semantic detection, so you may want to adjust a few.
Can I copy the Markdown without downloading?
+
Yes. The result is shown in an editable box with a one-click "Copy Markdown" button, plus a download for the .md file.
Is my PDF kept private?
+
The file is processed in memory and deleted right after conversion; the output .md is removed automatically after 15 minutes. Nothing is logged or shared.
Is PDF to Markdown free?
+
Yes — completely free, no sign-up, no watermark. Fair-use rate limits apply per visitor.

Related tools