If you’ve ever typed “mac search for file type” because you can’t find that one PDF, video, or ZIP on your Mac, you’re in the right place. This guide covers every reliable method on macOS to search by file type using Finder, Spotlight, Smart Folders, and Terminal. We’ll also show a faster, keyboard-first workflow with FileMinutes, an app designed to filter by type, search in specific folders, browse results with arrow keys and more.
Command+F
→ add filter Kind is PDF
or File extension is pdf
.Command+Space
→ type kind:pdf report
.Command+F
→ set your filters → Save as Smart Folder for reuse.mdfind "kMDItemContentTypeTree == 'public.image'"
or find ~/Downloads -name "*.pdf"
..pdf
, .xlsx
and file categories like .image
, .document
.Finder’s search supports both “Kind” and “File extension” filters. “Kind” is broader (e.g., Images include PNG, JPG, HEIC), while “File extension” targets .pdf
, .txt
, .zip
, etc.
Steps (macOS 12+):
Command+F
to enter search mode.+
button to add a filter.Kind
or Other…
.
File extension
and set is
to pdf
(or txt
, csv
, zip
).+
button for more filters (Name contains, Created date, Tags, etc.).Pro tips:
Command+Shift+.
if needed.System files
attribute via Other…
and set it to are included
.Name contains
for quick targeting; for precise extension matches, prefer File extension is …
.Spotlight is fast for quick, typed queries anywhere on your Mac.
How to use:
Command+Space
to open Spotlight.kind:
operator:
kind:pdf
kind:image
kind:folder
kind:video 2024
.Useful kinds:
kind:pdf
, kind:image
, kind:folder
, kind:document
, kind:music
, kind:movie
You can still search by filename:
kind:pdf "tax return"
Smart Folders let you create saved searches, great for “all PDFs from last 30 days” or “all images in Downloads.”
Create a Smart Folder:
Command+F
.Example ideas:
If you prefer the command line or need advanced precision, two tools are essential.
A) find
(search by name/extension on the filesystem)
# Find PDFs in Downloadsfind ~/Downloads -type f -iname "*.pdf"
# Find multiple extensionsfind ~/Projects -type f \( -iname "*.docx" -o -iname "*.pdf" \)
# Only folders named "assets"find ~ -type d -iname "assets"
B) mdfind
(uses Spotlight metadata; great for “kind”/UTI)
# All images (any common format)mdfind "kMDItemContentTypeTree == 'public.image'"
# PDFs system-widemdfind "kMDItemContentType == 'com.adobe.pdf'"
# PDFs within a specific foldermdfind -onlyin ~/Documents "kMDItemContentType == 'com.adobe.pdf'"
# Videos (movies) by UTI treemdfind "kMDItemContentTypeTree == 'public.movie'"
Tips:
mdfind
returns little or nothing, Spotlight may need indexing.mdls /path/to/file
to inspect a file’s metadata and see its content type (UTI).If you regularly search for file types across multiple folders, FileMinutes offers a quicker, keyboard-first experience.
What makes it faster:
.pdf
, .txt
, .csv
) or file categories:
.
- folders only.image
- JPG, PNG, HEIC, etc..document
- PDF, DOCX, XLSX, etc..video
- MP4, MOV, etc..audio
- MP3, WAV, etc..text
- TXT, MD, etc..archive
- ZIP, RAR, etc.How file type search works in FileMinutes:
# Filter by extensionsreport .pdf .xlsx # finds PDF or Excel files with “report” in the name
# Show only folders. report # shows only folders with “report” in the name
# Search inside a folder~/Downloads>.image # shows image files in the Downloads folder
# Combine folder patterns + types2025>invoice .pdf # PDFs with “invoice” inside folders matching “2025”
sudo mdutil -E /
Command+Shift+.
.Q: What’s the difference between “Kind” and “File extension” in Finder?
A: “Kind” is a broader category based on the file’s metadata (e.g., Image includes JPG, PNG, HEIC). “File extension” targets the actual suffix (e.g., .jpg
). Use “Kind” when you want all images; use “File extension” when you need only .png
or .jpg
.
Q: How do I search for multiple types at once in Finder?
A: Use grouped criteria. Click the …
menu (press Option
key which will change +
to ...
) to create a group that matches “Any” and add multiple lines like “File extension is pdf
” or “File extension is docx
.” Alternatively, use “Kind is Document” to include many office formats at once.
Q: Can Spotlight search inside the file contents?
A: Yes, Spotlight indexes contents for many file types (PDF, text, some documents). If content searches fail, try reindexing Spotlight and ensure the file type is supported.
Q: How do I find only folders?
A: Finder: Kind is Folder. Spotlight: kind:folder
keyword. FileMinutes: use .
(dot) to show only folders, e.g., . reports
.
Q: Is there a quicker way to preview results?
A: Yes. In Finder or FileMinutes, select a file and press Spacebar to open QuickLook. Use arrow keys to navigate while the preview is open.
Q: What about searching by date?
A: Finder supports “Created date” and “Modified date” filters. Spotlight supports natural ranges like date:today
and date:yesterday
in some contexts.
For most users, Finder and Spotlight handle simple “search by file type” tasks, use Kind or file extensions, then save common filters as Smart Folders. For frequent or complex searches, FileMinutes speeds things up with type filters (.pdf
, .image
, .video
, etc.), targeted folder scopes, keyboard navigation, and content search-all in one place. Add it to your toolkit to spend less time hunting and more time working.