How to OCR a PDF and Extract Text from a Scan

By FileConvertLab

Published: | Updated:

Extract text from scanned PDF using OCR
OCR converts scanned pages into searchable, editable text

To extract text from a scanned PDF, run it through OCR: upload the file to OCR PDF to Word for an editable document, to OCR PDF to TXT for plain text, or to OCR PDF to searchable PDF to keep the pages as they look and make them searchable. Pick the document language, wait for the job to finish, download. The whole thing takes a minute for a short document and needs no software.

First: Is Your PDF Actually Scanned?

Open the PDF and try to select a sentence. If the text highlights word by word and you can copy it, the PDF already contains text — you don't need OCR. Use a regular PDF to Word converter instead: it keeps the original characters exactly, while OCR would redraw each page as a picture and read it again.

If the selection draws a box around the whole page, or nothing happens, the page is an image. That's a scan, and OCR is the way to get the words out.

How to OCR a PDF: Step by Step

  1. Open the OCR tool for the output you need (see the next section)
  2. Choose the document language in the Document language menu — there are 29, including German, French, Spanish, Polish, Russian, Greek, Arabic, Hindi, Japanese, Korean and Chinese. On Automatic, the script on each page is recognised and the matching model reads it
  3. Upload the scanned PDF. You can select several PDFs at once; they're processed one after another and you can download all results as a ZIP
  4. Wait for the job. The file goes to our servers over HTTPS and every page is read there; longer documents show an estimated time
  5. Download the Word file, text file or searchable PDF

Nothing runs on your computer, so it works the same on a laptop, a Chromebook or a phone.

Which Output Should You Choose?

You want to…UseYou get
Edit the text, reuse paragraphsOCR PDF to WordDOCX with paragraphs, headings, lists and simple tables
Paste the text somewhere elseOCR PDF to TXTA .txt file, one line per line of text, a marker between pages
Copy a few lines right awayOCR PDF to textThe text on the page with a Copy button (one file)
Keep the scan but search and copy itOCR PDF to searchable PDFYour pages as they were, plus an invisible text layer

Not sure? Our comparison of OCR output formats goes through the trade-offs.

Extract Text from a Scanned PDF to Word

Word is the choice when you'll rewrite or reuse the content. The DOCX keeps the structure of the page: each printed line as a paragraph, larger lines as Word headings, bulleted and numbered lists as list styles, and columns of aligned text rebuilt as tables. Each page of the scan becomes its own section.

Photos, logos, stamps and charts come across as pictures cropped from the scan, not as editable objects. Fonts are Word's defaults, not the ones in the scan.

Clean Up the DOCX in Five Minutes

  1. Apply one body style. Select all body text and set the Normal style (or your own) so the whole document looks consistent
  2. Join broken lines. OCR output puts each line in its own paragraph. Select the paragraph and, with Find and Replace limited to the selection, replace ^p with a space
  3. Check the headings. Lines that were printed larger become headings; demote any that aren't
  4. Look over the tables. Tables with merged cells or wrapped text may need a column merged or split
  5. Proofread names, numbers and dates against the scan — those are the words a spell checker won't catch

For a closer look at what to expect from a scanned PDF in Word, see scanned PDF to Word with OCR.

Extract Text from a Scanned PDF as Plain Text

If the words are going into an email, a database, a translation tool or a script, skip Word. OCR PDF to TXT gives you a UTF-8 text file with one line of the scan per line of text and a "Page Break" marker between pages, so you can still tell where each page ended. The language menu is there too.

For a one-off quote, OCR PDF to text shows the recognised text on the page with a Copy button — handy when you don't want another file in your downloads. It takes one file at a time and has the same language menu.

Make a Scanned PDF Searchable Instead

Sometimes you don't want the text out of the PDF — you want Ctrl+F and copy to work in it. OCR PDF to searchable PDF keeps every page image exactly as scanned and places an invisible text layer over the lines. The document looks the same; search, select and copy now work. It's the best format for archiving contracts, statements and records.

Things to Know Before You OCR a PDF

  • Every page is read again, even if some already have text. In a mixed PDF — a typed report with a few scanned pages — the typed pages go through OCR too. If only a couple of pages are scans, you may prefer to split them out with split PDF and OCR just those
  • Sideways, upside-down and slightly tilted pages are turned upright before they're read, so a scan fed in the wrong way round still comes out in reading order
  • Pick the language if you know it. A language picked in the menu applies to every page; on Automatic each page is checked on its own, so a PDF with an English cover and Russian pages reads without splitting. For traditional characters, choose Chinese (Traditional)
  • Handwriting isn't what the OCR is built for — neat print sometimes comes through, cursive mostly doesn't
  • Limits: 100 MB per file and up to 20 pages per PDF as a guest (100 on a free account); Premium raises this to 500 MB and 500 pages. For long documents, see how to OCR a multi-page PDF

If you want to know what happens to the file between upload and download — rendering, line detection, reading order — read how online OCR works.

How to OCR a PDF on iPhone or Android

The same tools work in a mobile browser: open the page, pick the language, tap to upload the PDF from Files or Google Drive, and download the result. Editing a DOCX on a phone is fiddly, so for mobile, the searchable PDF or TXT output is often more practical. Our guide to OCR PDF to Word on mobile covers the phone-specific steps.

Summary

Check whether the PDF is really a scan, choose the output — Word to edit, TXT to reuse, searchable PDF to archive — set the document language, and upload. For most people who need to extract text from a scanned PDF, OCR PDF to Word followed by a five-minute style clean-up is the fastest route to a usable document.

Related Tools

Frequently Asked Questions

How do I extract text from a scanned PDF?

Upload the PDF to an OCR tool, choose the document language and download the result: a Word file to edit, a TXT file to paste elsewhere, or a searchable PDF that keeps the original look. The OCR runs on our servers, so nothing needs to be installed.

How can I tell if a PDF needs OCR?

Try to select a sentence in the PDF. If the text highlights word by word and you can copy it, the PDF already has text and a regular PDF to Word conversion is better. If the selection covers the whole page or nothing at all, the page is an image and needs OCR.

Can I edit the text after OCR?

Yes, if you choose Word output. The DOCX opens in Microsoft Word, Google Docs or LibreOffice with paragraphs, headings, lists, simple tables and the pictures from the page. A searchable PDF keeps the original page images, so you can search and copy the text but not edit it like a document.

How do I fix broken lines in OCR output?

In Word, select the affected paragraph and use Find and Replace: search for ^p (paragraph mark) and replace it with a space, because OCR puts each printed line in its own paragraph. Then apply one body style to the whole document so paragraphs look consistent.

Which languages can the OCR read in a PDF?

The PDF to Word, PDF to TXT and PDF to searchable PDF tools have a document language menu with 29 languages, including the main European languages, Russian, Ukrainian, Greek, Arabic, Persian, Hindi, Japanese, Korean, Thai and Chinese. On the Automatic setting, the script on each page is recognised and the matching model reads it.

Are images from the scan kept in the Word file?

Yes, as pictures. Photos, logos, stamps and charts are cropped from the scan and placed in the document where they were on the page. They're images, so a chart can't be edited as a chart, and text inside it may also come out as separate lines.

Does OCR work with handwritten text?

Only to a limited degree. The OCR is built for printed text; neat block capitals sometimes come through, while cursive and quick notes usually don't produce usable text. Retyping or a dedicated handwriting recognition tool is the better route for handwritten pages.

What's the best format for archiving scanned documents?

A searchable PDF. It keeps each page exactly as scanned and adds an invisible text layer, so the archive looks like the originals while search and copy work.