PDF to Markdown: DOCX, XLSX & PPTX to Markdown for RAG
Pricing
from $1.50 / 1,000 converted documents
PDF to Markdown: DOCX, XLSX & PPTX to Markdown for RAG
PDF to Markdown converter: turn PDF, Word, Excel (.xlsx), PowerPoint (.pptx), HTML and text files into clean LLM-ready Markdown with headings, lists and tables. Get full text, per-page/sheet/slide text, metadata or RAG chunks. Flags scanned PDFs. Built for AI agents and RAG.
Pricing
from $1.50 / 1,000 converted documents
Rating
0.0
(0)
Developer
Ceiba Data
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
Share
PDF, Word, Excel & PowerPoint to Markdown for RAG
Convert PDF, Word (.docx), Excel (.xlsx), PowerPoint (.pptx), HTML, Markdown and plain-text files into clean, LLM-ready Markdown. Headings, paragraphs, numbered and bulleted lists and links are kept; Word tables, Excel sheets, PowerPoint tables and simple PDF tables (text in aligned columns) become Markdown tables. Choose one row per document, one row per page / sheet / slide, or ready-to-embed RAG chunks with overlap.
Built for AI agents, RAG pipelines, vector databases and no-code automations (n8n, Make, Zapier).
What you get
- Markdown with
#headings detected from font sizes in PDFs and from styles in Word files. - Per-page text for PDFs, with page numbers.
- Excel (.xlsx): every sheet becomes a
##section with a Markdown table (first row as header). Shared strings, dates (as ISO), booleans and cached formula values are read; empty rows and columns are dropped; hidden sheets are marked. - PowerPoint (.pptx): one
##section per slide with its title, bullets (with indent levels), text boxes, tables and, optionally, speaker notes. - RAG chunks that break at headings and paragraphs, with the nearest heading attached to each chunk and configurable size and overlap.
- Metadata: title, author, subject, keywords, creator, producer, creation and modification dates, PDF version, page count, characters and words.
- Scanned-page detection:
pagesWithoutTextandlikelyScannedtell you which PDFs need OCR, instead of silently returning empty text. - Page ranges (
"1-5, 8") and a per-PDF page limit. - Files that fail (dead link, password-protected, not a document) become an
errorrow with a clear message and are never charged.
Input
| Field | What it does |
|---|---|
documentUrls | Public links to PDF, DOCX, XLSX, PPTX, HTML, Markdown or text files. Type is detected from content. |
outputMode | document (default), pages or chunks. |
chunkSize, chunkOverlap | Chunk size and overlap in characters (chunks mode). |
pageRange, maxPagesPerDocument | Limit which PDF pages (or PowerPoint slides) are read. |
maxRowsPerSheet | Excel: rows read per sheet (default 5,000). |
includeSlideNotes | PowerPoint: add speaker notes (default true). |
base64Files | [{"name": "a.pdf", "data": "<base64>"}] for files you cannot host. |
htmlOrText | Raw HTML or text strings. |
Run it with empty input to get a free demo with a built-in sample PDF.
Example
{"documentUrls": ["https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"],"outputMode": "chunks","chunkSize": 1200,"chunkOverlap": 120}
Output (document mode)
{"source": "https://example.com/report.pdf","status": "ok","format": "pdf","title": "Quarterly sales report","pageCount": 3,"pagesProcessed": 3,"likelyScanned": false,"pagesWithoutText": [3],"chars": 412,"words": 63,"markdown": "# Quarterly sales report\n\nSales grew 12% ...","pages": [{ "page": 1, "text": "...", "chars": 268 }],"metadata": { "author": "...", "createdAt": "2026-11-02T00:38:16Z" },"error": null}
In chunks mode each row has chunkIndex, chunkCount, heading and text. In pages mode each row has page, markdown and text (plus sheet, rows and columns for Excel, or slideTitle and notes for PowerPoint).
Use cases
- RAG pipelines: PDFs, Word, Excel and PowerPoint files to clean Markdown chunks with headings, ready for embeddings.
- Spreadsheets for LLMs: give an agent an Excel workbook as Markdown tables it can read and reason about.
- AI agents: let an agent read a PDF, DOCX, XLSX or PPTX link and answer questions about it.
- Knowledge bases: convert manuals, policies and reports to Markdown for Notion, Confluence or a docs site.
- Data extraction: get page-by-page text and metadata, and flag scanned PDFs that need OCR.
Use with AI agents (MCP)
Every Apify Actor is also a tool for AI agents. Add this Actor to Claude, Cursor, VS Code or any MCP client with the Apify MCP server:
https://mcp.apify.com?tools=ceibadata/document-to-markdown
Or run it locally:
$npx -y @apify/actors-mcp-server --tools ceibadata/document-to-markdown
Then just ask, for example:
Convert this PDF to Markdown chunks of about 1,200 characters so I can index it: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf
From code, one call returns the results:
curl -X POST "https://api.apify.com/v2/acts/ceibadata~document-to-markdown/run-sync-get-dataset-items?token=$APIFY_TOKEN" \-H 'Content-Type: application/json' -d @input.json
Pricing
Pay per event, no monthly fee:
- Converted document: one charge per file converted successfully. Includes up to 20 PDF pages. Word, Excel and PowerPoint files are one charge each, whatever their size.
- Extra page: each PDF page beyond the first 20.
Failed files and demo runs are free. Check the Pricing tab for current prices.
Limits
- Text-layer extraction only: scanned PDFs (images of text) are flagged with
likelyScanned, not OCR'd. - Files up to 50 MB. Only public http(s) URLs; private network addresses are refused.
- Complex multi-column PDF layouts are read in the PDF's text order.
- Excel: formulas without a saved value are shown as the formula (
=B2+B3); charts and images are skipped. Old binary formats (.xls, .ppt, .doc) are not supported.
Support
Open an issue on the Issues tab. Built and maintained by Ceiba Data, a small data studio operated with AI.