# PDF to Markdown converter: Word and PPTX too

Give it links to PDF, Word or PowerPoint files and get each one back as clean Markdown and plain text, with headings, tables, page numbers and ready-made chunks.

**From USD 3.00 per 1,000 converted documents.** On the Apify Store since 13 November 2026. Checked 14 November 2026. Apify Store page: https://apify.com/tan-solutions/document-to-markdown

## What it does

PDF, Word and PowerPoint to Markdown turns documents into text that large language models (LLMs) and search indexes can use. Headings, lists and tables stay; page or slide numbers are kept, so you can cite where a passage came from.

You can give it links to files on the web, or files you uploaded to an Apify key-value store. Each document is converted on its own, with its own memory and time limit, so one broken file never stops the run. You pay only for documents that convert.

- **PDF.** Text in reading order (two-column pages are read column by column), headings from the font sizes, page numbers, and the document's title, subject, keywords and dates.
- **Word (DOCX).** Headings, lists and tables. Comments, tracked-change authors and hidden personal metadata are left out.
- **PowerPoint (PPTX).** One section per slide with the slide title, text, tables and speaker notes.
- **HTML, Markdown and plain text.** These files come back as Markdown too.
- **Optional extras.** One entry per page or slide, plain text, and fixed-size chunks with overlap for RAG.

## Who it is for

- Teams building AI assistants, chatbots and RAG search over reports, manuals, contracts and slide decks.
- Developers who need document text in a pipeline without running their own PDF and Office parsers.
- No-code users of Make, Zapier or n8n who want "file in, Markdown out" through Apify's integrations.

## What it costs

**From USD 3.00 per 1,000 converted documents.** You pay per result. The price depends on your Apify plan:

| Apify plan tier | Price per 1,000 converted documents |
|---|---|
| FREE | USD 4.00 |
| BRONZE | USD 3.50 |
| SILVER | USD 3.25 |
| GOLD | USD 3.00 |

Free, never charged: documents that fail to download or convert; password-locked or copy-locked files; scanned PDFs with no text inside; file types it does not read; files over your size limit; documents over your "Max documents" cap. Apify also charges a small start event per run.

## Input

The fields you will most likely change:

| Field | What it does | Default |
|---|---|---|
| `documentUrls (Document URLs)` | Direct links to the files. Each link is downloaded once. | the sample PDF |
| `keyValueStoreId` | An Apify key-value store that holds files you uploaded. | none |
| `keys (Record keys)` | The keys of the files in that store, for example report.pdf. | none |
| `maxDocuments` | Documents past this number are listed as not processed and are free. Up to 1,000. | 100 |
| `maxFileSizeMb` | Bigger files are not downloaded and are listed as too large (free). Up to 50. | 50 |
| `maxPages` | PDF pages or slides converted per document; the rest is cut and the row says so. Up to 2,000. | 500 |
| `pageRange` | PDF and PowerPoint only: pages or slides such as 1-3,5,9-. | all |
| `includePages, includeText` | Also return each page or slide on its own, and the plain text. | off, on |
| `chunkSize, chunkOverlap` | Split the Markdown into chunks of about this many characters (500 to 100,000), with this many characters repeated between neighbours. | 0, 0 |
| `timeoutSecs, maxConcurrency` | Time allowed per document, and documents converted at once. | 60, 3 |

A small input to start from:

```json
{
  "documentUrls": [
    {
      "url": "https://www.rfc-editor.org/rfc/rfc9309.pdf"
    }
  ],
  "chunkSize": 2000
}
```

## Output

One row per document. This is a real row from a cloud run on 13 November 2026 (RFC 9309, a 12-page PDF), with the long text cut short:

```json
{
  "source": "https://www.rfc-editor.org/rfc/rfc9309.pdf",
  "fileName": "rfc9309.pdf",
  "fileSizeBytes": 177688,
  "status": "ok",
  "docType": "pdf",
  "title": "RFC 9309: Robots Exclusion Protocol",
  "markdown": "# RFC 9309\n\n# Robots Exclusion Protocol\n\n## Abstract\n\nThis document specifies and extends ... (22,290 characters)",
  "pageCount": 12,
  "pagesProcessed": 12,
  "wordCount": 3202,
  "metadata": {
    "producer": "WeasyPrint 56.1",
    "createdAt": "2022-09-10T00:39:45.000Z"
  },
  "processedAt": "2026-11-13T10:06:13.735Z"
}
```

Only rows with the status "ok" are charged. Every other row says why the document did not convert, with an error code and a plain message. Download as JSON, CSV or Excel, or read them through the API.

## How to run it

### In Apify Console, no code

1. Paste one or more links into "Document URLs", or pick a key-value store and list the record keys of files you uploaded there.
2. Click Start. Left empty, it converts one sample PDF (RFC 9309, 12 pages).
3. Open the Output tab: one row per document. Download it as JSON, CSV or Excel, or read it through the API.

Start from the tool's page (https://apify.com/tan-solutions/document-to-markdown). You need an Apify account.

### From the API

One call runs the tool and returns the results. Replace `<YOUR_API_TOKEN>` with your token from Apify Console (Settings, API and Integrations). Send `{}` for a short demo run.

```bash
curl -X POST "https://api.apify.com/v2/acts/tan-solutions~document-to-markdown/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"documentUrls":[{"url":"https://www.rfc-editor.org/rfc/rfc9309.pdf"}],"chunkSize":2000}'
```

### From an AI agent, through MCP

Apify's MCP server offers this tool alone to your MCP client at `https://mcp.apify.com?tools=tan-solutions/document-to-markdown`. The client signs in to Apify on first connect, or sends your token in an `Authorization: Bearer` header.

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=tan-solutions/document-to-markdown"
    }
  }
}
```

## Run it on a schedule

Convert the same documents again every week, so a report or manual that is updated in place stays current in your index. In Apify Console: Schedules, Create new, cron `0 6 * * 1` (every Monday at 06:00 UTC), then add this tool with your input. Or as one API call (`xO93Bu8uBEwWOQxhK` is this tool's Actor ID):

```bash
curl -X POST "https://api.apify.com/v2/schedules?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "document-to-markdown-schedule",
  "cronExpression": "0 6 * * 1",
  "timezone": "UTC",
  "isEnabled": true,
  "isExclusive": true,
  "actions": [
    {
      "type": "RUN_ACTOR",
      "actorId": "xO93Bu8uBEwWOQxhK",
      "runInput": {
        "body": "{\"documentUrls\":[{\"url\":\"https://www.rfc-editor.org/rfc/rfc9309.pdf\"}],\"chunkSize\":2000}",
        "contentType": "application/json"
      }
    }
  ]
}'
```

## Limits

- Up to 1,000 documents per run, files up to 50 MB and up to 2,000 pages per document.
- One row holds at most 5 million characters; use a page range or "Max pages" for very long documents.
- No logins, passwords or cookies. Password-locked or copy-locked files come back unconverted and free; the tool never removes locks or DRM. Files that only restrict printing or editing convert normally.
- Scanned PDFs with no text inside come back as "no_text_layer" (free). There is no OCR.
- It stops at CAPTCHAs and bot walls and does not try to get around them.
- Memory is 4 GB by default, the fastest and cheapest per document.

## Questions

### Which files work?

PDF, DOCX, PPTX, HTML, Markdown and plain text. Old Word (.doc), Excel files and images come back as "unsupported" and are free.

### Can I convert files that are not on the web?

Yes. Upload them to an Apify key-value store, pick that store in "Key-value store" and list the record keys.

### Can I use it for RAG?

Yes. Set a chunk size and overlap, load the chunks into your vector store and keep the source, title and page count as metadata. With "Split by page" you can index page by page and cite page numbers.

### Why did my document not convert?

It may need a password, its owner may have turned off copying text, or it may be a scan with no text inside. Each row says which. If you have the right to, remove the lock yourself and run it again. All of these are free.

Not affiliated with Adobe or Microsoft. PDF, Word and PowerPoint are named only to describe the file formats. Built and run by Tan Solutions.

Source: https://www.tansolutions.org/tools/document-to-markdown/ · Tan Solutions
