Tech Seekers PDF logoTech Seekers PDF

Blog

How to Extract Text From a PDF

Published 2026-11-07 · Updated 2026-11-28 · By Tech Seekers

Copying a long PDF page by page is slow and easy to mess up. Pulling the whole text out at once gives you one searchable file, with one catch on scans.

A 20-page manual holds one clause you need to quote, and paging through the PDF to find it is slow work. Extracting the text turns the whole document into one searchable file, so you can search once and find every mention instead of flipping pages twenty times. That is the job: words out, formatting left behind.

The tool pulls the text out page by page into a plain .txt file. Each page gets a Page N heading, so the document order stays clear even after the formatting is gone. The result opens anywhere, from a notes app to a spreadsheet import, and it works on any PDF that has a real text layer. Files up to 50 MB are accepted.

Here is what that looks like on a real file. I built a 20-page user manual as a PDF. The extracted text ran steady from the first page to the last, and the text file is bigger than the PDF it came from, which surprises people. The PDF compresses its content streams, while plain text stores every character as it is, so the .txt file weighs more than the document it was pulled from.

The catch is the same one that limits every text tool: scanned pages have no text layer, so they come out empty. I ran a scanned A4 page through the same extraction and got zero characters back from the page itself. Not a few words, not garbled text. Zero. A scan is a photo of a page, and a photo holds no words to extract. If your PDF is a set of photos of pages, there is nothing to pull out, and no setting changes that. The tool does not do OCR. The PDF to Word guide reports 6 characters for the same kind of scanned page, but those 6 are the Page 1 heading the Word file adds, not words from the scan. The page itself gave zero characters in both tools. The site benchmark run BENCH-20261128-001 measured the same split on its scanned fixture: 7 characters from plain text, 6 from Word.

Mixed files show the same split page by page. I extracted a 3-page file with a text page, a full-page photo, and another text page. The photo page in the middle gave nothing, and the text pages on either side came out fine. A quick test before you extract is to try selecting a sentence in the PDF. If you cannot select it, extraction will come back empty for that page too.

Reading order is the other thing to check. I built a two-column page and extracted it. The left column came out fully before the right column started, which is the order a reader would want. But that order follows how the PDF was built, not how it looks. A PDF made by different software can interleave the columns line by line, so a sentence from the left column ends up next to a sentence from the right. Tables have the same problem: the rows can run together and the columns can lose their alignment. When order matters, read the extracted text against the PDF before you reuse it anywhere.

Four moves do the whole job. Step one, upload the PDF. Step two, extract. The tool reads each page in order and builds one text file with a Page N heading per page. Step three, download the .txt file and open it. Search for the term you need and check the page heading next to each match, so you can trace every quote back to its page. Step four, save the text file next to the original PDF with the same name, so the two stay together.

If the result comes back empty, check whether the PDF is scanned. Open it, try to select a sentence, and if nothing selects, the file has no text layer. The fix is not a different extraction setting. You need the original document, not a scan of it, or an OCR tool, which this one is not. If the result is garbled, check it against the PDF. Ligatures, special characters and unusual fonts can come out oddly, and a quote copied from garbled text stays wrong wherever it goes. If the tool refuses the file outright, it is probably password protected. Unlock your own file first with the Unlock PDF tool, then extract from the unlocked copy.

Layout, tables and images are not preserved, and that is by design. This is a words-only job. If you need the text in an editable document with its structure, the PDF to Word tool is the next step, and it has the same limit on scanned pages. If you need one page as a picture, convert that page to JPG instead. Pick the tool that matches the output you actually need, not the one with the closest name.

The Wikipedia page on plain text explains the format the result comes in. It is worth a look if you want to know why a text file and a Word file are different answers to the same question.