How to use PDF to Text
- Click "Choose file" or drag a PDF onto the box.
- Leave the pages field on "all", or type a list such as 1, 3-5. Tick the box if you want a "Page N" line before each page.
- Click "Extract text". Progress shows how many pages are done.
- Copy the text or click "Download .txt".
Features
- Extracts the text layer of each page with pdf.js
- Choose all pages or a list such as 1, 3-5
- Optional "Page N" separators between pages
- Copy to the clipboard or download a UTF-8 .txt file, with a word count
- Runs in your browser with no sign-up and no daily limit
Supported formats and limits
- Maximum file size: 200 MB
- Up to 1 files at once
- Up to 500 pages
Examples
| Input | Result |
|---|---|
| article.pdf (2 pages of selectable text), all pages, separators on | text starting "--- Page 1 ---" followed by page 1, then "--- Page 2 ---" and page 2, saved as article.txt |
| report.pdf (30 pages), pages 5-6 | only the text of pages 5 and 6 |
Limitations
- Scanned PDFs are pictures of pages with no text to extract. Reading them needs OCR (optical character recognition), so use the OCR PDF tool instead. You will see a message here if no text is found.
- Layout is simplified: columns, tables and text boxes are read in the order stored in the file, which may not match the visual order.
- Text in images, charts and handwriting is not extracted.
- Password-protected PDFs can't be opened; unlock them first. PDFs up to 200 MB and 500 pages.
Learn more
Many PDFs store their words as a text layer that sits behind or alongside the drawn page. Extracting text simply reads that layer, which is why it is quick and exact for documents created by word processors, browsers or exports, and why it finds nothing in a scan.
A PDF does not store paragraphs the way a word processor does. It stores positioned pieces of text, so extraction has to guess where lines and paragraphs end. Simple single-column documents come out well; multi-column layouts, footnotes and tables may need tidying afterwards.
If you need the text of a scanned page, use the OCR PDF tool, which recognizes the letters in the page image. Once you have extracted text, you can count words with the word counter, or paste it into an editor to clean up line breaks.
Frequently asked questions
Why is the result empty?
The PDF probably contains scanned images instead of real text. You can test this by trying to select text in a PDF viewer: if you can't, the file needs OCR. Our OCR PDF tool reads scanned pages in your browser.
Are tables and columns preserved?
Not as a layout. The text is extracted line by line in the order the file stores it, so columns and table cells can be interleaved or reordered.
Can I extract text from only some pages?
Yes. Type a list such as 2-4, 9 in the pages field instead of "all".
Is my PDF uploaded?
No. pdf.js reads the file in your browser, and neither the file nor the text is sent anywhere.
Last reviewed: September 30, 2026