About the PDF Text Extractor
Selecting text in a PDF viewer page by page is tedious and often grabs headers or misses lines. The PDF Text Extractor reads the text layer of the whole document at once and gives it back as plain text you can copy or download.
How it works
PDF files store text as positioned runs of characters rather than as paragraphs. The tool opens the file with PDF.js and asks each page for its text content, a list of these runs in the order they appear in the file.
The runs are joined in order, with a line break wherever PDF.js marks the end of a line, and pages are separated by a blank line. Columns and tables are flattened into running text. Text that exists only as part of an image, as in a scanned page, has no text layer and cannot be extracted; the tool says so when a file has no text at all.
How to use
- 1
Click the upload area and choose a PDF.
- 2
Wait while "Extracting text..." processes every page.
- 3
Review the text in the Extracted text box.
- 4
Click Copy text, or Download .txt to save it; use Remove to start with another file.
Worked examples
Quoting from a report
You need several paragraphs from a 20-page annual-report.pdf for an article.
A scanned document
You upload a contract that was scanned on a copier.
Run an OCR tool on the file first, then extract the text.
Frequently asked questions
Will this work on a scanned PDF that's just an image?+
No. It extracts text that is already embedded in the PDF. A scanned document saved as images has no text layer, so it needs OCR first.
Does the extracted text preserve the original formatting?+
Line breaks are kept and pages are separated by a blank line, but columns, tables, fonts and spacing are not.
How are pages separated in the output?+
Each page's text is followed by a blank line, so you can see where one page ends and the next begins.
Is my PDF uploaded to a server?+
No. The text is extracted in your browser. The only network request is for the PDF.js worker script from a public CDN.
Why does some of the text look garbled?+
Some PDFs use custom font encodings or store text in an unusual order. The page looks right on screen, but the underlying characters don't map cleanly to readable text.