How to convert a PDF to Markdown for ChatGPT
For a short text PDF you don't need to convert anything: attach it to ChatGPT. Convert to Markdown when the PDF is long, full of tables, or you want to reuse it in a custom GPT or project, because you control exactly what text goes in. Paste the PDF link into our page reader for a free preview (5 a day), or use the API for the full text at $0.02 per file.
Try it free Read Any Web Page, PDF or Doc — clean Markdown for AI agents · $0.02 / call
When converting is worth it
- Long reports where you only want a few sections in the chat. Cut the Markdown down and paste only those.
- Tables of numbers. In Markdown each row stays a row, so ChatGPT can compare columns instead of guessing.
- Knowledge files for a custom GPT or a project. A .md file is smaller than the PDF and has nothing ChatGPT has to work out first.
- Comparing several documents in one conversation, each with its own heading.
Convert one without writing code
- Get a link that opens the PDF file itself. A share link that opens a viewer page is not the file.
- Open the page reader listing at /l/XyehnOmhOzAF and paste the link into the free try.
- Read the result. The free preview shows the first 4,000 characters; the API returns the whole document.
- Copy the Markdown into ChatGPT, or save it as a .md file and upload it to your GPT or project.
A prompt to paste with it
Below is a document in Markdown. Headings start with #, tables use |.
Answer only from this document. If the answer is not in it, say so.
Quote the section heading you used for each answer.
---
[paste the Markdown here]
If you have many PDFs
The API takes the same link and returns the full Markdown in one call for $0.02, charged only when the file is read. There is no account or API key: it is paid per call in USDC on Base with x402, so you need a crypto wallet and an x402 client. If that is more setup than you want, a local tool like pymupdf4llm is free and keeps the files on your computer.
Your options side by side
| Option | Best for | Limit |
|---|---|---|
| Attach the PDF to ChatGPT | Short PDFs with plain text | You don't see what text it extracted |
| Page reader free try | Checking a few files by hand | 5 a day, preview shows 4,000 characters |
| Page reader API | Full text, many files, automation | $0.02 per file, needs a USDC wallet |
| Local tool (pymupdf4llm, marker) | Private or confidential files | Needs Python on your computer |
The product
Questions
Does my PDF need to be public?
Yes, the reader fetches it from the link you give. For confidential files use a local tool instead of any online converter.
What about a scanned PDF?
A scan is pictures of pages, so there is no text to convert. ChatGPT can sometimes read the images itself; otherwise use an OCR tool.
Is Markdown better than pasting plain text?
For anything with headings or tables, yes. Plain text loses which line is a heading and which numbers belong to which column.
Related
Updated 2026-12-01
