Loading…

How to use PDF to Markdown

Upload a PDF with a real text layer. The tool reads the positioned text, infers heading levels from relative font sizes, converts bullet and numbered lists, and rebuilds paragraphs. Copy the Markdown or download it as a .md file.

Frequently asked questions

Why convert a PDF to Markdown?

Language models and RAG pipelines work far better on structured Markdown than on raw PDF text, because headings and lists preserve the document's hierarchy. Markdown also drops straight into static site generators and note apps like Obsidian.

How are headings detected?

Each line's font size is compared against the median font size of the whole document. Lines that are noticeably larger become H1, H2 or H3. This is a heuristic, so unusual layouts may need a quick manual pass.

Does it work on scanned PDFs?

No. A scan contains pictures of words, not text, so there is nothing to extract. Run the scan through OCR first.

Are tables preserved?

Tables are emitted as plain text lines. For real tabular output, use the PDF Table Extractor to get CSV.

More PDF Tools

PDF to JSON
Extract PDF text as structured JSON with page, position and font data
PDF Table Extractor
Detect tables in a PDF and export them as CSV spreadsheets
PDF Chunker for RAG
Split PDF text into overlapping token-sized chunks for embeddings and RAG
PDF Blank Page Inserter
Insert one or more blank pages into a PDF at any position, sized to match or A4/Letter
PDF Page Reverser
Reverse the order of all pages in a PDF so the last page becomes the first
PDF Page Duplicator
Duplicate a chosen PDF page one or more times, inserting the copies right after it
PDF Rotate Page Range
Rotate only specific pages of a PDF by page number or range, leaving the rest untouched
PDF 2-Up (2 Pages Per Sheet)
Place two PDF pages side by side on each sheet to save paper when printing
PDF 4-Up (4 Pages Per Sheet)
Arrange four PDF pages in a 2x2 grid on each sheet for compact handouts
PDF Page Resizer
Resize every PDF page to a standard A4 or Letter size, scaling content to fit
PDF Metadata Remover
Strip title, author, subject, keywords and producer metadata from a PDF for privacy
PDF Viewer
View and preview PDF files directly in your browser with zoom and page navigation controls

← View all PDF ToolsBrowse all 1,100+ tools →