Home/Solutions/PDF to markdown for LLMs
Solution

PDF to markdown for LLMs, and every other file agents are handed

Most enterprise questions are answered by documents, not web pages. CrawlGenie parses them without a model: PDF text layers and OCR for scans, Office and OpenDocument files, images, Google Docs, Sheets and Slides links, YouTube caption tracks. Ask a question and get the passages; give a page range and skip the rest.

140,355 → 1,277tokens: the passages of a 152-page PDF that answer one question
$280.71 → $2.55per 1,000 questions on that report at $2 per million input tokens
OCRfor scans inside the platform; nothing is sent to a third-party model
01

Which document types are supported?

SourceHow it is readNotes
PDF with textpdf.js text extraction, lines by position, tables rebuilt as pipe rowspages: "1-5,9" to limit work
Scanned PDF, imagesOCR with Tesseract on the server (auto when the text layer is empty)Confidence reported; runs inside the platform, never sent to a third-party model
DOCX, XLSX, PPTX, ODT, ODS, ODP, RTFNative zip/XML parsing, no Office neededSheets become rows; slides become sections
Google Docs, Sheets, Slides, Drive, Dropbox, GitHub linksRewritten to export or raw URLsPublic or "anyone with the link"
YouTubeCaption track → timestamped paragraphsNo speech model; videos without captions return "no transcript"
02

How do I turn a PDF into markdown for an LLM?

For developers: the exact call
POST /v1/parse {"url": "https://example.com/annual-report.pdf"}                  # whole document
POST /v1/parse {"url": "...pdf", "q": "revenue by segment", "pages": "30-60"}    # passages from pages 30–60
POST /v1/parse {"base64": "", "filename": "scan.png", "ocr": "auto", "redactPII": true}
POST /v1/scrape {"url": "https://docs.google.com/spreadsheets/d//edit#gid=0", "q": "total for March"}
03

How is this cheaper than uploading the file to ChatGPT or Claude?

A file attached in the chat is processed and billed by the platform, in full, every time. Through the connector, CrawlGenie parses it once and sends the model only the passages that answer, typically 2–15% of a long document, and you can save it to a knowledge collection so the next question costs a few hundred tokens.

04

What is OCR and when does it run?

OCR (optical character recognition) turns pixels into characters. A scanned invoice has no words a program can read until OCR runs. CrawlGenie renders each page, runs OCR inside the platform, keeps a confidence score, and triggers automatically when a PDF's text layer is empty or sparse. It is slower than reading a text layer (about 1–3 seconds per page) and never sent to a third-party model.

05

What happens to personal data?

redactPII replaces emails, phone numbers, Luhn-valid card numbers, IBANs, US SSNs and public IPs with placeholders before the text leaves the server, and reports counts. Names and street addresses are not detected; the docs say so rather than imply otherwise.

Try the numbers

What would CrawlGenie save you?

Set how much your AI reads and which model it uses. The saving uses the share of a page your AI still reads, as measured.

500
13,000 tokens
$2 / 1M input tokens
80%
You would save
$281a month
$3,370 a year · 72% fewer tokens
Without CrawlGenie195M tokens · $390
With CrawlGenie55M tokens · $109

Your AI still reads up to 10% of each page it asks about (measured: 2–15% on long pages). The Token savings page shows your real number.

How we measured →
FAQ

Questions people ask

Can it read Word and Excel files without Microsoft Office?

Yes. DOCX, XLSX and PPTX (and ODT, ODS, ODP) are zip files with XML inside; CrawlGenie parses them directly.

Does it transcribe audio or video?

No. YouTube works through caption tracks. Audio and video files are listed by the page_media extractor so you can route them to a speech service you choose.

How large a PDF can it handle?

Hundreds of pages; use pages to read only a range, and q to get passages instead of the whole text. Documents are capped at 25 MB per fetch by default.

Spend tokens on answers, not on pages.

Create a workspace in a minute. Connect ChatGPT, Claude, Cursor or your own agents. Every answer comes with the token savings.