Convert PDF to Markdown

Turn a PDF into Markdown to paste into ChatGPT, Claude, a wiki or your notes. Headings, paragraphs and bullet lists are recovered from the size and position of the text, running headers and page numbers are dropped, and the PDF stays on your device.

or drop it here

Files are processed on your device and never sent to an outside server.

How to use

  1. Choose the output: Markdown, with headings and lists recovered, or plain text as it is. You can mark where each page starts, and type page numbers, such as 1-3, 5, to convert only some pages.
  2. Click “Choose file” or drop your PDF onto the box. The text is read page by page and converted right away.
  3. Check the result in the box, then copy it or save it as a .md file (.txt for plain text). Change the output or the page marks and the result is rebuilt at once, without reading the PDF again.

Frequently asked questions

How are headings and lists recognised?

A PDF stores only characters and their positions, so the structure is inferred. Lines set larger than the body text become headings, ranked by size (the largest is #), and a short bold line on its own becomes the deepest heading. Lines close together form a paragraph, and lines starting with a bullet or a number become a list. Text repeated at the top or bottom of most pages (headers, footers, page numbers) is left out. Where the layout gives no clue, the text stays as a paragraph, so nothing is lost. Tables come out as lines of text for now. Check the result and fix the markup where a guess was wrong.

Does it work with scanned PDFs?

A scanned PDF holds pictures of its pages, not text, so there is nothing to convert; this tool then points you to OCR PDF, which reads the text from the page images. If only some pages have no text, the rest is converted and a note names the pages that were skipped. A PDF whose text you can select in a PDF app converts here.

Why is the text in the wrong order, or split oddly?

The text comes out in the order the PDF stores it, which is usually the reading order. A page set in columns keeps its columns when the producing application wrote them one after the other, as word processors do; a PDF written row by row comes out with the columns interleaved. Vertical Japanese text is kept as plain paragraphs, with no headings or lists guessed. Paragraphs are joined by their line spacing and by where each line ends, so a paragraph that happens to end at the right margin may run into the next one.

What about pictures, passwords and signatures?

Pictures are not included: a PDF places them freely, so where they belong in the text cannot be told. Extract Images from PDF saves them separately. A PDF that needs a password to open, or that restricts copying, is not converted; remove the password with Unlock PDF first. A signed PDF is only read, so its signature is left as it is.

Are my files uploaded to an outside server?

No. Everything runs in your browser, so your files never leave your device. The page only downloads the tool's own code when you add the first file.

Related tools