PDF to Markdown, DOCX to Markdown & Document to Markdown
Pricing
Pay per event
PDF to Markdown, DOCX to Markdown & Document to Markdown
Convert PDF to Markdown, DOCX to Markdown and Document to Markdown, plus PPTX, XLSX, HTML, EPUB, CSV and TXT: clean Markdown with page markers and optional token-sized RAG chunks. Optional OCR for scanned PDFs. Processes only files you supply.
Pricing
Pay per event
Rating
0.0
(0)
Developer
Nick Hellmich
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
24 days ago
Last modified
Categories
Features
Share
Convert PDF to Markdown, DOCX to Markdown, and Document to Markdown in the cloud, along with HTML to Markdown, PowerPoint, Excel, EPUB, CSV and text files. You get clean Markdown text (which also works as PDF to text), with optional token-sized chunks for RAG / LLM pipelines and OCR for scanned pages. Upload files or paste links, including Google Docs/Sheets/Slides, Google Drive, Dropbox and GitHub links, which are converted automatically.
What people use it for
- PDF to Markdown for LLMs and RAG: turn reports, manuals and contracts into Markdown with
<!-- page N -->markers, then embed the token-sized chunks with their page numbers. - DOCX to Markdown: Word headings, lists and tables become Markdown headings, lists and tables. Google Docs share links work too.
- HTML to Markdown: clean up
.htmlfiles or public static pages (scripts, navigation and footers are removed; JavaScript is not rendered). - PDF to text for search and analysis: plain Markdown text plus page and token counts for budgeting embeddings.
- Scanned PDFs: turn on OCR (English, Spanish, French, German, Portuguese or Italian).
- Batch jobs and automations: up to 50 documents per run from Zapier, Make, n8n, LangChain, LlamaIndex, the API or MCP.
Quick start
- Click Start. The prefilled input converts the IRS W-9 form (a 6-page PDF) so you can see real output in about 10 seconds for $0.012.
- Replace it with your own files: upload, or paste public links.
- Open the Output tab. There's one row per document with the Markdown, the page count, token count and chunks.
What you get
| Field | Description |
|---|---|
markdown | Clean Markdown with headings, lists, tables, and <!-- page N --> markers for PDFs |
chunks | When chunkSize > 0: token-sized chunks with pageStart/pageEnd and token counts |
pageCount, tokenCount, detectedFormat, metadata | Useful for budgeting embeddings |
charged, note, error | charged: false rows cost nothing; error says what to do |
Sample row (trimmed):
{ "source": "https://www.irs.gov/pub/irs-pdf/fw9.pdf", "ok": true, "detectedFormat": "pdf", "pageCount": 6,"tokenCount": 8961, "chunkCount": 20, "charged": true,"markdown": "<!-- page 1 -->\nForm W-9 (Rev. March 2024) Request for Taxpayer Identification Number and Certification ...","chunks": [{ "index": 0, "text": "Form W-9 ...", "tokens": 512, "pageStart": 1, "pageEnd": 1 }] }
Input tips
- Links that work: direct file links plus share links from Google Docs/Sheets/Slides (exported as DOCX/XLSX/PPTX), Google Drive files, Dropbox and GitHub file pages. The file must be shared as "Anyone with the link". Private links return a clear, uncharged error.
- RAG chunks: set
chunkSize(for example 512) andchunkOverlap(for example 64). The tokenizer iscl100k_base(OpenAI) oro200k_base. - Scanned PDFs: turn on OCR and pick the language (OCR pages are billed separately).
Pricing (pay per event)
| Event | Price |
|---|---|
| Document processed (includes the first 5 pages) | $0.01 |
| Extra page beyond 5 | $0.002 |
| OCR page | $0.01 |
Examples: a 2-page DOCX costs $0.01; a 15-page PDF costs $0.03; a 50-page report costs $0.10. Failed documents are never charged, and that includes dead links, sign-in pages and unsupported files. Bronze, Silver and Gold Apify plans get 10/20/30% off. You can cap any run with Maximum cost per run.
Limits
Up to 50 documents per run, 50 MB per file and 200 pages per document by default (500 max, set with maxPages). The output stays in your run's dataset under Apify's normal retention. Documents are processed in memory and never logged.
FAQ
Does it work with Google Docs? Yes. Paste the normal share link; the document must be shared with "Anyone with the link".
Why did I get "LOGIN_OR_VIEWER_PAGE"? The link pointed at a sign-in or viewer page, not the file. Make it public or paste a direct download link. You weren't charged.
Tables? DOCX, XLSX, PPTX and HTML tables become Markdown tables. PDF tables come out as text in reading order.
Images or charts? Their text is extracted only via OCR; images themselves aren't described.
PDF to text or Markdown? The output is Markdown, which is plain text with light formatting (# headings, - lists, tables), so it works for PDF to text too.
HTML to Markdown from a web page? Yes for public static pages and .html files. JavaScript isn't run, so pages built in the browser may come out empty. Sign-in pages are refused and not charged.
Can an AI agent call it? Yes, through the Apify API or MCP server, and it supports x402 payments. See the API tab for ready-to-paste code.
Integrations: no-code and AI
Zapier: new Google Drive file → Markdown chunks → your RAG knowledge base
- Trigger: Google Drive → New File in Folder. Share the folder as "Anyone with the link" (or use a direct download link).
- Action: Apify → Run Actor →
PDF to Markdown, DOCX to Markdown & Document to Markdown, with run synchronously turned on (small files finish in about 10 s). Input:{"fileUrls": ["{{Alternate Link}}"], "chunkSize": 512, "chunkOverlap": 64}. - Search: Apify → Fetch dataset items using the run's
defaultDatasetId. - Action: send
chunks[].textto your vector store (Pinecone, Qdrant or Supabase via Webhooks by Zapier), or savemarkdownto Notion or Google Docs.
Make: email attachments → Markdown in Google Sheets
Gmail Watch Emails → Apify Run an Actor (run synchronously: Yes) → Apify Get Dataset Items (Dataset ID = defaultDatasetId) → Google Sheets Bulk Add Rows (source, pageCount, tokenCount, markdown).
n8n: nightly re-index of a docs folder
Install the Apify node (@apify/n8n-nodes-apify, or search "Apify" on n8n Cloud) → Schedule Trigger → Apify: Run an Actor and get dataset → Split Out chunks → Embeddings + Vector Store nodes. In an AI Agent node, add the Apify Tool so the agent can convert a file the user pastes into chat.
LangChain (Python): load documents straight into a vector index
from langchain_apify import ApifyWrapperfrom langchain_core.documents import Documentdocs = ApifyWrapper().call_actor(actor_id="steady_kahikatea/document-to-markdown",run_input={"fileUrls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf"], "chunkSize": 512},dataset_mapping_function=lambda item: Document(page_content=item.get("markdown") or "",metadata={"source": item["source"], "pages": item.get("pageCount")}),).load()
For an agent, use ApifyActorsTool("steady_kahikatea/document-to-markdown").
LlamaIndex: one Document per chunk, with page numbers
from llama_index.core import Documentfrom llama_index.readers.apify import ApifyActoritems = ApifyActor("<APIFY_TOKEN>").load_data(actor_id="steady_kahikatea/document-to-markdown",run_input={"fileUrls": ["https://example.com/handbook.pdf"], "chunkSize": 512},dataset_mapping_function=lambda it: Document(text=it.get("markdown") or "", metadata={"source": it["source"]}))
Sample input → output: {"fileUrls": ["https://example.com/handbook.pdf"], "chunkSize": 512} → {"ok": true, "pageCount": 12, "tokenCount": 6120, "chunks": [{"index": 0, "text": "# Employee Handbook ...", "tokens": 512, "pageStart": 1, "pageEnd": 2}], "charged": true}. Cost: $0.024.
Tip: Zapier's synchronous Run Actor times out after 30 seconds. For anything longer, run it asynchronously and start a second Zap from the Finished Actor run trigger. Make's synchronous timeout depends on your plan; use Watch Actor Runs for long jobs.
Also works with: the Apify API ("API" tab), the Apify MCP server for Claude/Cursor-style agents, and x402 payments.
Docs used: Zapier · Make · n8n · LangChain · LlamaIndex
For AI agents
Actor: steady_kahikatea/document-to-markdownInput: {"fileUrls": ["https://example.com/file.pdf"], "chunkSize": 512}Output: one dataset row per document: markdown, chunks[], pageCount, tokenCount, charged, error
Related
Need the reverse? Markdown & HTML to PDF / DOCX Generator (steady_kahikatea/markdown-html-to-pdf-docx).
Feedback or a file that converts badly? Open an issue on the Issues tab. If this Actor saves you time, a rating helps others find it.