Filespry

Extract text from a PDF

Get the text out of a PDF so you can copy it, search it or reuse it. It runs in your browser and your file is not uploaded. It reads real text only: scanned PDFs are not supported because there is no OCR.

Your files are processed in your browser and are not uploaded.

How to use it

  1. Choose your PDF, or drag it onto the box.
  2. Tick the options you want: remove repeated headers, join split words, mark page numbers.
  3. Press Extract text and wait while the pages are read.
  4. Copy the text or download it as a .txt file. You can edit it first in the box.

What to expect when extracting text from a PDF

Many PDFs store their text as real characters with a position on the page. Extraction reads those characters and rebuilds lines and paragraphs from their spacing. That works well for reports, articles and contracts exported from a word processor, and badly for scans, which hold only pictures.

Because a PDF has no true paragraph structure, the tool guesses. It joins lines that sit close together and starts a new paragraph where there is a larger gap. Bullet lists are kept as separate lines. Columns and tables are the weak spot, since a page is read line by line across the whole width.

After extracting, skim the result for odd breaks and fix them in the box, which also shows the word and character count. If the file has headers or page numbers on every page, leave the cleaning option on. For a scan, use a program with OCR instead, then bring the recognized PDF back here if you wish.

Frequently asked questions

Why do I get a message saying there is no text?

The PDF is probably a scan or a set of photographed pages. Those contain pictures of letters, not real text, and this tool has no OCR (text recognition), so there is nothing to extract. A PDF exported from a word processor normally works.

Why is the order of my text mixed up?

The tool reads text in the order it is laid out on the page. With several columns, tables, sidebars or text boxes, lines from different areas can end up interleaved. Short single-column documents come out best. You can fix the rest in the editable box.

What do the cleaning options do?

Removing repeated headers and footers deletes lines that appear at the top or bottom of at least half of the pages, such as titles and page numbers. Joining split words glues a word cut by a hyphen at a line end. Marking pages adds a label before each page.

Is my PDF uploaded to a server?

No. The text is extracted in your browser and your file never leaves your device. Password-protected PDFs cannot be opened here, and very long documents depend on your device memory.

Related tools

  • PDF to JPG

    Save PDF pages as JPG or PNG

    New
  • Word counter

    Count words, characters, sentences and reading time

  • Edit PDF

    Add text, images, shapes and signatures to a PDF

    New
  • Split PDF

    Cut a PDF by page ranges or into single pages