Updated
Document to Markdown & JSON (PDF, DOCX, PPTX, HTML, OCR)
What does Document to Markdown & JSON (PDF, DOCX, PPTX, HTML, OCR) return?
Document to Markdown & JSON (PDF, DOCX, PPTX, HTML, OCR) returns one JSON item per document, with every field always present (null when unknown) and typed, uncharged errors for failures. The table lists what each result contains.
| Tables as JSON | Ruled and booktabs tables become Markdown tables and records with header and rows |
|---|---|
| Reading order | Two-column papers read column by column; full-width blocks kept in place |
| Clean text | Hyphenated line ends rejoined, rotated margin stamps removed, paragraphs rebuilt |
| Built-in OCR | Tesseract 5 on pages without text, 7 languages, confidence per page |
| RAG chunks | Split on paragraph boundaries, with heading path and page range |
| Batch-safe | Up to 1,000 URLs per run, typed errors per document, failed documents free |
How does it perform against the most used alternatives?
Measured on 20 public PDFs (502 pages), 1 December 2026. Documents converted: Plainprobe 20 / 20, memo23/pdf-text-extractor 20 / 20; Tables returned as Markdown / JSON: Plainprobe 118, memo23/pdf-text-extractor 0.
Benchmark: 20 public PDFs (502 pages), 1 December 2026
| Plainprobe | memo23/pdf-text-extractor | |
|---|---|---|
| Documents converted | 20 / 20 | 20 / 20 |
| Tables returned as Markdown / JSON | 118 | 0 |
| Text recovered on a two-column paper (LLaMA-2) | 47.4k words | 42.6k words |
| Run time for 20 PDFs | 56 s | 14 s |
| Price for these 20 PDFs | $0.08 + start | $0.105 |
Same 20 public PDFs (research papers, government forms, manuals), run on Apify the same day with default settings.
Where others do better: memo23/pdf-text-extractor is about 4 times faster because it extracts plain text only, without table detection or layout analysis.
Public reliability of those alternatives (Apify API, runs that failed, timed out or were aborted over the last 30 days, 4 December 2026): memo23/pdf-text-extractor 0.1 % of 21,405 runs, automation-lab/pdf-text-extractor 0.6 % of 1,465 runs.
Which option should you choose?
The most used alternatives on the Apify Store are memo23/pdf-text-extractor (155 users in the last 30 days) and automation-lab/pdf-text-extractor (137). Pick memo23/pdf-text-extractor for fast plain-text extraction; automation-lab/pdf-text-extractor for plain text, per-page text and metadata at a low price; Plainprobe for PDFs with tables, for LLM and RAG input.
| Option | Price, Apify free plan | Users, last 30 days | Best for |
|---|---|---|---|
| plainprobe/document-to-markdown (ours) | $4 per 1,000 (document converted) | 0 | PDFs with tables, for LLM and RAG input |
| memo23/pdf-text-extractor | $5 per 1,000 (pdf processed) | 155 | Fast plain-text extraction |
| automation-lab/pdf-text-extractor | $3 per 1,000 (pdf extracted) | 137 | Plain text, per-page text and metadata at a low price |
Strengths, weaknesses and success rates of each option: full comparison.
When should you use it, and when not?
Use it for feeding papers, reports and manuals to an LLM and similar jobs; do not use it for files behind a login (public URLs only).
- Feeding papers, reports and manuals to an LLM
- Building a RAG index with chunks that keep their headings and pages
- Extracting the tables of a public PDF as JSON
- Letting an AI agent read a document from a URL
When not to use it
- Files behind a login (public URLs only)
- Handwriting and complex formulas
- Pixel-perfect layout reproduction
- Describing charts in words
How much does it cost?
$0.004 per document (one document converted, first 50 pages included), paid per result on the Apify platform with no subscription; failed items are not charged.
| Event | When | Price |
|---|---|---|
document_converted | One document converted, first 50 pages included | $0.004 |
extra_page | Each page beyond 50 | $0.0001 |
ocr_page | Each page read with OCR | $0.002 |
Actor start | Once per run, per GB | $0.00005 |
Failed documents are free. A 30-page text PDF costs $0.004, a 200-page manual $0.019, a 10-page scan $0.024.
Compared with the most used alternatives (public Store prices, 4 December 2026): memo23/pdf-text-extractor $5.00 and automation-lab/pdf-text-extractor $3.00 per 1,000 PDFs, each plus $0.005 per run.
What do the input and output look like?
The input is a small JSON object like the one below; each result is one JSON item in the run's dataset.
Input
{
"urls": [
{
"url": "https://arxiv.org/pdf/1706.03762"
}
],
"chunking": true
}Output (one item per result, shortened)
{
"url": "https://arxiv.org/pdf/1706.03762",
"status": "ok",
"format": "pdf",
"title": "Attention Is All You Need",
"pageCount": 15,
"pagesConverted": 15,
"truncated": false,
"wordCount": 6383,
"ocrPages": 0,
"markdown": "Provided proper attribution is provided, Google hereby grants permission to\nreproduce the tables and figures\u2026",
"error": null,
"durationMs": 2126,
"convertedAt": "2026-12-01T09:47:45Z"
}How do I call it from code, an AI agent or n8n?
Call the Apify API with your token, connect an MCP client to the Apify MCP server, or import the ready n8n workflow.
API (returns the results directly):
curl -X POST "https://api.apify.com/v2/acts/plainprobe~document-to-markdown/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"urls": [{"url": "https://arxiv.org/pdf/1706.03762"}], "chunking": true}'
AI agents (MCP): connect any MCP client (Claude, Cursor, VS Code and others) to the Apify MCP server with this tool enabled: https://mcp.apify.com/?actors=plainprobe/document-to-markdown. See For AI agents.
No-code: ready-to-import n8n workflow, and Make or Zapier through their Apify integrations (Run Actor, then Get dataset items): setup in 3 steps.
What do people often ask?
Does it use an AI model?
No. Conversion is deterministic and runs inside the tool; nothing is sent to an LLM provider.
Which formats are supported?
PDF, DOCX, PPTX, HTML and PNG, JPEG, TIFF or WebP images. The type is detected from the file content, not the extension.
What happens to my files?
They are downloaded, converted in memory and not kept after the run, except the results in your own dataset.
Guide: How to Get a YouTube Transcript for AI and RAG
Guide: How to Convert PDF to Markdown for LLMs and RAG (2026 Guide)
Guide: How to Convert a URL to PDF (One Page or Thousands)
Guide: How to Convert Word (DOCX) and PowerPoint to Markdown
Guide: How to Convert HTML and Web Pages to Markdown (for LLMs too)
Guide: How to Extract Tables from a PDF (Measured on a Real Paper)
Guide: How to Extract Text from a PDF in n8n (Scans, Tables and URLs)