Free • Online • Private

PDF to Markdown Converter Online

Convert PDF to an MD file for free, with headings, lists, bold text and simple tables kept. It runs in your browser, so nothing is uploaded.

or from Google Docs, Word or a web page

PDF · DOCX · XLSX · HTML · JSON · XML · CSV · TXT · RTF · MD

Benefits

Why Use This PDF to MD Converter?

100% private

your PDF never leaves your browser: no server uploads, no data collection

Free, no signup

no account and no fees, and you can convert as many PDFs as you like

Structure kept

headings from font size, bullet and numbered lists, bold text and simple tables, with wrapped lines rejoined and page headers and footers dropped

AI and LLM ready

clean Markdown with real headings is what ChatGPT, Claude, and RAG pipelines chunk and retrieve best

Many PDFs at once

drop several files and each one converts on its own, with its own download

Up to 50 MB per file

the PDF engine runs in your browser, so even long reports convert without an upload

Simple Process

How to Convert a PDF to Markdown Online

1

Drop your PDF

Drag one or more PDF files onto the converter at the top of this page, or click it to pick files. Each file can be up to 50 MB.

2

Let it convert in your browser

PDF.js reads the text of every page in your browser tab, and the converter rebuilds headings, lists, bold text and simple tables. Nothing is uploaded.

3

Download the .md file

Download each result as a Markdown (.md) file, or all of them at once as a ZIP. Open it in any text editor, Obsidian, VS Code or the Markdown viewer.

What comes through, and what doesn't

A PDF stores positioned text, not headings, lists and tables, so the converter rebuilds the structure from font sizes, list markers and column positions. When a structure isn't clearly there, the text comes through as a plain paragraph rather than a wrong heading or a garbled table. This is what happens to each part of a PDF, checked against the converter and test files.

In the PDF Converted? Markdown you get
Body text Yes Paragraphs, with wrapped lines rejoined and words split by a hyphen at a line break joined back
Headings set larger than the body text Yes #, ## and ### by size, three levels at most, the largest as #
Bullet lists (•, ◦, ▪, – markers) Yes - list items
Numbered lists (1. or 1)) Yes 1. list items
Bold text in a bold font Yes **bold**
Simple tables: three or more rows whose columns line up Yes A pipe table with the first row as the header, pipes inside cells escaped
Running headers, footers and page numbers Yes Dropped
Accented letters, Cyrillic, Greek, Chinese, Japanese Yes The same characters, as long as the PDF maps its fonts to Unicode (if copying text from the PDF works, conversion will too)
Two-column pages Partial Usually read one column after the other; text boxes and sidebars can land out of order
Links Partial The link text is kept, the URL behind it is not. A URL printed on the page comes through as text.
Headings in bold at body size Partial A **bold** line, not a # heading
Complex tables (merged cells, wrapped cell text, multi-line headers) Partial The text in reading order, not a table
Italic text No Plain text
Code listings No Plain text, not a code block
Images, charts and diagrams No Left out; the output is text only
Scanned pages (pictures of text) No Not read. There is no OCR, so a scan-only PDF shows an error instead of a Markdown file.
PDFs that need a password to open No Not converted. PDFs with only copy or print restrictions convert normally.

Use Cases

Common PDF to Markdown Use Cases

Prepare PDFs for RAG Systems

Convert PDFs to Markdown with real headings for vector databases and retrieval-augmented generation. Chunk by heading for better embeddings and more accurate AI responses.

Feed PDFs to ChatGPT & Claude

Turn a PDF into a small .md file you can paste or attach. Markdown uses fewer tokens than the original PDF and carries none of its layout noise.

Move a PDF Library into Obsidian

Turn research papers, ebooks, and documentation into searchable notes with their section headings already in place. Add your own links once the text is in Markdown.

Archive Reports as Markdown

Convert business reports, whitepapers, and documentation into future-proof, version-controllable text files. Edit in Git, search with grep, and never worry about proprietary formats.

Pull Quotes and Chapters from Ebooks

Extract the text of a chapter for annotation in your favorite Markdown editor. Works with Typora, Notion, Roam Research, and more.

Build AI Training Datasets

Extract clean Markdown from PDF research papers, books, and documents for LLM fine-tuning or training, without formatting noise.

Common problems and fixes

"No content could be extracted from this file"

The PDF has no text layer, which almost always means it is a scan: each page is a picture of text. Try selecting a sentence in your PDF viewer; if you can't, the converter can't read it either. Run the file through OCR first (Adobe Acrobat's Scan & OCR, the free ocrmypdf tool built on Tesseract, or Docling, which has OCR built in), then convert the new PDF.

The conversion fails with a password error

The PDF needs a password to open. Open it in your PDF viewer with the password and save or print a copy without one, if you are allowed to, then convert the copy.

Headings are missing or at the wrong level

Headings are found by font size: text clearly larger than the body becomes #, ## or ###. A heading set in bold at the same size as the body text comes out as a bold line instead, and a document with many heading sizes is squeezed into three levels. Fix the few lines by hand, or, if you have the original Word file, convert it with the Word to Markdown converter, which reads the real heading styles.

A table came out as text

Only simple tables, where three or more rows share columns that line up, become pipe tables. Merged cells, text that wraps inside a cell and multi-line headers break that pattern, so the cells come through as text in reading order. Convert the original DOCX, Excel or CSV file if you have it, rebuild the table in the Markdown table generator, or use a layout-aware tool such as Docling for PDFs full of complex tables.

Words are in the wrong order

Text boxes, sidebars, captions and pages with several columns can store their text in a different order from the one you read. Check those passages after converting. If the PDF came from a Word or HTML file, converting that original keeps the order exactly.

Strange characters instead of text

Some PDFs use fonts with no map back to real characters, so their text copies out as symbols. Copy a line from the PDF in your viewer: if it pastes as the same symbols, the text layer is unusable and OCR is the only way to get the words.

"File too large"

Each file can be up to 50 MB. Split a larger PDF into parts in your PDF viewer or with a free PDF splitter, then drop the parts together.

Other ways to convert PDF to Markdown

  • pdf2md.morethan.io. Also runs in the browser and also guesses headings from font size. It keeps italic and detects code blocks, which this converter does not, and it does not build tables. See Craft Markdown vs pdf2md for a side-by-side.
  • pdftotext. The command-line extractor from Poppler gives you plain text in reading order, with no headings or lists. It is quick for scripting hundreds of files.
  • MarkItDown. Microsoft's Python library extracts a PDF's text as plain paragraphs. The MarkItDown Online page compares it with this tool.
  • Docling. IBM's open-source Python parser runs layout models on each page, so it recovers complex tables and multi-column pages and includes OCR for scans. It is heavier to install and run.
  • Pandoc. It writes excellent Markdown but cannot read PDF at all, so it is the right tool only when you have the original Word, HTML or LaTeX file. See Craft Markdown vs Pandoc.

The guide to converting PDF to Markdown walks through each method, and the best PDF to Markdown converters compares them. This page suits text-based PDFs when you want the Markdown in seconds, without installing anything, and the file shouldn't leave your computer.

FAQ

PDF to Markdown FAQ

Ready to convert your PDF?

Drop a text-based PDF and get a .md file with its headings, lists and simple tables. Free, private, no signup.

Convert a PDF Now