How to make a scanned PDF searchable on a Mac

A scanned PDF is a stack of photos of pages. You can read the words, but the file holds no text, so Command-F finds nothing, you can’t copy a paragraph, and Spotlight can’t find the document by what it says. To fix that, the text has to be recognised (this is called OCR) and saved into the PDF as an invisible layer under each page. The page looks exactly the same afterwards, but now it can be searched.

First, check whether the PDF needs it

Not every PDF that looks scanned is one. Many scanners and phone apps already recognise the text when they make the file.

  1. Open the PDF in Preview.
  2. Press Command-F and search for a word you can see on the first page.
  3. If Preview finds and highlights it, the PDF already has text and you are done.

If nothing is found, try to select a line with the pointer. On a scan with no text, the pointer either draws a box over the picture or, on recent versions of macOS, Live Text picks out the words for you. Live Text is useful, but read the next section before you rely on it.

Why Live Text in Preview is not enough

Live Text lets you select and copy words from a picture of a page while it is on screen. It does not save that text into the PDF. Close the file and the text is gone. Search inside the document still finds nothing, Spotlight still can’t find the file by its contents, and the person you send it to gets the same picture-only PDF you started with.

For copying one sentence out of a scanned letter, Live Text is the quickest way. For a document you want to search later, or a file you have to upload somewhere that reads its text, you need a copy with a real text layer.

Make a searchable copy with Office Alternative

Office Alternative can do this on your Mac. The text is recognised by macOS itself, so the document is never uploaded.

  1. Open the scanned PDF in Office Alternative.
  2. Choose PDF > Make Searchable Copy.
  3. Choose a name and a folder. It suggests the original name with “(searchable)” at the end.
  4. Wait while it reads the pages. A small window shows the progress page by page, with a Cancel button if you change your mind.

When it finishes, the new PDF opens. Press Command-F to check that a word on the page is found. The file you started with is not changed.

A few details that matter in practice:

  • Only pages without text are read. If a PDF mixes typed pages with scanned ones, such as a typed report with a signed page scanned at the end, the typed pages are left as they are and only the scanned ones get a text layer.
  • The pages keep their exact look. Nothing is redrawn, cleaned up or straightened. The text sits invisibly on top, so selecting it highlights the words where they appear.
  • The command is offered only when there is something to read. If the menu item is dimmed, the PDF already has text on every page, or the pages are blank.
  • If no words are found at all, for example on a scan of a photo or a drawing, no copy is made and it tells you why.

Encrypted PDFs are refused. A copy with a new text layer would be an unprotected version of a protected file. If you own the document, ask for or make an unprotected version first.

What OCR gets wrong

Text recognition is good on clean printed pages and much less reliable on everything else. Expect mistakes with:

  • handwriting, especially joined-up writing
  • faint photocopies, coloured paper and stamps over text
  • pages photographed at an angle or with a shadow across them
  • small print below about 8 points, and tables with thin lines between the cells

Because the layer is invisible, its mistakes are invisible too. A receipt number recognised as “22O9” instead of “2209” looks perfect on the page but won’t come up when you search for 2209. If you will depend on finding a specific number or name, search for it once in the new copy and check that it is found.

You get far better results from a better scan than from any OCR setting. Scan at 300 dpi, in greyscale rather than colour for ordinary documents, with the page flat and straight. On an iPhone, the document scanner in the Notes app or the Files app crops and flattens the page for you, which helps a lot.

Other ways to do it on a Mac

  • Your scanner’s own software. Many scanners have an option named something like “searchable PDF” or “OCR”. If you scan a lot, turn it on there and every new file is searchable from the start.
  • Adobe Acrobat Pro. It has a full OCR tool with options to straighten and clean up pages. It works well and costs a monthly subscription.
  • OCRmyPDF. A free command-line tool. If you use Homebrew, install it with brew install ocrmypdf and run ocrmypdf scan.pdf scan-searchable.pdf in Terminal. It is very capable and suits people who are comfortable with Terminal.
  • Websites that OCR a PDF. They work, but the document is uploaded to someone else’s server. Avoid them for contracts, bank statements, medical letters and anything with an ID number on it.

After it is searchable

A searchable PDF behaves like any other text PDF. Spotlight indexes its contents, so you can find “the lease with the parking clause” by typing a word from it. You can copy text out of it into a document or an email. And upload forms that read the text, which many job and visa portals do, can finally read it.

If the scan came as several files, join them first and then make one searchable copy: see how to combine or split PDF files on a Mac. If it is a form you have to send back, how to fill in and sign a PDF on a Mac covers the rest.

Office Alternative needs macOS 14 Sonoma or later and costs $20 once to edit files. Without buying it you can still open, read, print and export them to PDF. Your PDFs stay on your Mac. See what Office Alternative does with PDFs for the rest of its PDF tools.