How to Search for files with a specific extension in Windows?

A reader wanted to know how to use Windows Search to search for all files in a specific folder and its subfolders with the file extension .doc. This article tells you how to search for a specific file type suing wild card or Advanced Query Syntax (AQS).

If you just doc in the search bar in File Explorer, it lists all the that contain the word doc, not necessarily with that file extension, including folders named doc and file properties containing the word doc.

search for files specific extension windows

How to Search for files with a specific extension

To search for files with a specific file extension and not other files which contain that extension in their name, use one of the search syntaxes (e.g., to find .doc files) below:



search for files specific extension windows

However, if you use the above search query, it lists .docx files in addition to .doc

To strictly narrow down the results to .doc files only, enclose the file extension within double-quotes, like below:



Here you go!

search for files specific extension windows

Additional Tip: You can also search for files by a specific “kind” — e.g., picture, video, contacts, document, folder, etc.

search for files specific extension windows

The kind of a file type is determined from the KindMap registry key below (and maybe from the PerceivedType registry value defined for each file type.) which stores the list of file extensions along with the corresponding kind info.


Hope that helps!

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)

About the author

Ramesh Srinivasan founded back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.

Leave a Comment