Data Extraction

Extract Text From a Scanned PDF for Free: OCR, Then Copy or Save as TXT

A scan is a picture of a page. Here's how to get the words out of it, and what to check before you trust them.

Marcus Chen · July 11, 2026

Abstract cover of blue, yellow and orange squares with striped patterns, for a guide on how to extract text from a scanned PDF

To extract text from a scanned PDF, run it through OCR (optical character recognition) first, because a scan holds pictures of letters and no text at all. Once OCR has added a text layer, you can copy the words, search them, or save them as a plain TXT file.

That's why copy and paste gives you nothing on a scan, and why search finds no match. The steps below use two free tools, OCR PDF and PDF to TXT, and need no account.

Why You Can't Copy Text From a Scanned PDF

A scanner takes a photo of each page and wraps the photos in a PDF. The page looks like a document, but to your PDF reader it's one big image per page, with no characters behind it.

A PDF exported from Word or Google Docs is different: it stores real text, with fonts and positions. Copy works there, and you don't need OCR. Our guide on why you can't copy text from a PDF covers the other causes, like copy restrictions.

A quick test: try to select a single word in your viewer. If the whole page highlights as one block, or nothing highlights, it's a scan.

What OCR Does to a Scanned PDF

Optical character recognition finds the shapes of letters in an image and turns them into characters a computer can search and copy. Our OCR PDF tool runs the open source Tesseract engine on every page.

It renders each page at 300 dpi, reads it with Tesseract's English model and lays the recognized words over the scan as an invisible layer. The page still looks exactly like your scan, but now the words behind it can be selected. Our explainer on what OCR is goes into more detail.

How to Extract Text From a Scanned PDF for Free

  1. Open OCR PDF and click Choose Files, or drag your scan onto the page. Each file can be up to 25 MB.
  2. Click Run OCR and wait while every page is read.
  3. Download the searchable PDF.
  4. To copy a passage, open that PDF, select the text and copy it as usual.
  5. To get all the text as a file, upload the searchable PDF to PDF to TXT and click Convert to Text.
The pdf-file.com OCR PDF screen with a scanned PDF uploaded and ready to extract its text

We ran a 16.0 KB one-page scan through OCR PDF in November 2026. It came back as an 18.2 KB PDF of the same page size, with the recognized text added. There are no options to set.

The pdf-file.com OCR PDF results screen with the Download button, after the scan's text was recognized

Don't skip step 1 and go straight to PDF to TXT. That converter reads text stored in the PDF and doesn't run OCR, so on a raw scan it stops with a message that the PDF has no text layer.

The pdf-file.com PDF to TXT screen with a PDF uploaded, used to save the extracted text as a TXT file

How Accurate Is the Extracted Text?

On a clean, straight page, very. We ran the same 256-word page through OCR PDF in November 2026 (Chrome on a Mac) and checked the output word for word. It's one page generated by Ghostscript, so it's a rough guide:

ScanWords read correctly
300 dpi, straight256 of 256
200 dpi, straight256 of 256
150 dpi, straight253 of 256
300 dpi, turned 3 degrees clockwise91 of 256
300 dpi, turned 3 degrees counterclockwise202 of 256

The surprise was the tilt. Three degrees cost far more than dropping to 150 dpi, whichever way it leaned. Our OCR doesn't straighten pages, so deskew a crooked scan first.

How to Get Better Results From a Scan

Tesseract's own guide to improving the quality of the output says it works best at 300 dpi or more, with straight text lines and dark text on a light background. In practice:

  • Scan at 300 dpi if your scanner lets you choose. Our tool renders at 300 dpi anyway, but it can't add detail a blurry phone photo never had. To scan on an iPhone without an extra app, see our guide to scanning documents with Files or Notes.
  • Lay the page flat and straight. If it's already crooked, see our guide to straightening a skewed PDF before you run OCR.
  • Avoid shadows across the page and colored paper with faint print.

What OCR Can't Read Well

Handwriting is the weak spot. In our tests, a handwriting-style font in capitals gave 18 of 20 words, a script font 15 of 20, and notes scribbled in a margin just 1 of 5. Our page on OCR for handwritten notes shows what to expect.

Our OCR reads English only. Letters from other alphabets won't come out right, and in our test pages most words with accents came out wrong (1 of 15 right in Spanish, 0 of 16 in German). If your scan is in another language, read OCR for PDFs in more than one language first.

Tables also lose their shape. In a TXT file, rows become lines with spaces between the values, so check the columns before you paste them into a spreadsheet.

Does the Simple Word Route Work on a Scan?

Microsoft says it does on desktop Word, best when the document is mostly text. Its steps for a scanned document are File, then Open, pick the PDF, and click OK at the message that Word will convert it to an editable document.

The page doesn't mention OCR by name, and it warns that line and page breaks may fall in different places. Features in the web and mobile apps may differ.

We didn't run it, since we have no copy of Word in our test setup. If you've got desktop Word and want an editable document, it's worth trying first. Otherwise run OCR PDF, then PDF to Word.

Frequently Asked Questions about Extract Text From Scanned PDF

Is it really free to extract text from a scanned PDF?

Yes. OCR PDF and PDF to TXT are both free, need no account and add no watermark. Uploaded files are deleted within two hours.

Can I extract text from a scanned PDF in Word instead?

Desktop Word can: open the PDF with File, then Open, and click OK when it offers to convert it. Microsoft says this works best on documents that are mostly text, and page breaks may move.

Why does PDF to TXT say my PDF has no text layer?

A scan has none until OCR adds one. Run it through OCR PDF first, then convert the OCR copy to TXT.

Will OCR change how my scan looks?

No. Each page keeps its size and look. The recognized text sits invisibly on top, so search highlights the word on the picture itself.

Try it on your own file