Exclude Files From Spotlight Search on Mac
In this article
Spotlight is macOS's built-in search, indexing your entire drive so you can find files, emails, and apps in seconds. But sometimes it surfaces results you'd rather not see—private documents, backup folders, or system caches. This guide shows you how to exclude specific files and folders from Spotlight search, so those items never appear in your results. You only need your Mac's System Settings (or System Preferences on older versions) and a few minutes.
What You'll Need
- A Mac running macOS Ventura or later (for System Settings) or an earlier version (for System Preferences).
- Administrator access to your Mac (you'll need to enter your password to make changes).
- The exact path of the file or folder you want to exclude (you can find it by right-clicking the item and selecting "Get Info").
Step-by-Step
- Open Spotlight's settings. Click the Apple menu () in the top-left corner of your screen, then select System Settings (on macOS Ventura and later) or System Preferences (on macOS Monterey and earlier).
- Navigate to Spotlight settings. In System Settings, type "Spotlight" in the search field in the top-left, or scroll down and click Spotlight in the sidebar. In System Preferences, click Spotlight (usually in the top row).
- Open the Privacy tab. In the Spotlight settings window, click the Privacy tab. This tab lists all the locations that Spotlight is currently prevented from indexing.
- Add a folder or file to the exclusion list. Click the + (plus) button at the bottom of the list. A file picker window will appear, allowing you to navigate to the item you want to exclude. Select the file or folder and click Choose (or Open).
- Confirm the addition. The item will appear in the Privacy list. You can add multiple items by repeating step 4. If you want to remove an item from the exclusion list later, select it and click the – (minus) button.
- Wait for Spotlight to re-index. After adding an item, Spotlight will automatically stop indexing that location. However, existing search results may still show the item until the index is updated. To force a re-index, you can either wait a few minutes or restart your Mac. For a more immediate refresh, you can remove the item from the Privacy list and re-add it, which triggers a re-index.
Common Mistakes
- Adding an entire drive instead of a folder. If you exclude your entire hard drive, Spotlight will stop working for everything. Only add specific folders or files.
- Expecting immediate results. Spotlight's index updates in the background. It can take a few minutes or even longer for large folders to be fully excluded from search results.
- Confusing Privacy with Search Results. The Privacy tab in Spotlight settings is specifically for excluding items from search. Other settings, like "Search Results" (in the same window), control which categories (e.g., Documents, Images) appear, not which files.
- Using the wrong path. If you're trying to exclude a file that's inside a folder you've already excluded, you don't need to add it separately. But if you add the file itself, make sure you select the correct file in the picker.
Tips
- Use the ~ (tilde) shortcut. In the file picker, you can press Cmd+Shift+G to open a "Go to Folder" dialog and type the exact path (e.g., ~/Documents/Private) to jump directly to it.
- Exclude entire folders for privacy. If you have a folder with sensitive documents, excluding it from Spotlight is a good privacy measure. But remember, this only hides it from Spotlight search—it doesn't encrypt or hide the folder from Finder.
- Consider using FileVault for stronger protection. If you're concerned about privacy, FileVault (full-disk encryption) is a more robust solution than simply excluding folders from Spotlight.
- Re-index after major changes. If you add or remove many exclusions, or if Spotlight seems to be acting oddly, you can rebuild the entire index. To do this, go to the Privacy tab, add your Macintosh HD (or main drive), then remove it. This forces Spotlight to re-index everything, which can take a while but often fixes issues.
Troubleshooting
Spotlight still shows excluded files. This is usually because the index hasn't updated yet. Wait a few minutes, or try restarting your Mac. If the problem persists, remove the item from the Privacy list and re-add it. If that doesn't work, rebuild the entire index as described in the Tips section.
I can't add a folder to the Privacy list. Make sure you have administrator privileges. If you're not an admin, you'll see a lock icon in the settings window—click it and enter an admin username and password. Also, ensure you're selecting the folder itself, not just a file inside it (though you can add files too).
Spotlight is not searching at all after I added exclusions. This is rare, but it can happen if you accidentally excluded your entire drive or a system folder. Go to the Privacy tab and check the list. If you see your main drive (e.g., "Macintosh HD"), remove it. If the problem continues, try restarting your Mac.
Excluded items still appear in Spotlight suggestions (not full search). Spotlight suggestions come from Siri and may include web results or recent items. These are separate from your local index. You can disable Siri suggestions in System Settings > Spotlight > uncheck "Siri Suggestions" (or in System Preferences > Spotlight, uncheck "Suggestions in Spotlight").
Frequently Asked Questions
Q: Can I exclude a single file, not a folder?
A: Yes. In the Privacy tab, click the + button and select any individual file. Spotlight will stop indexing that file.
Q: Will excluding a folder free up disk space?
A: No. Excluding a folder only stops Spotlight from indexing its contents. The files remain on your disk, and you can still access them through Finder.
Q: How long does it take for Spotlight to stop showing excluded items?
A: It varies. For small folders, it can be almost immediate. For large folders or external drives, it might take several minutes. If you want to speed it up, you can force a re-index by removing and re-adding the item.
Q: Does this work for external drives?
A: Yes. You can add any mounted volume or folder on an external drive to the Privacy list. Just make sure the drive is connected when you add it.
Q: Can I exclude a folder but still search for files inside it with Finder?
A: Yes. Spotlight exclusion only affects Spotlight search. Finder's own search (Cmd+F in a Finder window) will still find files in excluded folders.
Q: What happens if I move an excluded folder to a new location?
A: The exclusion is tied to the original path. If you move the folder, Spotlight will start indexing it again at the new location. You'll need to add the new path to the Privacy list.