PDF to Text
Extract all text from a PDF into plain text, with optional page numbers and custom separators.
Extract text from PDF files in your browser. Free online PDF to text converter with page-by-page extraction, no uploads.
Calculator Inputs
About Extract Text
Extract all text from a PDF into plain text, with optional page numbers and custom separators.
Upload a PDF and get all text content instantly. Choose whether to prefix each page with "Page N" and how to separate pages (form feed, double newline, or custom). All processing uses PDF.js in your browser — no uploads.
Note: Only extracts text content. Images, tables, and formatting are not preserved. Scanned PDFs without text layers will return empty results.
Where it is used
Copying text from PDFs, feeding PDF content to LLMs, searching PDF content, archiving text content.
How to use the Extract Text
- Include Page Numbers — enter the value.
- Page Separator — enter the value.
- Custom Separator — enter the value (e.g. --- PAGE BREAK ---).
- Calculate — press the Calculate button to see the result instantly above.
Formula
PDF.js getDocument → iterate pages → getTextContent → join with separator.
Examples
Example
Frequently Asked Questions
- Does it work on scanned PDFs?
- No — only PDFs with selectable text layers. For scanned docs, use an OCR tool first.
- Is formatting preserved?
- Only plain text is extracted. Layout, fonts, and images are not preserved.
- Is there a page limit?
- Tested up to 200 pages. Very large PDFs may hit browser memory limits.