Extract text from a PDF
Pull the text out of any PDF, including scans, with OCR.
Drag & drop your PDF here, or click to choose a file
Open a PDFWhether your PDF is born-digital or a scan, MarqPDF extracts the text so you can copy it out or export it.
Digital and scanned PDFs
For scans, OCR recognises the characters first; for digital PDFs the text is read directly.
Export options
Copy the text, make the PDF searchable, or convert to Word. See scanned PDF to Word.
Frequently asked questions
How do I extract text from a scanned PDF?
Run OCR on it in MarqPDF, then copy or export the recognised text.
Do it from code or an AI agent
The same tool is in the MarqPDF API as POST /v1/extract-text, and in MarqPDF's MCP server as extract_text for Claude, Cursor and other AI agents.
curl https://marqpdf.com/v1/extract-text \
-H "Authorization: Bearer $MARQPDF_API_KEY" \
-H "Content-Type: application/json" \
-d '{"file": "file_…"}'
API reference · Use it from an AI agent (MCP) · JavaScript and Python SDKs · Chain it with other steps