PDF to Markdown Converter

PDF to Markdown is a free tool that converts a text-based PDF into GitHub-flavored Markdown, keeping headings, paragraphs, bold and italic text, lists, links and simple tables. Preview the result, then copy it or download a .md file. It runs in your browser, so your PDF is never uploaded.

Last updated

Drop a text-based PDF and get GitHub-flavored Markdown you can preview, copy, or download as a .md file. Headings, paragraphs, lists, links and simple tables are kept when the PDF exposes them. Your file never leaves your browser.

Drop a PDF here or click to choose one

One text-based PDF. Your file stays on your device and is never uploaded.

Text-based PDFs work best. Headings, paragraphs, bold, italic, lists and links are kept when the file exposes them. Complex multi-column layouts and fancy tables are best-effort. Scanned or image-only PDFs are not supported. For a Microsoft Word file, use Word to Markdown.

How to Convert a PDF to Markdown

Step by step

  1. Drop a text-based PDF onto the box above, or click it and choose a file. One PDF at a time.
  2. Wait while each page is read. The first PDF takes a moment while the PDF reader loads.
  3. Optional: limit the page range, add YAML front matter from the PDF title, or strip repeated headers and footers.
  4. Check the preview, then switch to Markdown to see the raw file.
  5. Click Copy Markdown or Download .md. The download uses the PDF's file name.

Does my PDF leave my browser?

No. The PDF is read in your browser with pdf.js, and the Markdown is built on your device. The file, the extracted text and the download are never uploaded. You can confirm that in your browser's developer tools, under the Network tab, after the page has loaded. See our Privacy Policy.

Can it convert a scanned PDF?

No. This version only reads selectable text. A scan or an image-only PDF has nothing to extract, and the page says so instead of returning a blank file. It does not run OCR. Turn the pages into images with PDF to Long Image, then use Image to Text. A Microsoft Word file belongs on Word to Markdown.

How close is the Markdown to the original formatting?

Headings come from the font-size pattern, paragraphs from line spacing, and bold or italic from the font name when the PDF includes it. Bullets and numbered lines become lists, link annotations become links, and aligned columns become a GitHub table when the rows line up. Multi-column pages and complex tables are best-effort: a newspaper layout may be read down each column, and a decorated table may come out as plain lines. Proofread anything important.

Which browsers does PDF to Markdown work in?

Current versions of Chrome, Edge, Firefox and Safari on a computer or a phone. The PDF reader is loaded the first time you choose a file, so the page itself stays light. Very large PDFs need more memory; if a conversion fails, try a smaller page range.

Can I convert only some pages?

Yes. Type a page range such as 1-3 or 1, 4, 7. Leave the field blank to convert every page. The Markdown is rebuilt from the pages you already loaded, so changing the range does not upload anything. Password-protected PDFs cannot be opened; remove the password first. To black out sensitive text before you share a PDF, use Redact PDF.