How to Convert a PDF to Markdown
Drop a PDF into the browser converter. It reads the text layer, infers headings from font size, rebuilds lists, and returns Markdown you can copy or download as a .md file.
Direct answer
Open the converter, drop the PDF on the upload area, and the Markdown appears in the output pane. The tool reads the PDF text layer with Mozilla's PDF.js inside your browser, groups the positioned text into lines, promotes the largest font sizes to headings, and rebuilds bullet and numbered lists. Copy the result or download it as a .md file. The PDF is never uploaded.
Open PDF to Markdown converterWhen to use this
- You have a report, brief, or whitepaper as a PDF and you want editable Markdown.
- You need the text of a PDF in a repo, a wiki, or a notes app.
- The document is confidential and you cannot send it to an online converter that uploads files.
Steps
- Open the PDF to Markdown converter.
- Drag the PDF onto the drop area, or click it and pick the file.
- Watch the per-page progress indicator; large PDFs take a few seconds per page.
- Adjust the toggles: heading detection, hyphen merging, and header/footer stripping.
- Type a page range such as 1-5 and drop the file again if you only need part of the document.
- Edit the output pane if needed, then press Copy or Download .md.
Example
[PDF page 1] Quarterly Review (18 pt) Revenue (13 pt) Revenue grew in every region during the quar- (10 pt) ter, led by the enterprise tier. (10 pt) • North America: up 12% • EMEA: up 9%
# Quarterly Review ## Revenue Revenue grew in every region during the quarter, led by the enterprise tier. - North America: up 12% - EMEA: up 9%
Common mistakes
- Do not expect output from a scanned PDF. A scan has no text layer and the converter does not run OCR.
- Do not assume tables survive. PDF tables are positioned text with no cell structure, so they come back as plain lines.
- Do not trust heading levels blindly on a document that uses one font size throughout; check the output before publishing it.
- Change the page range before you drop the file, because the range is applied while the PDF is read.
FAQ
- Is the PDF uploaded anywhere?
- No. The file is read in your browser with PDF.js and converted locally. markdownme.com is a static site with no upload endpoint, so there is nothing to send a PDF to.
- Does it work on large PDFs?
- Yes, though a long document takes time. Pages are processed one at a time and the progress indicator shows which page is being read. Use the page range box to convert only the pages you need.
- Can I edit the Markdown before copying it?
- Yes. The output pane is an editable text area. Fix a heading level or a stray line, then press Copy or Download .md.
Related PDF to Markdown guides
Convert a PDF to Markdown for ChatGPT, Claude, or RAG Context
Markdown is a cheaper, cleaner context format than a raw PDF dump. Convert first, strip the running headers, then paste the text into the model or your retrieval pipeline.
Why a Scanned PDF Converts to Nothing (OCR Explained)
A scanned PDF stores pictures of pages, not characters. Text extraction returns nothing because there is nothing to extract. Run OCR first, then convert.
Keep Headings and Structure When Converting a PDF
The converter infers headings from relative font size: the largest size becomes #, the next becomes ##. Here is when that works, and what to do when a document defeats it.
Extracting Tables From a PDF to Markdown: What Actually Works
A PDF table is positioned text with no cell structure. This converter returns the table's text as lines, not as a Markdown pipe table. Here is the honest workaround.
Convert a PDF to Markdown for Obsidian and Other Notes Apps
Download the converted .md file straight into your vault. Headings become real outline levels, and the source PDF never leaves your machine.