# How to search for text inside PDF files on a Mac

Source: https://trygander.app/search-inside-pdf-files-mac  
Updated: 2026-11-13

macOS indexes the text inside your PDFs, so you can find a document by a phrase in it. The catch is scanned PDFs, which are pictures of pages and need one extra step.

## Search every PDF at once

1. Open a Finder window and press <kbd>⌘</kbd><kbd>F</kbd>.
2. Choose **This Mac**, or stay in a folder to search only there.
3. Type `kind:pdf` followed by your words, for example `kind:pdf "termination clause"`.

Quotes keep the words together as a phrase. Without them, Finder finds PDFs containing each word anywhere.

Spotlight does the same from <kbd>⌘</kbd><kbd>Space</kbd>, but shows only the top few matches.

## Search within one PDF

1. Open the PDF in Preview.
2. Press <kbd>⌘</kbd><kbd>F</kbd> and type.
3. Preview highlights every match and lists the pages in the sidebar. Press <kbd>⌘</kbd><kbd>G</kbd> to jump to the next one.

If you open several PDFs in one Preview window, the search runs across all of them.

## Scanned PDFs

A scanned PDF is a set of images. It has no text for the index to read, so a phrase search may not find it.

- **Check first:** open it in Preview and try to select a word. On recent versions of macOS, Live Text lets you select text on scanned pages, which means you can read and copy it even though the file itself holds no text.
- **To make it searchable for good,** the PDF needs a text layer added by an OCR tool. Some scanner apps do this when they save. Look for a setting called "searchable PDF".

## From Terminal

This lists PDFs in Documents whose contents mention "invoice":

```
mdfind -onlyin ~/Documents "kMDItemContentType == 'com.adobe.pdf' && kMDItemTextContent == '*invoice*'c"
```

## The same search, with thumbnails

[Gander](https://trygander.app/) uses the same index, so it finds words inside PDFs too, and you type the whole request in one go: `pdfs with termination clause` or `pdfs with invoice from last month`. Each match is shown as a thumbnail of its first page, which is often enough to recognise it.

It also helps when you cannot recall a phrase at all, only that the PDF arrived last week from an email: `pdfs from gmail last week`.

Scanned PDFs are the same story as above. If the file has no text layer, the index has nothing to match.

## FAQ

### Why can't my Mac find text that I know is in a PDF?

The PDF is probably a scan without a text layer, or it sits in a folder Spotlight does not index. Try selecting text in Preview to see which.

### Can I search PDFs in a single folder only?

Yes. Open that folder in Finder, press Command-F, and click the folder's name next to "This Mac" at the top of the window.

### Does Preview search handwritten notes?

Only where Live Text can read the handwriting, and it will not be as reliable as printed text.

## Keep reading

- [Find files by type](https://trygander.app/find-files-by-type-mac): Every PDF, image or video on your Mac: Finder's Kind rule, typed keywords, extensions and Terminal.
- [Copy text from an image](https://trygander.app/copy-text-from-image-mac): Live Text in Preview, Quick Look, Photos and Safari, and copying from many images at once.
- [Find a lost file](https://trygander.app/find-lost-file-mac): A checklist for a file that has vanished: recents, contents search, iCloud, Trash, Time Machine.
