PDF to Markdown converter API

Convert PDFs, Word documents (DOCX), PowerPoint, Excel, CSV and HTML files into clean Markdown that keeps headings, lists and tables, plus per-page chunks ready for RAG and vector databases.

Scanned PDFs and images go through OCR automatically. You pay per page, and failed files are free.

Try PDF to Markdown Converter on Apify

What you get

Pricing

EventPrice (USD)
Actor Start$0.00005 ($0.05 per 1,000)
Page extracted$0.003 ($3 per 1,000)
OCR page$0.008 ($8 per 1,000)

Live pay-per-event prices from the Apify API as of 2026-10-19. Platform usage is included. Check the Store page for the current price.

Example output

One real record from a recent run, shortened.

{
  "url": "https://raw.githubusercontent.com/microsoft/markitdown/main/packages/markitdown/tests/test_files/test.docx",
  "status": "success",
  "fileName": "test.docx",
  "format": "docx",
  "contentType": "application/octet-stream",
  "fileSizeBytes": 135824,
  "sha256": "ee1974633f3b1e8bb54201abce779a755cb1cd5259641a08cf7b1b9b36dec42b",
  "title": "AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation",
  "author": "Adam Fourney",
  "createdAt": "2024-03-15T05:45:00Z",
  "modifiedAt": "2025-03-20T15:40:00Z",
  "pageUnit": "section",
  "pageCount": 2,
  "pagesExtracted": 2,
  "ocrPages": 0,
  "tableCount": 1,
  "wordCount": 681,
  "charCount": 4615,
  "truncated": false,
  "warnings": [],
  "markdown": "# AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation\n\nQingyun Wu , Gagan Bansal , Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, …",
  "pages": [
    {
      "pageNumber": 1,
      "markdown": "# AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation\n\nQingyun Wu , Gagan Bansal , Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, …",
      "wordCount": 265,
      "isOcr": false,
      "tableCount": 0
    },
    {
      "pageNumber": 2,
      "markdown": "In light of the intuition and early evidence of promise, it is intriguing to ask the following question: how can we facilitate the development of LLM applicatio…",
      "wordCount": 416,
      "isOcr": false,
      "tableCount": 1
    }
  ],
  "chargedPages": 2,
  "chargedOcrPages": 0,
  "extractedAt": "2026-10-19T11:23:08Z"
}

How to run it

  1. Open PDF to Markdown & Text Extractor for LLMs: Word, Excel, OCR on the Apify Store and sign in (the free plan works).
  2. Fill in the input form, or call it through the Apify API, n8n, Make, Zapier or the Apify MCP server.
  3. Download results as JSON, CSV or Excel, or schedule the run.

FAQ

Does it handle scanned PDFs?

Yes. Pages without a text layer are OCR'd and priced as OCR pages.

Can I convert Word to Markdown?

Yes. DOCX files keep their headings, lists and tables.

Is there a file size limit?

Large documents work. The output is chunked per page so it fits LLM context windows.

Ready to try it? Run PDF to Markdown Converter on Apify. You pay only for results.
Open on the Apify Store

Related