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.
How to use the PDF to Markdown converter
- Click Select PDF file or drop a PDF onto the box.
- Optionally keep line breaks inside paragraphs or add a horizontal rule between pages.
- 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
- Open a PDF.
- Convert it.
- Check the Markdown.
- 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.