PDF to Markdown
Turn a PDF into Markdown with its headings, paragraphs, lists and tables, ready for AI tools, wikis and notes.
Runs in your browser. Nothing is uploaded.
Updated
How to use PDF to Markdown
- Choose or drop a PDF (Word, Excel and PowerPoint files work too).
- Check the Markdown; keep or leave out repeated headers and footers.
- Copy it, or download it as a .md file.
PDF to Markdown at a glance
Typical use: Convert a 20-page report to Markdown and paste it into an AI chat with the structure intact.
Runs in your browser; nothing is uploaded. Pictures can’t be kept in Markdown and are left out.
When to use PDF to Markdown
AI chat tools, note apps like Obsidian and Notion, and README files all read Markdown: plain text where # marks a heading, - a list item and | a table. Pasting a PDF’s text loses that structure; converting it to Markdown keeps it, so an AI tool knows what is a heading, a list or a table.
Because the PDF is read in your browser, contracts, statements and reports stay on your device, which matters before you paste them anywhere.
How the structure is found
- A PDF stores text at positions on a page, not headings or paragraphs. Text that is clearly larger than the body becomes a heading:
#for the largest size,##for the next, and so on. - Lines close together are joined into one paragraph; a word split with a hyphen at a line end is joined again. Lines starting with •, – or 1. become list items, indented by how far in they start.
- Rows of text in columns become a Markdown table. A header, footer or page number that repeats on most pages is left out (you can keep it).
PDF to Markdown examples
Ask an AI about a report. Convert the PDF, press Copy Markdown and paste it into the chat. The page shows about how many tokens it is, so you know whether it fits.
Move a manual into a wiki or Obsidian. Download the .md file; headings, lists and tables arrive as real Markdown instead of one long block of text.
Prefer the terminal?
The same in a terminal with Microsoft’s MarkItDown (Python):
pip install "markitdown[pdf]" && markitdown report.pdf > report.mdMarkItDown keeps the text but mostly flattens headings and lists from PDFs. For scanned PDFs, both need OCR first (OCR PDF on this site, or ocrmypdf in a terminal).
Frequently asked questions
Is my PDF uploaded?
No. pdf.js reads it in your browser and the Markdown is made on your device. Nothing is sent to a server.
Does it work with scanned PDFs?
Only if they have a text layer. A scan is a picture of a page; the page tells you which pages have no text. Run them through OCR PDF first, then convert the result here.
How good are tables and columns?
Simple tables with clear gaps between columns come out as Markdown tables. Tables with merged cells, and pages in two or more columns of text, may come out in the wrong order; check those parts.
Why use Markdown for ChatGPT, Claude or Gemini?
AI tools read Markdown well and it is compact: headings and lists tell the model how the document is organised, and there are no layout codes taking up tokens.
Can I convert Word, Excel or PowerPoint files too?
Yes, this page takes .docx, .xlsx and .pptx files as well. Word keeps bold, italic and links exactly, because a Word file stores them; a PDF doesn’t.