PDF to Markdown Converter: Free and Private

Use this pdf to markdown converter to turn PDF files into clean Markdown. Headings, lists, links and tables are kept where possible, so you can paste the result into notes apps, docs sites or AI tools. It runs in your browser.

PDF to Markdown

Turn PDF text into Markdown with headings, lists and links.

or drop a PDF here
Headings are guessed from font size, so results depend on how the PDF was made. Bold and italic, tables, images and multi-column layouts are not converted, and scanned PDFs have no text to read.
Your PDF is processed inside your browser and is never uploaded. Works on desktop and mobile.

How to use the PDF to Markdown converter

  1. Click Select PDF file or drop a PDF onto the box.
  2. Optionally keep line breaks inside paragraphs or add a horizontal rule between pages.
  3. Press Convert to Markdown, check the preview, then copy the Markdown or download the .md file.

How it works

pdf.js reads every piece of text with its position and font size. The most common size is treated as body text, and lines in larger sizes become headings: the largest size is #, the next ##, and so on. Lines that start with a bullet or a number become list items, lines close together are joined into paragraphs, and words split by a hyphen at a line end are rejoined. Web links in the PDF are matched to the text they cover and written as [text](url).

Example

A 5-page guide with a 24 pt title, 16 pt section headings, body text and a bulleted checklist becomes a .md file starting with # for the title, ## for each section, normal paragraphs, and - items for the checklist.

Frequently asked questions

Why are some headings missing or wrong?

Headings are detected only by font size. If a PDF uses bold text at the body size for headings, they stay as normal text. A quick edit of the .md file fixes it.

Are tables converted?

No. Table cells come out as lines of text. For tables, a PDF to Excel tool works better.

Does it keep links?

Yes, when the PDF contains real link annotations. Plain URLs written as text are kept as text.

Is my PDF uploaded?

No. The conversion runs in your browser.

See also: PDF to Word, OCR PDF.

Convert PDF to Markdown

How to use it

  1. Open a PDF.
  2. Convert it.
  3. Check the Markdown.
  4. Copy or download.

More questions

Does it work on scanned PDFs?

Run OCR PDF first so there is text to convert.

Are tables kept?

Simple tables are kept as Markdown tables, but complex layouts may need cleanup.

Is my file uploaded?

No. It runs in your browser, so your file stays on your device.

Related tools: Markdown to HTML Converter, OCR PDF, PDF to Word Converter.