How to Search for a Specific File Type in Windows 10

Looking for every PDF, photo, or spreadsheet on your computer? Windows 10’s File Explorer can filter search results by file type using a simple wildcard, a file extension filter, or a broader “kind” filter. This guide covers all three, plus the Search tab’s built-in filters, faster searching with indexing, and command-line options for power users.

Quick Answer

Open File Explorer, click the folder or drive you want to search (or This PC for everything), click the search box in the top-right corner, and type *.pdf (replace pdf with any extension). Press Enter to list every matching file.

File Explorer searching This PC for star dot pdf with the search box highlighted and matching PDF files listed
(1) Type a wildcard such as *.pdf in the search box; (2) the Search tab's Kind menu filters by broader file categories.

Method 1: Search by File Extension

  1. Press Windows + E to open File Explorer.
  2. Choose where to search: a specific folder is fastest; This PC searches all drives.
  3. Click the search box and type one of these:
    • *.docx — any file ending in .docx
    • ext:.xlsx — files with the .xlsx extension
    • *.jpg OR *.png — either type (type OR in capitals)
    • report *.pdf — PDFs with “report” in the name
  4. Press Enter and wait for the green progress bar in the address bar to finish.

Method 2: Search by Kind of File

If you want all documents or all pictures regardless of extension, use the kind filter:

  • kind:=picture — photos and images (JPG, PNG, GIF, and more)
  • kind:=music — audio files
  • kind:=video — video files
  • kind:=document — text, Word, PDF, and similar files
  • kind:=folder — folders only

You can also click in the search box, then open the Search tab on the ribbon and choose Kind to pick from the list.

Method 3: Combine Filters with the Search Tab

After you click the search box, a Search tab appears in the ribbon. Combine a type search with:

  • Date modified: Today, This week, Last month, and more (adds datemodified:).
  • Size: Tiny to Gigantic (adds size:), for example *.mp4 size:>1GB.
  • Current folder or All subfolders to control how deep the search goes.
  • Save search to keep a search you use often.

Sort and Group the Results

With results showing, click View > Details, then click the Type or Folder column header to sort. Right-click an empty area and choose Group by > Type to cluster results. To show extensions in file names, check View > File name extensions.

Speed Up Searches with Indexing

Searching unindexed locations can be slow. To index more places:

  1. Open Settings > Search > Searching Windows.
  2. Choose Enhanced to index your whole PC, or click Advanced Search Indexer Settings and Modify to add specific folders.
  3. Let Windows finish indexing (it runs in the background).

Command-Line Options

  • Command Prompt: dir C:\Users\%USERNAME% /s /b *.pdf lists every PDF in your user folder with full paths.
  • PowerShell: Get-ChildItem -Path $HOME -Recurse -Filter *.pdf -ErrorAction SilentlyContinue
  • Add > pdfs.txt to the Command Prompt version to save the list to a text file.

Troubleshooting

  • Files you know exist don’t appear: search from This PC or the correct drive, and make sure All subfolders is selected. Hidden files won’t show unless View > Hidden items is checked.
  • Search is slow or stuck: rebuild the index in Indexing Options > Advanced > Rebuild.
  • Search box does nothing: restart Windows Explorer in Task Manager, or run the search troubleshooter in Settings > Update & Security > Troubleshoot.

Frequently Asked Questions

Does this work in Windows 11?

Yes. The same search syntax works in Windows 11 File Explorer, though the filters are under Search options on the toolbar instead of a ribbon tab.

Can I search for several file types at once?

Yes. Use OR in capitals, for example *.docx OR *.pdf OR *.txt.

How do I find the largest files of a type?

Search for the type, switch to Details view, and click the Size column to sort from largest to smallest.

Summary

  1. Open File Explorer and pick a location.
  2. Type *.ext (like *.pdf) or kind:=picture in the search box.
  3. Narrow results with the Search tab’s date and size filters.
  4. Index more folders for faster results.