Document to Markdown | PDF, Word, Excel, OCR for RAG & LLM avatar

Document to Markdown | PDF, Word, Excel, OCR for RAG & LLM

Pricing

from $3.00 / 1,000 document converteds

Go to Apify Store
Document to Markdown | PDF, Word, Excel, OCR for RAG & LLM

Document to Markdown | PDF, Word, Excel, OCR for RAG & LLM

Convert PDF, Word, PowerPoint, Excel, CSV, HTML, EPUB and images from URLs to clean Markdown or text: headings, lists and tables kept, OCR for scans, RAG-ready chunks.

Pricing

from $3.00 / 1,000 document converteds

Rating

0.0

(0)

Developer

Paweł

Paweł

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

📄 Document to Markdown | PDF, Word, Excel, OCR for RAG & LLM

🎯 Turn any document link into clean, structured Markdown that ChatGPT, Claude and your RAG pipeline can actually use.

Paste links to PDF, Word, PowerPoint, Excel, CSV, HTML, EPUB or image files and get back clean Markdown with real headings, bullet lists, tables and links, plus plain text, page counts, titles and authors. Scanned pages and photos are read with OCR in 25 languages, and long documents can be split into RAG-ready chunks that remember which section they came from.

🚀 What Does It Do?

This tool downloads every document you list and converts it into structured, ready-to-use text. It rebuilds the document's outline instead of dumping raw characters: titles become # headings, numbered sections like 3.1 Encoder become sub-headings, bullet points become lists, Word and Excel tables become Markdown tables, and running headers, footers and page numbers are removed. No manual copy-pasting, no broken line wraps.

💡 Two ways to get your results:

  1. 📋 One row per document: the full Markdown and/or text of each file, with title, author, dates, page and word counts.
  2. 🧩 One row per chunk: documents split into token-sized pieces with their section path, ready to embed and load into Pinecone, Weaviate, Qdrant, pgvector or any vector database.

👥 Who Is This For?

🏢 Use Case💬 How It Helps
🤖 AI & RAG developersFeed clean, chunked Markdown into embeddings and chatbots instead of garbled PDF text
⚖️ Legal & compliance teamsConvert contracts, policies and filings into searchable text with their structure intact
🔬 Researchers & analystsExtract papers and reports into Markdown for notes, summaries and literature reviews
🧾 Back-office automationOCR scanned invoices, forms and receipts into text for downstream parsing
📚 Knowledge-base buildersMigrate Word, PowerPoint and Excel files into wikis, Notion or static sites
🛠️ No-code buildersPlug document text into Make, Zapier or n8n flows with one API call

✨ Features

  • 📄 9 formats: PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), CSV, HTML pages, EPUB e-books, images and plain text
  • 🏗️ Real document structure: headings detected from font sizes and section numbers, lists, bold and italic, links
  • 📊 Tables kept as tables: Word, Excel, PowerPoint and HTML tables come out as clean Markdown tables
  • 🧹 Noise removed: running headers, footers, page numbers, margin watermarks, menus and cookie banners
  • 🔍 OCR for scans and photos: 25 languages, automatic for pages without a text layer, or forced for every page
  • 🧩 RAG chunks: configurable size and overlap, split on headings and paragraphs, with the section path on every chunk
  • 🗒️ Speaker notes: PowerPoint notes included under each slide
  • 🔐 Password-protected PDFs: unlock with your password
  • 🏷️ Metadata: title, author, created and modified dates, page count, word count, file size
  • ⚡ Fast & Scalable: a 15-page research paper converts in about a second; files are processed in parallel
  • 🛡️ Graceful errors: a broken link or unsupported file becomes an error row, the rest of the batch continues
  • 📤 Export Anywhere: Download results as JSON, CSV, Excel, or push to Google Sheets, Zapier, Make, or your CRM

🎛️ Filters & Options

OptionWhat It Does
🔗 Document URLsLinks to the files you want converted
📝 Output formatMarkdown, plain text, or both
🧩 One row perWhole document or chunk
📏 Chunk size & overlapChunk length and repeated context in tokens
🔍 OCRAuto, always or off
🌍 OCR languagesThe languages printed in your scans
📑 Max pages per documentStop after the first N pages of a PDF
📊 Max rows per sheetLimit very large spreadsheets
📃 Include per-page MarkdownAdds the Markdown of every page separately
🗒️ Include speaker notesPowerPoint presenter notes on or off
🔐 PDF passwordOpens protected PDFs
📦 Max file sizeSkips files above the limit
⚙️ Files in parallelHow many documents are converted at once
🌐 ProxyOnly for file hosts that block downloads

📦 What You Get (Output Fields)

Every document includes:

📄 Document

FieldExample
urlhttps://arxiv.org/pdf/1706.03762
fileName1706.03762v7.pdf
fileTypepdf
titleAttention Is All You Need
authornull
created2024-04-10
pageCount15
ocrPages0
wordCount5993
sizeBytes2215244

📝 Content

FieldExample
markdown# Attention Is All You Need\n\n### Abstract\n\nThe dominant sequence transduction models...
textAttention Is All You Need\n\nAbstract\n\nThe dominant sequence transduction models...
pages[{"page": 1, "markdown": "# Attention Is All You Need..."}]

🧩 Chunk (chunk mode)

FieldExample
chunkIndex18
chunkCount38
headingPathAttention Is All You Need > 3 Model Architecture > 3.5 Positional Encoding
tokens230
textIn this work, we use sine and cosine functions of different frequencies...

📊 Example Output

{
"url": "https://calibre-ebook.com/downloads/demos/demo.docx",
"fileName": "demo.docx",
"fileType": "docx",
"title": "DOCX Demo",
"author": "Kovid Goyal",
"created": "2013-06-05",
"modified": "2013-06-20",
"pageCount": 1,
"pagesProcessed": 1,
"ocrPages": 0,
"sizeBytes": 1311881,
"wordCount": 1648,
"markdown": "# Demonstration of DOCX support in calibre\n\nThis document demonstrates the ability of the calibre DOCX Input plugin...\n\n# Text Formatting\n\n## Inline formatting\n\nHere is some **bold,** _italic,_ ...",
"scrapedAt": "2026-11-16T12:00:00.000Z"
}

📋 Dataset Views

The Apify Console gives you 4 ready-made table views to quickly browse your results:

ViewWhat It Shows
📊 DocumentsURL, type, title, pages, OCR pages, words and any error
📝 ContentTitle with the Markdown and text
🧩 ChunksSection path, token count and text of every chunk
📋 Full detailsEvery single field, the complete dataset

💰 Pricing

Pay only for what you convert: a small fee per document, a tiny fee per page, and a separate fee only for pages that need OCR. Failed downloads and unsupported files are free.

❓ FAQ

📄 Does it work with scanned PDFs? Yes. In Auto mode every page without a text layer is read with OCR. Choose the languages printed in your documents for the best accuracy.

📊 Are tables preserved? Tables from Word, Excel, PowerPoint and web pages become Markdown tables. Tables inside PDFs come out as text in reading order, because PDFs do not store table structure.

🔐 Can I convert password-protected or private files? Protected PDFs work with the PDF password option. Files must be reachable by a link: public URLs, signed links (S3, Google Cloud Storage, Dropbox) or your own server.

🧩 What chunk size should I use for RAG? 300 to 800 tokens with 50 to 100 tokens of overlap is a good default for most embedding models.

📦 Is there a size limit? 50 MB per file by default, adjustable up to 500 MB.

💬 Need Something Custom?

🛠️ Need Google Drive or SharePoint folders, table extraction from PDFs, embeddings pushed straight into your vector database, or a custom output schema? Send me a private message on Apify and I will build it for you. Feature requests and feedback are always welcome! 🙌