How to search for files on a Mac
Updated
Spotlight is quickest for opening something by name. Finder search is better when you need filters such as type, date and size. Terminal can answer exact questions, and FileSift adds plain-English search that turns your words into filters you can see and change.
Pick the right tool
| You remember | Use |
|---|---|
| Part of the name | Spotlight |
| The type and roughly when | Finder search with rules |
| A phrase inside the document | Spotlight or Finder search |
| A search you run every week | A Smart Folder |
| Where it was downloaded from | Get Info, or FileSift's download grouping |
| Only what it was about | Plain-English search |
Spotlight
Press Command-Space, type part of a name or a phrase from inside the document, and press Return to open the top result. Press Command-Return to reveal it in Finder instead.
- Put words in quotes to match an exact phrase.
- Add
kind:pdf,kind:imageorkind:folderto limit the type. - Spotlight matches the start of words, so invo finds invoice but voice does not.
Finder search with filters
- In Finder, click the search box or press Command-F.
- Type a word. A menu appears under the box; choose the Filenames contains option to match only names, not contents.
- Choose Search This Mac or the current folder in the bar under the toolbar.
- Click the plus button to add a rule such as Kind, Last opened date or Created date.
- Choose Other in a rule menu to add File Size and many other attributes.
Click Save to keep a search as a Smart Folder in the sidebar. The Smart Folders guide has ready-made recipes.
Exact answers in Terminal
The mdfind command uses the same index as Spotlight and only reads it.
mdfind -name budgetlists every file with budget in its name.mdfind -onlyin ~/Documents taxsearches one folder and its subfolders.
This is handy when you want a full list you can copy, rather than the short list Spotlight shows.
Plain-English search in FileSift
Type what you mean, such as pdfs from last week, videos over 2 GB or screenshots this month. FileSift shows how it understood the question as filters, so you can adjust them instead of guessing which words it picked up. It can also search the text inside screenshots and scans, using Apple's on-device text recognition, and it groups downloads by where they came from.
When nothing comes up
Finder search and Spotlight share one index, so if both miss a file, the folder may be excluded or the index may still be catching up. Start with the folder privacy list, then see what to do when Spotlight cannot find a file. If you cannot remember the name at all, search by what you do remember.
Common questions
Why does Spotlight miss my file?
Spotlight skips folders listed under Search Privacy in System Settings, and it can lag behind after a large move. Check that the folder is not excluded.
Can I save a Finder search?
Yes. Click Save in the search bar and it becomes a Smart Folder you can reopen any time.
Does Finder search look inside files?
Yes, for documents Spotlight can read, such as PDFs and text files. Choose the Filenames option to match names only.
How do I search only one folder?
Open the folder in Finder, press Command-F and click the folder's name in the bar under the toolbar instead of This Mac.
Related guides
- How to find a file on a Mac when you forgot its name
- What to do when Spotlight cannot find a file on your Mac
- How to use Smart Folders on a Mac
- Spotlight vs FileSift: which to use for finding files
- How to find and delete duplicate files on a Mac
More in How-to guides, or see all guides.