PDF Extractor

This PDF extractor has two jobs: read the text out of a PDF page by page, or cut chosen pages such as 1-3,5 into a new PDF.

PDF file

Drop a file here, paste from the clipboard, or choose one

PDF, processed in this tab

Extracted result
Runs locally in your browser

About the PDF Extractor

In Text mode the tool reads the PDF's own text layer with pdf.js and rebuilds lines and paragraphs from the position of each piece of text. The result is shown in the pane, with a marker like ----- Page 3 ----- before each page if you want one, and the Copy and Download buttons give you the full text as a .txt file. Because the text comes from the file rather than from pictures of letters, a scanned PDF has none: you will get a message saying no text layer was found. Reading a scan needs OCR, and this tool does not do OCR.

In Pages mode, type the pages to keep, for example 1-3,5 or 4-, and the tool copies exactly those pages, in the order you wrote them, into a new PDF. Switch the output to one PDF per page to get a ZIP of single-page files. The pages keep their size, text and images; bookmarks and form fields do not come along. Thumbnails of the new pages are shown so you can check before you download. Extracting embedded pictures is not offered, because it cannot be done reliably for every file.

Both modes run in your browser; the PDF is not uploaded. Files up to 150 MB open. A password protected PDF is refused with a pointer to Unlock PDF, and a file with an owner password or usage restrictions can be read for text but not copied page by page until it is unlocked. To turn pages into pictures use PDF Converter, and to build a PDF from images use PDF Maker. For counting what you extracted, Word Counter is the natural next step.

How to use

  1. Drop a PDF on the pane above, or choose one with the file picker.
  2. Pick Text or Pages into a new PDF. For pages, type a range such as 1-3,5 in Pages; for text, leave it empty to read the whole file.
  3. Press Extract. Text appears in the pane; pages appear as thumbnails of the new PDF.
  4. Use Copy or Download to take the text (.txt) or the new PDF (.pdf, or .zip for one file per page).

Common questions

Does it work on scanned PDFs?
Not for text. A scan is a picture of a page and has no characters in it, so the tool reports that no text layer was found. It does not do OCR. Pages mode still works on a scan, because it only copies pages.
Is my file uploaded?
No. pdf.js and pdf-lib both run inside this tab, and the PDF never leaves your device.
Why is the text order odd on some pages?
The text is read in the order the PDF stores it. Multi-column layouts, tables and sidebars can come out interleaved, because the file has no notion of columns. Extracting one page at a time with Pages usually makes this easier to fix.
What stays in the pages I extract?
Page size, text, fonts and images are copied unchanged. Bookmarks, the document outline and form fields are not carried over to the new file.
What is the size limit?
Files up to 150 MB open. A 100-page text document was read in about a second and a half here; very large scanned files take longer and use more memory, so extract a range if the tab slows down.