TL;DR: A digital PDF gives up its text in seconds, while a scan needs OCR first. Use the selection test, try to highlight a sentence, to tell which kind you have, then clean up the text and keep the original next to it.
In this guide
Extracting text from a PDF sounds like one job, but it is two, and the kind of file you have decides which one you are doing. A digital PDF, made by exporting from Word or another program, holds real text inside the file. Extracting it means lifting that text out, which is quick and exact. A scanned PDF holds pictures of pages, and there is no text inside to lift out, so extracting it means reading the pictures with OCR first, which is slower and less exact.
Mixing the two up is the most common reason people get frustrated. Running a scan through a text extractor returns nothing, because there is no text to return, and running a digital PDF through OCR adds errors to text that was already perfect. The test takes five seconds: open the file and try to select a sentence with your mouse. If the words light up and paste cleanly elsewhere, the file is digital. If nothing selects, it is a scan.
For a digital PDF, PDF to Text pulls the text out in your browser, and the file never leaves your device. Drop the PDF onto the page, run the extraction, and copy the result or download it as a text file. The whole job takes seconds for a short document, and the text comes out exactly as it sits in the file, including the words, the numbers, and the punctuation.
Extract Text From PDF covers the same job with a guide aimed at getting text out of a file, and it links through to the same kind of local processing. Use either page, since both run the same way, with no account and no upload. The result is plain text, so it arrives without the fonts, colours, or layout of the original page. That suits most uses, such as quoting a passage, searching a long report, or pasting content into a document you are writing, and you can rebuild the formatting in your word processor afterwards.
Usually the text layer is damaged, or columns, ligatures, or tables paste out of order. Sometimes a digital PDF looks fine on screen and still gives you broken text when you copy it. The usual cause is a damaged text layer, where the file holds the words but stores them in the wrong order or with the wrong characters attached. Columns are the classic case: a two column article can paste as lines that jump from the left column to the right one halfway through a sentence, because the file stored the text by position rather than by reading order.
Ligatures cause a quieter problem. Some fonts join pairs of letters, such as f and i, into a single shape, and a text layer that stores that shape as one character can paste as a missing letter or a strange symbol. Tables paste badly for a similar reason, since the file stores the words without storing the grid that held them, so a row of figures can come out as a single run of numbers with no gaps. When the copied text looks wrong in this way, OCR is often the better route, even though the file is digital, because OCR reads the page as it appears and rebuilds the words in reading order.
A scan needs OCR before there is any text to extract. OCR PDF reads each page of the scan and works out which letters the pictures show, returning text you can copy, search, and edit. Free OCR PDF reaches the same tool from a different page, and OCR PDF to Text is the landing page for turning a scanned PDF into plain text. Transcribe PDF does the same for printed pages, in 17 languages, with the result downloadable as a text file.
The quality of the result follows the quality of the scan. A clean page of printed text scanned at 300 DPI comes out close to perfect, with only the odd character wrong. A crooked photo taken in dim light comes out with mistakes on most lines, since OCR compares shapes on the page with the shapes of letters it knows, and blurry shapes could be several different letters. OCR reads printed text only. It does not read handwriting reliably, and it cannot turn speech or audio into text, so a handwritten note or a recording needs a different kind of tool entirely.
Remove repeated headers and footers, stray page numbers, and line breaks that split sentences, then proofread, especially numbers. Extracted text usually needs a short cleanup before it is ready to use. Page headers and footers repeat on every page, page numbers sit in the middle of sentences, and line breaks from the original layout split sentences that should run together. Removing those takes a few minutes with find and replace in your word processor, and it is worth doing before you quote from the text or send it to anyone.
Proofreading matters more for OCR text than for text lifted from a digital PDF. Search for a few words you know appear in the document and confirm they came out right, then skim the first page line by line. Numbers deserve a second look in particular, since a misread digit changes a date, an amount, or a reference number without looking wrong. A 3 read as an 8, or a 1 read as a 7, is easy to miss if you are skimming, and it is the kind of error that causes real trouble in a quoted figure.
Because the PDF is the record of what the page actually said, and the text file is a working copy that may hold a mistake. Keep the original PDF alongside the text file you extracted. The PDF is the record of what the page actually said, and the extracted text is a working copy that may still hold a mistake you have not spotted. If someone questions a figure or a quotation later, the original settles it in seconds, while the text file alone cannot prove anything.
This also applies to scans you ran through OCR. The scan is the only proof of the original wording, and the OCR text is an interpretation of it, so file them together with matching names. If you split the document first to extract text from only a few pages, keep the full original as well, since the split file is a working copy for one purpose and the original is the complete record you may need again.
Free, fast, and completely in-browser.