PDF

Extract Selectable Text from a PDF

Extract the selectable text of all or chosen PDF pages in your browser, with line breaks and page headings, then copy it or save it as a .txt file.

Runs locally in your browser

What it does

Extract Text from PDF reads the selectable text embedded in a PDF's pages with PDF.js, in your browser, and keeps the line breaks the PDF marks. Each page starts with a heading such as --- Page 2 ---. Choose pages or leave the field empty for all. The result appears on the page to copy and as a .txt file to download. Scanned pages without a text layer come out empty. Nothing is uploaded.

How to use it

  1. Choose one or more PDF files.
  2. If you only need some pages, fill in "Pages (empty = all)", for example 1-3, 5, then press "Extract text".
  3. Read the text under Results and press "Copy" to copy it or "Download" to save it as a .txt file.

Example

Input
meeting-notes.pdf (3 pages), pages left empty
Output
meeting-notes.txt, also shown on the page, with each page's text and line breaks under --- Page 1 ---, --- Page 2 --- and --- Page 3 ---

What happens to your file

  • Your file or text is processed by code running in this browser tab. It is not uploaded to any server.
  • The processing code is downloaded from this site with the page; nothing about your input is sent back.
  • The result is created on your device and saved only when you choose to download it.

Limits

  • Reads existing text layers only; scanned pages without embedded text come out empty.
  • Plain text only: layout, fonts and images are not kept.
  • Results larger than 1 MB of text are offered as a download only, not shown on the page.
  • Password-protected PDFs are refused until they are unlocked.

Questions

Does this work on scanned PDFs?

Not on its own. It reads text already embedded in the PDF; a scanned page without a text layer comes out empty under its heading. Use OCR Scanned PDF for image-based pages.

Is the text saved as a file?

Yes, as a .txt file named after the PDF, so report.pdf gives report.txt. Nothing downloads automatically: press "Download" to save it, or "Copy" to copy the text shown on the page.

Are line and page breaks kept?

Line breaks are kept where the PDF marks the end of a line. Pages are separated by a blank line and a heading such as --- Page 4 ---, which uses the page's number in the PDF.

Can I extract only some pages?

Yes. Enter pages or ranges in "Pages (empty = all)", such as 2-4 or 8- (page 8 to the end); they are extracted in the order you type them. A page that does not exist stops the job with a message.

Can I extract text from a password-protected PDF?

No. A password-protected PDF is refused with a message asking you to unlock it first. Use Unlock PDF, then extract text from the unlocked copy.

Next steps