Search JPEG Images Only Within Spotlight on Mac
Have you ever been in a situation where you know you want to find a JPEG file type and you know the name of the file, but you don’t want to search other document types on the Mac? You can use image specific file format search operators on Spotlight in Mac OS to help narrow down these type of searches, in this case we are limiting to JPG files.
This is a great little quick trick to search only JPEG files for a match via Spotlight, here’s how it works:
How to Search for JPEG Images Only with Spotlight in Mac OS
- Hit Command + Spacebar together to open Spotlight as usual
- In the search field, type the following:
kind:jpeg filename
With this ‘kind’ operator of ‘jpeg’ (note JPEG is the file type, despite often having a file extension of .jpg the file type is always JPEG), only documents which are JPEG files will be searched and returned to match.
We’ve discussed similar tricks before where you can specify just about any kind of document, from pdf, to doc, txt, etc, learn more about file type format search with Spotlight here. By replacing the “kind” operator with another file format, you can modify the search to look for that file kind instead.
And if you’re interested in learning more about search operators in Mac OS in general, we have a whole post on search operators within Spotlight if you’re curious.
These tricks apply to all versions of Spotlight in every macOS version which has supported the wonderful search engine, whether it’s contained within the Spotlight menu or the newer versions with the floating Spotlight window instead.
Try it out yourself, it’s very useful, especially if you work with a lot of images and jpeg files and want to narrow down your results when searching files on the Mac.
If you have any other helpful tips, tricks, or suggestions for Spotlight searching in Mac OS, share with us in the comments!
How do you get Spotlight to return only files with a certain filename? For instance, I used the “kind:jpeg” followed by “katie” as the filename, but I got lots of jpeg files that didn’t include “katie” in the filename.
try “kind:jpeg name:katie” that should do it.
Personally I miss when we could customize how Spotlight in Mac OS returns results again, the new versions don’t allow that and dumb stuff from the web, YouTUbe, and Wikipedia which is just annoying. I want to search my files, not the web. Old versions of Spotlight were better for files.
I tried it and it’s interesting that ‘jpg’ doesn’t work, but all of my extensions are ‘jpg’ not ‘jpeg.’
what’s up with that?
You are searching for the type (jpeg) not the the extension (jpg).
https://en.wikipedia.org/wiki/JPEG