LogoFileMinutes
FileSearch

Search by File Type on Mac (2026): Finder, Spotlight, Terminal

Sujeevan
#macos#file_search#app
Feature image

If you’ve ever searched for “search by file type mac” and still couldn’t find the right file, this guide is for you. We’ll cover reliable, current methods for Finder, Spotlight, Smart Folders, and Terminal, plus a faster keyboard-first workflow.

Quick answer

Search by file type mac: fastest built-in methods

If you only need built-in macOS tools, use this order:

  1. Finder for visual filtering (Kind, File extension, date, tags).
  2. Spotlight for quick one-line queries (kind:pdf invoice).
  3. Smart Folders when you repeat the same search often.
  4. Terminal when you need exact control or scripting.

Table of contents


Search by file type mac in Finder

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+):

  1. Open a Finder window.
  2. Choose where to search: open the folder you want to search.
  3. Press Command+F to enter search mode.
  4. Set the scope in the toolbar: the current folder or “This Mac”.
  5. Click the + button to add a filter.
  6. From the first dropdown, choose Kind or Other….
    • Kind: pick Image, PDF, Movie, Music, Document, Folder, etc.
    • Other…: search for File extension and set is to pdf (or txt, csv, zip).
  7. Combine criteria using the + button for more filters (Name contains, Created date, Tags, etc.).
  8. Optional: click Save to create a Smart Folder you can reuse.

Finder search by file kind

Finder search by file extension

Pro tips:

Search by file extension mac in Finder

Use this when you need exact formats like .csv, .md, or .heic:

  1. Open Finder and press Command+F.
  2. Select search scope (This Mac or current folder).
  3. Click +, choose Other…, and add File extension.
  4. Set File extension is and enter values like pdf, docx, xlsx, png.
  5. For multiple extensions, create an Any criteria group and add each extension line.

Spotlight search operators for file types

Spotlight is fast for quick, typed queries anywhere on your Mac.

How to use:

  1. Press Command+Space to open Spotlight.
  2. Use the kind: operator:
    • kind:pdf
    • kind:image
    • kind:folder
  3. Combine terms for better results, e.g., kind:video 2024.
  4. Open a result directly, or press Command+Return to reveal it in Finder.

Spotlight search by file kind

Useful kinds:

You can still search by filename:


Smart Folders: save reusable file-type searches

Smart Folders let you create saved searches, great for “all PDFs from last 30 days” or “all images in Downloads.”

Create a Smart Folder:

  1. Finder → Command+F.
  2. Scope to “This Mac” or a specific folder.
  3. Add filters (e.g., Kind is PDF; Created date is within last 30 days).
  4. Click Save. Choose a name and add it to the Sidebar for one-click access.

Smart folder

Example ideas:


Terminal methods (find and mdfind) for power users

If you prefer the command line or need advanced precision, two tools are essential.

A) find (search by name/extension on the filesystem)

Terminal window
# Find PDFs in Downloads
find ~/Downloads -type f -iname "*.pdf"
# Find multiple extensions
find ~/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)

Terminal window
# All images (any common format)
mdfind "kMDItemContentTypeTree == 'public.image'"
# PDFs system-wide
mdfind "kMDItemContentType == 'com.adobe.pdf'"
# PDFs within a specific folder
mdfind -onlyin ~/Documents "kMDItemContentType == 'com.adobe.pdf'"
# Videos (movies) by UTI tree
mdfind "kMDItemContentTypeTree == 'public.movie'"

Tips:


FileMinutes: a faster, focused way to filter by file type

If you regularly search for file types across multiple folders, FileMinutes offers a quicker, keyboard-first experience.

What makes it faster:

How file type search works in FileMinutes:

# Filter by extensions
report .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 + types
2025>invoice .pdf # PDFs with “invoice” inside folders matching “2025”

FileMinutes search by file type


Troubleshooting: when searches don’t show what you expect

Follow this order so you can isolate the cause quickly:

  1. Check search scope first: In Finder, confirm you’re searching This Mac vs current folder.
  2. Verify the filter type: Kind is PDF and File extension is pdf can return different results.
  3. Test in Spotlight: Try kind:pdf filename to confirm the file is indexed.
  4. Check hidden/system files:
    • Show hidden files with Command+Shift+.
    • Add System files in Finder via Other… and set it to are included
  5. Check external drive indexing: Connected drives may need indexing time.
  6. Reindex Spotlight if results are still missing:
    • System Settings → Spotlight → Search Privacy
    • Add the drive, then remove it to force reindexing
    • Or run:
      Terminal window
      sudo mdutil -E /

FAQ

Q: How do I search by file type on Mac?
A: Use Finder (Command+F) and set Kind (PDF, Image, Video, etc.). For quick typed queries, use Spotlight with kind: such as kind:pdf invoice.

Q: How do I search by file extension on Mac?
A: In Finder search, add File extension is via Other…, then enter values like pdf, docx, csv, or png. For command line, use find ~/Path -iname "*.pdf".

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.


Wrapping up

For most users, Finder and Spotlight are enough for basic file-type searches. Save recurring searches as Smart Folders, and use find/mdfind when you need precision. If you want a faster keyboard workflow, FileMinutes combines file-type filters, folder-scoped search, and content search in one place.

Next steps:

← Back to Blog