Extract Text from PDF
Runs in browserPull selectable text from a PDF and download it as a plain .txt file.
Drop your file here, or click to browse
Upload a PDF to extract text
Pulls the selectable text out of the PDF, page by page. Scanned PDFs made of images have no text layer, so they return little or nothing.
- 1
The PDF is opened locally
pdf.js reads the text layer of each page. Your file never leaves this tab, and nothing is sent to a server.
- 2
Text is put back in reading order
Pieces of text are grouped into lines by their position, sorted top to bottom, and joined with spaces only where there's a visible gap. Larger vertical gaps become blank lines between paragraphs.
- 3
Shown and downloadable
The text appears below with a copy button and can be downloaded as a .txt file. Scanned PDFs are images with no text layer, so they return nothing; that needs OCR.
More in PDF Tools
See all 25Flatten PDF
Flatten form fields and annotations into a non-editable PDF.
Headers & Footers
Add headers and footers to every page — left, centered, or right — with optional page numbers.
HTML to PDF
Convert HTML files or code to professional PDFs.
Images to PDF
Convert JPG, PNG images to PDF. Batch convert multiple images.