Convert PDF to Markdown for LLMs
John Wilkinson
Convert a PDF into clean Markdown that an LLM can read: headings, lists, paragraphs re-flowed, two-column pages in reading order and running headers and footers removed. Paste a PDF URL, optionally pick a page range, and download Markdown, text or JSON.
Input
Output fields
Sign up on Apify or log in
The PDF to Markdown Converter: OCR, Tables, RAG Actor is ready to run with the inputs already set for "Convert PDF to Markdown for LLMs". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Convert PDF to Markdown for LLMs" task
The PDF to Markdown Converter: OCR, Tables, RAG Actor will start running based on the input automatically. You can also change all the input fields, like PDF URLs, outputs, and more, to match your specific use case.
Receive the "Convert PDF to Markdown for LLMs" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as source, status, title, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Convert PDF to Markdown for LLMs" task via API.

The PDF to Markdown task outputs one row per PDF with the Markdown text, title, page count, language, word count and a status, ready to paste into an LLM prompt.
The PDF to Markdown task converts tables to Markdown tables, reads two-column pages in reading order and removes repeated headers, footers and page numbers.
The PDF to Markdown task costs $0.0011 per document plus $0.00012 per page and a $0.004 run start fee. The 3-page example here costs under a cent.
Yes. The PDF to Markdown task runs from the Apify API, schedules and webhooks, and from n8n, Make or Zapier, and returns JSON, CSV or Excel.