How to Search & Find Specific File Types & File Formats in Mac OS X

Aug 3, 2015 - 11 Comments

Search for specific file types and file format matches in Mac OS X

Mac users who are searching for specific file type and file format matches on their computer can make the job dramatically easier by issuing proper search operators to the Find functions in Mac OS X. File type search operators can be used directly in Spotlight and also in the Finder based search function, and they can be either very specific to a particular file format (for example, a JPEG), or more general to a file type (for example, a movie).

Let’s walk through some examples of how to use these to look for and match a variety of file types and file formats in Mac OS.


As a quick reminder, you can open Spotlight search by hitting the Command+Spacebar key combo from anywhere in Mac OS and Mac OS X, and you can open a new Finder search with Command+F from anywhere in the Mac file system, desktop, or Finder.

Searching for a General File Type in Mac OS

If you know you want to find and match general file types, you can use generalized file operators in the search functions of Mac OS like so:

kind:(file type)

File type search operators can be things like ‘image’, ‘movie’, ‘music’, ’email’, ‘application’, ‘text’, ‘archive’, etc.

For example, if you want to find all images in a folder, or search for a file that you know is an image, you could use the following operator:

kind:image

If used in Spotlight (command+spacebar), the matches will be listed by most recent usage, but you can click on the “Show all in Finder” option to see all matches for the search type.

Search Spotlight for a file kind match in Mac OS X

If the kind:type operator is used in the Finder windows, it will default to searching the entire computer for matches of that type (in the prior example, all images, or in the below example, all music).

Searching for matches of general file types in Mac OS X

Searching for Specific File Format Matches in Mac OS X

Assuming you know a specific file format, you can use file format operators when searching on the Mac as well, like so:

kind:(file format)

File format search operators are quite literal, meaning you can specify something like ‘jpeg’, ‘gif’, ‘aiff’, ‘pdf’, ‘rtf’, ‘psd’, ‘mp3’, ‘zip’, or basically any other file format.

For example, to search for matches that are mp3 files, you would use:

kind:mp3

Search Mac file types and file formats for matches

Just like before, you can use these operators in either Spotlight, or with direct Finder searches.

Searching for File Names & Specific File Types / Formats on Mac

You can take the file type and file format searches further by using the search operator as a prefix to narrow down a name search as well. The usage of an operator in this scenario would be like so:

kind:(operator) "text to search match"

In this image example with Spotlight, we’re searching for ‘kind:pdf’ and the text match of “user_guide” with “kind:pdf ‘user_guide'”

Searching a file type and file name text match in Mac OS X

This works great if you know a general name and file type but can’t remember the file format or exact name (for example, if you know it’s an image file and had the text ‘iPhone’ in the file name, but can’t remember the exact file itself).

Search operators are very powerful and can make locating things on the Mac much easier, whether you start from the Spotlight search feature or a general Finder based file search. You can learn more about general Spotlight search operators for OS X here, or read a few more specific use cases, like locating large files on the Mac with size searches, or finding files from a specific date with another operator set, or even searching system files in Mac OS X.

Know of any other handy uses of search operators on the Mac? Let us know in the comments.

.

Related articles:

Posted by: Paul Horowitz in Mac OS, Tips & Tricks

11 Comments

» Comments RSS Feed

  1. Adas says:

    How to find file without searching inside file content. I don’t want to find mentioning of that file in other files, just this file.

  2. james bond says:

    this is really painful and slow, just popup a terminal and use the “find” command, much faster:
    find / -name “*.jpg”

  3. Brandon says:

    Don’t forget to search for dmg files and already unzipped archived. Absolutly space waisting.

  4. bernard cleyet says:

    doesn’t appear to apply to 10.9

    bc frustrated.

    • Paul says:

      The various search operators work in all versions of OS X which have Spotlight, should go back all the way to 10.1 or so.

      Command + F in finder

      or Command + Spacebar

      Be sure syntax is entered properly, kind:type or kind:format

  5. RM says:

    Or use EasyFind and just not be bothered by Apple’s poor search implementation.

  6. Ken says:

    Or you can use the free (and much easier IMHO) “EasyFind” app by Devon-technologies.com. I have no affiliation in any way shape or form with them, other than being a long-time user.

  7. Adam says:

    You can also search by tag colors or names using tag:red or any custom tag name you created.

  8. PeteW says:

    Very concise and practical advice, thanks.

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site