PDF to Markdown Converter

This PDF to Markdown converter turns a PDF into Markdown in your browser. It reads the fonts and positions of the text to find headings, bold and italic words, bulleted and numbered lists, tables, code and links, and it removes page headers, footers and page numbers that repeat on every page.

  • Headers and footers removed
  • File stays on your device
PDF

Options
Page headers, footers and numbers

How to convert a PDF to Markdown

Choose a file, check the result, copy it.

  1. Choose your PDF

    Click the box and pick a PDF, or drop it on the box. Large PDFs take a few seconds; each page is shown as it’s read.

  2. Check the Markdown

    It appears when the last page is read. Preview shows it rendered. Keep the page headers and footers if you need them, with the option below.

  3. Copy or download

    Click Copy Markdown or Download .md. The file takes the name of the document’s first heading.

Example

The sample is a 2-page project update saved from Word. The converter reads both pages, removes the 4 lines repeated at the top and bottom of each page (the company name and the page numbers), and finds 5 headings, a bulleted list with a nested item, a numbered list of 3, a 3-column table, a code block and a link.

How the converter reads a PDF

A PDF stores where each piece of text is drawn, not what it is. These are the clues it uses.

In the PDFIn the Markdown
Text larger than the body textHeadings. The largest size is #, the next ##, and so on.
A short bold line on its ownA heading below the others.
Words in a bold or italic font**bold** and *italic*
Lines starting with •, -, ▪ or a numberLists. Indents give the nesting; ☐ and ☑ become checklists.
Text in columns that line up across linesA Markdown table
Lines in a monospaced fontA code block, with the indents kept
A link on the page[text](address)
The same line at the top or bottom of most pagesRemoved: headers, footers and page numbers
A word split with a hyphen at a line endJoined back into one word

PDFs that don’t convert well

  • Scanned pages are pictures of text, with no text to read. The converter says so. Run them through OCR (text recognition) in your PDF app or scanner software first, then convert the result.
  • Two-column layouts come out in the order the PDF stores the text, which is usually column by column, but not always.
  • Tables without clear columns, or with cells that wrap onto several lines, may come out as text. Tables with short cells in clear columns convert best.
  • Password-protected PDFs can’t be opened. Remove the password in your PDF app first.
  • Pictures and charts aren’t copied into the Markdown.

If you have the original Word file, the DOCX to Markdown converter gives more exact results, because a .docx stores headings and lists as such.

PDF to Markdown Converter FAQ

How do I convert a PDF to Markdown?

Choose the PDF in the box above or drop it there. The Markdown appears when every page has been read, and you can copy it or download a .md file.

Is my PDF uploaded?

No. The PDF is read by your browser with PDF.js, on this page, and never sent to a server.

Why are some headings or tables missing?

A PDF doesn’t record what is a heading or a table, only where text is drawn and in which font. The converter guesses from sizes, bold fonts and columns, so unusual layouts can be misread.

Can it convert scanned PDFs?

No. A scanned page is a picture with no text in it. Run OCR on it first, then convert the text.

Does it keep images?

No. Pictures in the PDF aren’t extracted. The text around them is converted.

Are page numbers removed?

Yes, along with other lines repeated at the top or bottom of most pages. Choose Keep under Page headers, footers and numbers to leave them in.