PDF & Word to Markdown / Text Converter (PDF, DOCX, HTML, TXT)
Pricing
Pay per event
PDF & Word to Markdown / Text Converter (PDF, DOCX, HTML, TXT)
Convert PDF, Word DOCX, HTML and TXT files from any URL into clean Markdown or plain text for LLMs, RAG and search. Gets title, author, dates, page and word counts, splits by page, and flags scanned PDFs.
Pricing
Pay per event
Rating
0.0
(0)
Developer
DailyPals Lab
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
PDF, Word & Image to Markdown / Text Converter with OCR
Convert PDF, Word (DOCX), HTML, TXT and image files (PNG, JPEG, WEBP, TIFF) to clean Markdown or plain text from any URL. Built-in OCR reads scanned PDFs, photographed documents and screenshots. Get the full text plus title, author, created/modified dates, page count, word count and OCR confidence as structured JSON, ready for LLMs, RAG pipelines, vector databases, search indexes and data analysis.
No browser, no separate OCR service, no setup: paste file links, click Start, download JSON, CSV or Excel, or call it from the API.
What does this document converter do?
- 📄 PDF to Markdown / text: keeps headings (detected from font size), paragraphs, bullet lists, and joins words hyphenated across lines.
- 📝 DOCX to Markdown: headings, bold/italic, lists, tables (as GFM Markdown tables), links, footnotes.
- 🌐 HTML to Markdown: strips navigation, headers, footers, scripts and styles; keeps the main content.
- 📃 TXT / Markdown files are passed through as-is.
- 🏷️ Metadata: title, author, subject, keywords, creator app, created and modified dates, language, page count, word and character counts.
- ✂️ Split by page: one result per PDF page for chunking and page-level citations, or page markers inside a single document.
- 🔍 OCR for scanned PDFs: pages without a text layer are detected and run through OCR automatically (Tesseract engine, 60+ languages). Normal PDFs are not OCR'd, so you only pay for OCR where it is needed.
- 🖼️ Image to text: PNG, JPEG, WEBP, TIFF and BMP images (screenshots, photos of documents, receipts, scans) become Markdown text.
- 🔗 Share links work: Google Drive, Google Docs (exported as DOCX) and Dropbox links are turned into direct downloads automatically.
- 📦 Bulk: up to 1,000 files per run, several in parallel.
Use cases
- AI and RAG: turn PDF manuals, contracts, reports and research papers into Markdown chunks for embeddings and chatbots.
- Search and knowledge bases: index the text of document libraries, policies and help-center files.
- Data extraction: pull text from government forms, filings, invoices or academic papers for analysis.
- Content migration: move Word documents into a CMS, wiki, Notion or static site as Markdown.
- Scanned archives: make old scanned letters, forms, books and records searchable.
- Screenshots and photos: pull text out of app screenshots, slides, whiteboard photos and receipts.
- Document audits: list titles, authors, dates, page counts, and find which files are scans.
How to use it
- Add file URLs (one per line). They must be reachable without a login.
- Choose Markdown or Plain text, and whether you want one row per document or per page.
- Click Start and download the results in JSON, CSV, Excel, HTML or XML, or use the API.
Uploading your own files: put them in an Apify key-value store (Storage → Key-value stores → upload a record) and use the record URL, e.g. https://api.apify.com/v2/key-value-stores/<storeId>/records/<key>. Records in your own stores are read with your run's token, so private stores work too.
OCR (scanned PDFs and images)
ocr | What happens |
|---|---|
auto (default) | PDF pages with almost no text (under 50 characters) that contain an image are OCR'd, and so are all near-empty pages of a document that looks scanned. Image files are OCR'd. Born-digital PDFs are not OCR'd. |
always | Every page is rendered and OCR'd, and the OCR text replaces the text layer. Use it for PDFs whose text layer is garbled (broken fonts, copy-paste gives gibberish). |
off | No OCR. Image files return an error row; scanned PDFs are only flagged with likelyScanned: true. |
- Languages: set
ocrLanguagesto Tesseract codes, e.g.["eng"],["deu"],["eng", "fra"],["chi_sim"],["jpn"],["ara"](2-letter codes likedework too; up to 5). English is built in; other languages are downloaded once per run. - Quality: PDF pages are rendered at about 220 DPI. Each OCR'd row has
ocrUsed: true,ocrPagesandocrConfidence(0-100). Clean scans and screenshots usually score 85-95; under 60 the row gets a hint (blurry, skewed, handwritten or wrong language). - Limits:
maxOcrPages(default 30) caps OCR pages per document; pages beyond it are listed in the hint. Handwriting, very low-resolution faxes and complex tables OCR poorly. Multi-page TIFFs: only the first page is read. - Speed: about 1-3 seconds per page at 4 GB memory (one CPU core); give the run more memory to OCR big batches faster (one OCR worker per 4 GB).
Input example
{"fileUrls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf","https://arxiv.org/pdf/1706.03762","https://calibre-ebook.com/downloads/demos/demo.docx","https://example.com/scans/contract-scan.pdf","https://example.com/screenshots/invoice.png"],"outputFormat": "markdown","ocr": "auto","ocrLanguages": ["eng"],"maxOcrPages": 30,"splitByPage": false,"includePageBreaks": true,"maxPages": 50,"maxFileSizeMb": 25}
| Field | What it does | Default |
|---|---|---|
fileUrls | Links to PDF, DOCX, HTML, TXT or image files | required |
outputFormat | markdown or text | markdown |
splitByPage | One row per PDF page | false |
includePageBreaks | Page markers between PDF pages | false |
includePerPage | Add a perPage array to each document row | false |
ocr | auto, always or off | auto |
ocrLanguages | Tesseract language codes | ["eng"] |
maxOcrPages | OCR pages per document (1–500) | 30 |
maxPages | Pages per document (1–500) | 50 |
maxFileSizeMb | Skip larger files (1–100 MB) | 25 |
maxFiles | Files per run (hard cap 1000) | 100 |
timeoutSecs | Download timeout | 60 |
maxConcurrency | Files in parallel (1–5) | 3 |
Output example
{"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf","fileName": "fw9.pdf","fileType": "pdf","bytes": 140815,"pages": 6,"pagesProcessed": 6,"truncated": false,"title": "Form W-9 (Rev. March 2024)","author": "SE:W:CAR:MP","subject": "Request for Taxpayer Identification Number and Certification","createdAt": "2024-03-06T13:18:13.000Z","modifiedAt": "2024-03-06T13:18:13.000Z","language": "en-US","wordCount": 6390,"charCount": 38134,"markdown": "# Form W-9(Rev. March 2024)\n\n## Request for Taxpayer Identification Number and Certification\n\nDepartment of the Treasury Internal Revenue Service ...","likelyScanned": false,"ocrUsed": false,"ocrPages": 0,"ocrConfidence": null,"hint": null,"error": null,"processedAt": "2026-11-22T04:57:03.209Z"}
A scanned PDF row looks the same with "likelyScanned": true, "ocrUsed": true, "ocrPages": 2, "ocrConfidence": 95. Image files have fileType png, jpeg, webp, tiff or bmp and pages: 1.
With splitByPage: true, each row also has page and holds only that page's content. With outputFormat: "text", the content field is text instead of markdown. Files that fail (404, too large, unsupported type, password-protected) get a row with error filled in. A run summary is saved as the SUMMARY record.
Pricing
This Actor uses pay-per-event pricing. You pay per converted document, and long documents add a small per-page fee:
| Event | Price |
|---|---|
document: each successfully converted file (includes the first 10 pages) | $0.003 per document |
extra-page: each page beyond 10 in a document | $0.0005 per page |
ocr-page: each page or image that was OCR'd (on top of the above) | $0.006 per page |
- No charge for files that fail (404, too large, unsupported, unreadable).
- For DOCX the page count from the file is used; for DOCX without one, HTML and TXT, one page = 3,000 characters of text.
maxPagescaps the pages (and cost) per document;maxOcrPagescaps the OCR pages.- Normal PDFs, Word, HTML and TXT files are never charged for OCR in
automode. - Platform usage (compute) is included in the event prices.
- Set Max cost per run in the run options and the Actor stops before going over it, processing fewer pages or files if needed.
Example: 100 PDFs of 8 pages = 100 × $0.003 = $0.30. One 60-page PDF = $0.003 + 50 × $0.0005 = $0.028. A 5-page scanned PDF = $0.003 + 5 × $0.006 = $0.033. 100 screenshots = 100 × ($0.003 + $0.006) = $0.90.
Limits
- Up to 1,000 files per run, 100 MB per file, 500 pages per document.
- OCR quality depends on the scan: handwriting, heavy noise, skewed photos and tiny text give lower confidence. Multi-column scans come out in Tesseract's reading order.
- Complex PDF layouts (multi-column papers, forms, tables) are extracted in reading order as well as the text layer allows; PDF tables become plain lines, not Markdown tables.
- Legacy Word
.doc,.xlsx,.pptxand password-protected PDFs are not supported. - Files behind a login, CAPTCHA or bot protection can't be downloaded. Some sites block automated downloads; host the file elsewhere or upload it to a key-value store.
FAQ
Is the Markdown good for LLMs and RAG?
Yes. Headings, lists and tables are kept so chunkers can split on structure. Use splitByPage for page-level chunks with page numbers for citations.
Can it convert scanned PDFs?
Yes. With ocr: "auto" (the default) pages without a text layer are OCR'd and you pay $0.006 per OCR'd page. Text PDFs are read directly and not OCR'd.
Can it extract text from images and screenshots? Yes: PNG, JPEG, WEBP, TIFF and BMP links are OCR'd into Markdown text, one row per image.
Which OCR languages are supported?
60+ Tesseract languages, including English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Russian, Ukrainian, Turkish, Arabic, Hebrew, Hindi, Chinese (simplified and traditional), Japanese and Korean. Set ocrLanguages; mixing 2-3 languages works but is slower.
How accurate is the OCR?
On clean scans and screenshots we measured 100% word accuracy with confidence 95. Old, noisy or skewed scans score lower; check ocrConfidence and the hint.
My PDF has text but it comes out as gibberish.
Its text layer uses broken font encodings. Set ocr: "always" to ignore the text layer and OCR the rendered pages.
How do I convert a Google Doc?
Paste the share link (https://docs.google.com/document/d/.../edit). The doc must be shared as "Anyone with the link"; it is exported as DOCX and converted.
What about Google Drive or Dropbox files? Paste the share link; it is turned into a direct download link automatically. The file must be publicly shared.
Can I get only the metadata?
Yes, set maxPages to 1 to read metadata and the first page cheaply; pages still shows the full page count for PDFs.
Is there an API? Yes. Start runs and fetch results with the Apify API, the JavaScript or Python client, or the CLI, or connect Make, Zapier, n8n, LangChain or LlamaIndex.
Is it legal to convert these documents?
The Actor only processes files at the URLs you provide. You are responsible for having the right to download, process and store those files and their contents, including copyright, confidentiality, privacy (e.g. GDPR) and the source website's terms. Don't submit documents with personal data unless you have a legal basis to process it. If in doubt, ask a lawyer.
Support
Missing a file type or found a conversion problem? Open an issue on the Actor's Issues tab with the file URL. Made by Daily Pals Labs.