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

  1. Include Page Numbers — enter the value.
  2. Page Separator — enter the value.
  3. Custom Separator — enter the value (e.g. --- PAGE BREAK ---).
  4. Calculate — press the Calculate button to see the result instantly above.

Formula

PDF.js getDocument → iterate pages → getTextContent → join with separator.

Examples

Example

includePageNumbers:true
separator:formfeed
customSeparator:
Result: Page 1 text... Page 2 text... ...

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.