Home / Tools / PDF and Office files to Markdown for LLMs

Updated

Document to Markdown & JSON (PDF, DOCX, PPTX, HTML, OCR)

Plainprobe Document to Markdown is a pay-per-document tool on the Apify platform that converts public PDF, Word, PowerPoint, HTML and image files into clean Markdown and JSON for LLMs and RAG pipelines. It keeps headings and paragraphs, returns tables as JSON records, reads two-column papers in the right order, runs OCR on scanned pages and can split the result into chunks with their heading path and page range. Conversion is deterministic and runs inside the tool, without any AI model. It costs $0.004 per document, first 50 pages included; failed documents are free.
Try it on ApifyUse it from an AI agent
Real example output of 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 JSONRuled and booktabs tables become Markdown tables and records with header and rows
Reading orderTwo-column papers read column by column; full-width blocks kept in place
Clean textHyphenated line ends rejoined, rotated margin stamps removed, paragraphs rebuilt
Built-in OCRTesseract 5 on pages without text, 7 languages, confidence per page
RAG chunksSplit on paragraph boundaries, with heading path and page range
Batch-safeUp 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

Plainprobememo23/pdf-text-extractor
Documents converted20 / 2020 / 20
Tables returned as Markdown / JSON1180
Text recovered on a two-column paper (LLaMA-2)47.4k words42.6k words
Run time for 20 PDFs56 s14 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.

OptionPrice, Apify free planUsers, last 30 daysBest for
plainprobe/document-to-markdown (ours)$4 per 1,000 (document converted)0PDFs with tables, for LLM and RAG input
memo23/pdf-text-extractor$5 per 1,000 (pdf processed)155Fast plain-text extraction
automation-lab/pdf-text-extractor$3 per 1,000 (pdf extracted)137Plain 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).

When not to use it

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.

EventWhenPrice
document_convertedOne document converted, first 50 pages included$0.004
extra_pageEach page beyond 50$0.0001
ocr_pageEach page read with OCR$0.002
Actor startOnce 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)

Try it on Apify

Use cases with real examples