PDF Text Extractor
Pull the full text layer out of a PDF page by page, with page markers, and copy or download it as a .txt file — all parsed on your device.
Reviewed 17 November 2026 · Free · No account needed
How to use
- Choose the PDF to extract from.
- Press Extract — each page's text is read with pdf.js, in reading order.
- Copy the result or download it as a .txt file.
Example
Input: thesis-ch1.pdf (12 pages)
Output: text with --- Page 1 --- … --- Page 12 --- markers
How it works
Text is extracted page by page with pdf.js, which reads the text layer of the document. Scanned image-only PDFs have no text layer and return nothing.
pdf.js reads each page's text content — positioned text fragments, not lines. Fragments are grouped by their y-coordinate into lines, joined left-to-right, ordered top-to-bottom, and emitted under '--- Page n ---' markers.
A 12-page thesis-ch1.pdf → one text block with --- Page 1 --- through --- Page 12 --- markers, downloadable as thesis-ch1-text.txt.
Edge cases to know
- Pages without a text layer report '(no text layer on this page)' — no OCR runs here.
- Reading order is reconstructed from coordinates, so complex multi-column layouts can jumble.
- Extraction is text-only — images and vector drawings are skipped.
Limits & compatibility
- Scanned PDFs without a text layer produce empty output — no OCR runs here.
- Reading order is reconstructed from coordinates; complex multi-column layouts can jumble.
- Extraction is text-only — images and drawings are skipped.
Privacy
Text is extracted by pdf.js locally in your browser. Nothing is uploaded or logged.
Guides that use PDF Text Extractor
Related tools
Questions about PDF Text Extractor
How is the extracted text organised?
Page by page, in reading order, with markers between sections — the output shows --- Page 1 --- before the first page's text, and so on to the last. You can copy the result directly or download it as a .txt file.
Does it work on scanned PDFs?
No. A scanned PDF has no text layer — it is a picture of the page — so extraction produces empty output, and no OCR runs here. Use the dedicated OCR tool for scanned documents; this tool is for PDFs that already contain real text.
Why does my multi-column PDF come out jumbled?
Reading order is reconstructed from the text coordinates on each page, and complex multi-column layouts can confuse that reconstruction, interleaving the columns. Simple single-column documents extract cleanly; heavily designed layouts may need light tidying afterwards. Images and drawings are skipped entirely — only text comes out.
Does extracting text upload my document?
No. The text layer is read by pdf.js locally in your browser, and nothing is uploaded, stored or logged. The document never leaves your device, so extracting from confidential contracts or reports is safe to do without a second thought.