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:

*.doc

ext:.doc

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:

*".doc"

ext:".doc"

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.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\KindMap

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. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

1 thought on “How to Search for files with a specific extension in Windows?”

Leave a Reply