To select all files in Windows, press Ctrl+A in any File Explorer window or on your desktop. This keyboard shortcut instantly highlights every file and folder in the current location. If you prefer using your mouse, you can also use the Select all button on the Home tab of File Explorer, or drag a selection box around the files. This guide covers all the reliable methods, including how to select all files in a folder, on the desktop, and in dialog boxes, plus how to deselect or invert your selection.

What You'll Need

  • A PC running Windows 10 or Windows 11 (the steps are nearly identical on both).
  • A mouse or touchpad, or a keyboard with a Ctrl key.
  • Access to File Explorer (the folder icon on your taskbar or press Win+E).

Step-by-Step

Method 1: Keyboard Shortcut (Fastest)

  1. Open File Explorer by pressing Win+E or clicking the folder icon in your taskbar.
  2. Navigate to the folder that contains the files you want to select. You can click any folder on the left sidebar or type a path in the address bar.
  3. Click once anywhere inside the folder window (on a blank area, not on a file) to make sure the window is active.
  4. Press Ctrl+A on your keyboard. Every file and subfolder in that location will become highlighted (usually blue).
  5. If you want to select all files on your desktop, press Win+D to show the desktop, then press Ctrl+A.

Method 2: Using the Ribbon Menu

  1. Open the folder in File Explorer.
  2. Click the Home tab at the top of the window (it's the first tab on the left, next to File).
  3. In the Select group (on the left side of the ribbon), click the Select all icon. It looks like a rectangle with a dotted outline and a checkmark.
  4. All items in the current folder will be selected. This works the same in Windows 10 and Windows 11, though the ribbon may be collapsed by default in Windows 11—click the Home tab first to expand it.

Method 3: Drag a Selection Box

  1. Open the folder containing your files.
  2. Position your mouse cursor in a blank area of the window, just to the upper-left of the files you want to select.
  3. Press and hold the left mouse button.
  4. Drag the mouse diagonally to the lower-right, creating a blue rectangle that covers all the files you want.
  5. Release the mouse button. All files inside the rectangle are selected.
  6. To select everything in the folder, drag a box that covers the entire window (or at least touches every file). This method is less precise for very large folders, but it works well for a screenful of items.

Method 4: Select All in Dialog Boxes

  1. This works in most Windows dialog boxes where you can pick files, such as the "Open" or "Upload" dialog in a program.
  2. Click inside the file list area (the pane that shows the files).
  3. Press Ctrl+A to select all files in that list.
  4. If the dialog box uses a single-column list (like some older programs), you can also click the first file, then hold Shift and click the last file to select a range, or hold Ctrl and click individual files to add them to the selection.

Method 5: Select All via the Right-Click Menu (Limited)

  1. In File Explorer, right-click on a blank area inside the folder.
  2. Look for a Select all option in the context menu. In Windows 10 and Windows 11, this option is not present in the standard right-click menu. If you see it, click it—but don't be surprised if it's missing. This method is not reliable, so use Ctrl+A or the ribbon instead.

Common Mistakes

  • Pressing Ctrl+A while a file is selected—This still selects all, but if you have a file highlighted and press Ctrl+A, it works fine. The mistake is pressing Ctrl+A when the focus is on a text box or search field, which selects the text instead of the files.
  • Clicking on a file before pressing Ctrl+A—This is fine, but if you click a file and then press Ctrl+A, it selects all. The mistake is clicking a file and then pressing Ctrl+A while the file is in rename mode (F2), which would rename the file instead.
  • Dragging a selection box but starting on a file—If you start dragging on a file, Windows may move the file instead of selecting others. Always start on a blank area.
  • Forgetting that Ctrl+A selects folders too—In File Explorer, "select all" includes subfolders, not just files. If you only want files, you'll need to deselect the folders manually or use the search filter.
  • Using Ctrl+A in the wrong window—If you have multiple windows open, Ctrl+A acts on the active window only. Make sure the File Explorer window is the one in focus (click on it first).

Tips

  • To deselect all files, press Ctrl+A again (toggles selection in some contexts) or simply click on a blank area of the folder. The keyboard shortcut to clear selection is Ctrl+Space on the focused item, but clicking blank is easiest.
  • To select all files of a specific type (e.g., all .jpg images), use the search box in the top-right of File Explorer. Type *.jpg (or the extension you want) and press Enter. Then press Ctrl+A to select all the matching files.
  • To select all files except a few, first press Ctrl+A to select everything, then hold Ctrl and click the files you want to exclude. This toggles their selection off.
  • To invert a selection (select everything that isn't selected), there is no built-in keyboard shortcut in File Explorer. You can use the ribbon's Invert selection button (Home tab > Select > Invert selection) if you need this often.
  • If you want to select all files in a folder and its subfolders, you can use the search box with * (all files) and then press Ctrl+A. This includes files in nested folders, unlike a normal Ctrl+A which only selects the current folder's contents.
  • When using the drag method, you can hold Ctrl while dragging to add to an existing selection, or hold Shift to select a contiguous block from the first clicked item to the last.

Troubleshooting

If Ctrl+A doesn't select all files, try these steps in order:

  1. Click on a blank area of the folder first, then press Ctrl+A. If a file is focused, the shortcut may act on that file only (e.g., rename mode).
  2. Check if the window is active. Click the title bar of the File Explorer window to make sure it's the active window, then press Ctrl+A again.
  3. Try the ribbon button. Click Home > Select all. If that works, the keyboard shortcut may be intercepted by another program (like a clipboard manager or a keyboard utility).
  4. Restart File Explorer. Press Ctrl+Shift+Esc to open Task Manager, find "Windows Explorer" under Processes, right-click it, and choose Restart. This refreshes the shell and can fix temporary glitches.
  5. Check for a search filter. If you have typed something in the search box, Ctrl+A will select only the filtered results, not all files. Clear the search box (click the X) and try again.
  6. If nothing works, sign out and sign back in to Windows, or restart your PC. This resolves most transient UI issues.

If you're trying to select all files on your desktop and Ctrl+A doesn't work, click once on the desktop background (so no window is focused) and then press Ctrl+A. If you have a window open, the shortcut may select items in that window instead.

Frequently Asked Questions

Does Ctrl+A select all files in subfolders too?

No. Ctrl+A selects only the files and folders directly in the current folder. To include subfolders, use the search box with * and then press Ctrl+A, or navigate into each subfolder and select separately.

How do I select all files in a folder without using the keyboard?

Use the ribbon: open the folder, click the Home tab, then click Select all in the Select group. Or drag a selection box around all the files.

Why doesn't the right-click menu have "Select all"?

Microsoft removed that option from the context menu in Windows 10 and Windows 11. The keyboard shortcut and the ribbon button are the official alternatives.

Can I select all files in a folder using the command prompt?

Yes, but that's for copying/deleting, not for selection in the GUI. For example, copy *.* destination copies all files. For selection in File Explorer, stick to Ctrl+A.

How do I select all files with a certain extension?

Use the search box in File Explorer, type *.extension (e.g., *.pdf), press Enter, then press Ctrl+A to select all matching files.

Is there a way to select all files on a USB drive or external hard drive?

Yes. Open the drive in File Explorer, press Ctrl+A to select everything at the root, or use the search method to include all subfolders. The same shortcuts work on any storage location.