The fastest way to search on a Mac depends on what you're looking for

If you want to find a file by name, press Command + Space to open Spotlight Search, type the filename or part of it, and press Enter. If the file is on your Mac, it will appear in the results. This works for any document type — Word files, PDFs, Google Docs downloads, spreadsheets, anything stored locally.

If you want to search inside a document you already have open — to find a specific word or phrase within the text — press Command + F. A search box will appear at the top or side of the document. Type what you're looking for and the application will highlight every match on the current page or in the entire document, depending on the app.

The method you use matters because they solve different problems. Spotlight finds files. Command + F finds text within a file. Most people need both.

Key Takeaways

  • Use Spotlight Search (Command + Space) to find files by name anywhere on your Mac, including documents you haven't opened yet.
  • Use Command + F inside an open document to search for specific words or phrases within that file.
  • Spotlight can search inside some document types like PDFs and text files, but not all — Word documents and Google Docs usually require opening the file first.
  • If Spotlight is not finding files you know exist, check System Settings > Siri & Spotlight to confirm the file type is included in search.

Searching for files by name with Spotlight

Spotlight is the built-in search tool on every Mac. Press Command + Space anywhere on your desktop or in any application, and a search box will open in the center of your screen. Start typing the filename or any part of it — you do not need to type the full name or the file extension.

As you type, Spotlight shows results organized by category: files, folders, applications, contacts, and more. Documents appear under "Files" or sometimes under "Documents" depending on what type of file it is. Click the result to open it, or press Enter to open the top result.

Spotlight searches your entire Mac by default — the hard drive, external drives you have connected, and sometimes cloud storage like iCloud Drive if you have it turned on. It does not search inside files by default, only filenames and some metadata like the author or creation date.

Searching inside an open document with Command + F

When you have a document open — whether it is a PDF, Word file, Pages document, or web page — press Command + F to open the find function. A search box will appear, usually at the top right or top left of the window depending on the application.

Type the word or phrase you want to find. The application will highlight every instance of that text in the document and usually show you how many matches there are. Use the up and down arrows next to the search box to jump between matches one at a time. In some applications like Preview (for PDFs) or Safari (for web pages), you can also see what page or section each match is on.

Command + F works in almost every Mac application — web browsers, email clients, text editors, PDF readers, and most office software. The exact appearance of the search box changes between applications, but the keyboard shortcut is always the same.

When Spotlight searches inside documents

Spotlight can search the text inside some file types without you opening them first. It works well for PDFs, plain text files, and rich text files. It works less reliably for Microsoft Word documents (.docx files), Excel spreadsheets, and Google Docs that you have downloaded to your Mac.

If you want to search inside a Word document or spreadsheet using Spotlight, you may get results based on the filename or metadata, but not the actual text content. The most reliable method is to open the file first and then use Command + F to search within it.

You can check which file types Spotlight searches by going to System Settings > Siri & Spotlight and looking at the list of categories. If a file type is unchecked, Spotlight will not search it. You can toggle any category on or off depending on what you need.

Using Find and Replace to change text while searching

If you want to find text and change it at the same time, most applications offer a Find and Replace function. Press Command + Option + F in many Mac applications, or go to the Edit menu and select "Find and Replace." A larger search box will open with two fields: one for the text you want to find and one for the text you want to replace it with.

Type the original text in the first field and the replacement text in the second field. You can then choose to replace one instance at a time by clicking "Replace," or replace all instances at once by clicking "Replace All." Be careful with Replace All — it changes every match in the document without asking you to confirm each one.

Find and Replace works in text editors, word processors, and some other applications, but not in all of them. PDF readers and web browsers usually do not have this feature. If you do not see a Replace option when you open Find, the application does not support it.

Searching across multiple files at once

If you need to search for text across many documents at once — for example, finding a specific phrase in all your Word documents in a folder — Spotlight is not the right tool. Instead, open Finder, navigate to the folder containing your documents, and use the search box in the top right corner of the Finder window.

Type your search term in the Finder search box. By default, Finder searches filenames only, not content. To search inside files, click the "File Contents" option that appears below the search box, or look for a "Contents" checkbox in the search options. Finder will then search the text inside documents in that folder and show you which files contain your search term.

This method is slower than Spotlight for finding a single file, but it is more useful when you are trying to locate information across a collection of documents. You can also narrow the search by file type, date modified, or file size using the filter options in Finder.

Troubleshooting when Spotlight is not finding files

If you search for a file you know exists and Spotlight does not show it, the file type may be excluded from Spotlight indexing. Go to System Settings > Siri & Spotlight and scroll through the list of categories. Make sure the category for the file type you are looking for is checked. For example, if you are searching for a Word document, make sure "Documents" is checked.

Another reason Spotlight might not find a file is if the file is in a folder that Spotlight has been told to ignore. This sometimes happens with external drives, cloud storage folders, or folders you have specifically excluded. You can check which folders are excluded by going to System Settings > Siri & Spotlight > Siri & Spotlight and looking at the "Exclude" section at the bottom.

If a file is very new, Spotlight may not have indexed it yet. Spotlight runs in the background and usually indexes new files within a few minutes, but on older Macs or when the system is busy, it can take longer. You can force Spotlight to re-index your entire Mac by going to System Settings > Siri & Spotlight and clicking the minus button next to your hard drive, then clicking the plus button to add it back.

Frequently Asked Questions

Can I search for text inside a PDF on my Mac without opening it?

Spotlight can search PDFs, but the results are not always reliable. The safest method is to open the PDF in Preview (the default Mac PDF reader) and use Command + F to search within it. Preview will show you which page each match appears on and let you jump between results.

What is the difference between Spotlight and Finder search?

Spotlight is faster for finding files by name and appears instantly from anywhere on your Mac. Finder search is better when you want to search inside documents or narrow results by file type, date, or location. Spotlight searches your entire Mac; Finder search can be limited to a specific folder.

Why does Command + F not work in some applications?

Some older applications and specialized software do not support the standard Command + F shortcut. Check the application's Edit menu to see if there is a Find option listed there. If not, the application may not have a built-in search function.

Can I search for text in Google Docs on my Mac?

If you have Google Docs open in a web browser, use Command + F to search within the document — this works the same as searching any web page. If you have downloaded a Google Doc as a Word file or PDF, open the file first and then use Command + F to search inside it.

How do I search for files modified on a specific date?

Use Finder search instead of Spotlight. Open Finder, click in the search box, and look for filter options. You can usually filter by "Modified Date" and choose a date range. This is more precise than Spotlight, which shows modification date but does not filter by it easily.