How to find all files of one type on a Mac

Updated · by , maker of Gander

Sometimes the only thing you know about a file is what kind it is. Finder can list every PDF or every video on your Mac, and with one extra step, every file with a particular extension.

Use Finder's Kind rule

  1. Open a Finder window and press ⌘F.
  2. Leave the first pop-up menu on Kind.
  3. Set the second menu to the type: Image, Movie, Music, PDF, Document, Presentation, Application and so on.
  4. For images, a third menu lets you narrow to JPEG, PNG, TIFF or GIF.

Choose This Mac at the top to search everywhere, or the folder name to stay where you were.

Type it instead

The search field understands kind: as a keyword:

kind:pdf
kind:image invoice
kind:movie

The second line finds images with "invoice" in the name or contents.

Search by extension

For types that Kind does not list, such as .psd, .sketch or .csv:

  1. Press ⌘F.
  2. Click the first pop-up menu and choose Other….
  3. Find File extension, tick it, and click OK.
  4. Type the extension without the dot, for example psd.

From Terminal

find matches on the name:

find ~ -iname "*.psd" 2>/dev/null

mdfind asks the Spotlight index, which is faster and knows about types rather than just extensions. This lists every image, whatever its format:

mdfind "kMDItemContentTypeTree == 'public.image'"

See them as thumbnails

A list of four thousand file names is not much help when you are looking for one picture. Gander sorts the files in your home folders onto six shelves by type: images, videos, music, documents, archives and apps. Each shelf shows thumbnails, and a row of chips above it narrows by exact type with a count, such as PDF 120 or XLSX 48.

In search, type words like pdfs, screenshots, zips or spreadsheets and combine them with a date or a size: spreadsheets from last month.

FAQ

How do I find all PDFs on my Mac?

Press Command-F in Finder, set Kind to PDF and choose This Mac. Or type kind:pdf in the search field.

Can I search for two types at once?

Yes. Hold Option and click the plus button at the end of a rule row. It becomes a button with three dots that adds an "Any of the following" group, where you can list several kinds.

Why are some files missing from the results?

Finder leaves out system files and anything in folders excluded from Spotlight. Files on disks that are not indexed will not appear either.

Share this guide: X · LinkedIn · Reddit · Hacker News · Email

Keep reading