Selecting every file in a folder is one of the most basic yet essential file-management tasks. It lets you copy, move, delete, compress, or rename a whole batch of items in one go instead of clicking each one individually. This guide covers the fastest methods on both Windows 11/10 and macOS, including keyboard shortcuts, menu commands, and the touchpad/trackpad trick. No special tools are needed—just the folder you want to work with.
What You’ll Need
- A computer running Windows 10/11 or macOS (the steps differ slightly by OS).
- A folder containing two or more files or subfolders.
- Access to a keyboard and mouse or trackpad.
Step-by-Step
On Windows (File Explorer)
- Open the folder in File Explorer by double-clicking it from your desktop, Documents, or any other location.
- Click once inside the folder (on any empty area) to make sure the window is active—this ensures the keyboard shortcut works.
- Press
Ctrl + Aon your keyboard. Every file and subfolder in that folder will become highlighted (usually blue). This is the quickest method. - Alternative: Use the ribbon. In File Explorer, click the Home tab at the top, then look for the Select all button in the Select group (it looks like a checkbox with an arrow). Click it.
- Alternative: Use the menu. Click the ellipsis (…) or the three-dot menu in the toolbar at the top-right of the window, then choose Select all from the dropdown.
- If you only want to select all files but not subfolders, first click the View tab, then check the File name extensions box (this is optional). Then, in the search box at the top-right, type
*.*and press Enter—this filters to show only files (though it may also show folders depending on settings). A more reliable way is to sort by type, then select all and manually deselect folders, but for most users,Ctrl + Ais fine.
On macOS (Finder)
- Open the folder in Finder by double-clicking it.
- Click once on the folder window to make it active.
- Press
Command (⌘) + Aon your keyboard. All items in the folder will be highlighted. - Alternative: Use the menu bar. At the top of your screen, click Edit > Select All.
- Alternative: Use the trackpad. If you have a trackpad, click once on an empty area of the folder, then drag your finger (without clicking) to create a selection rectangle. This selects everything you drag over—but to select all, you’d have to drag over the entire window, which is impractical for large folders. Stick with
⌘ + A.
Using a Mouse or Trackpad (Both OS)
- Click on an empty spot in the folder window (not on a file).
- Hold down the left mouse button (or trackpad button) and drag diagonally across the window. A blue or gray selection box appears.
- Drag until the box covers all files—you may need to scroll while dragging. Release the mouse button. This selects everything the box touched.
- To add or remove individual files after a select-all, hold
Ctrl(Windows) or⌘(Mac) and click on specific items to toggle them.
Common Mistakes
- Clicking on a file first—if you click a file before pressing
Ctrl + A, it still works, but if you’re in a search results view, it may only select the visible results, not everything in the folder. - Forgetting to activate the window—if you press
Ctrl + Awhile another window is focused (like a browser), you’ll select text on that page instead. Always click the folder first. - Using
Ctrl + Ain a dialog box—if you’re in a “Save As” or “Open” dialog,Ctrl + Amay select text in the filename field, not the files. Click the file list area first. - Dragging from a file—if you start your drag on top of a file, you’ll move that file instead of creating a selection box. Always start on empty space.
- Assuming it selects hidden files—by default, hidden files (like .env or .git) are not shown, so they won’t be selected. You need to enable “Show hidden files” first.
Tips
- Use
Ctrl + A(or⌘ + A) twice in some views—if you’re in a list view with grouped items, pressing it once selects all, but pressing it again may expand the selection to include hidden groups. This is rare but happens in some Windows views. - To select all files of a specific type (e.g., all .jpg files), click on one file of that type, then press
Ctrl + A—this selects all files in the folder, not just that type. Instead, use the search box: type*.jpgin the search bar, press Enter, thenCtrl + Ato select all matching results. - On Windows, use the “Select all” button in the ribbon if you prefer mouse over keyboard—it’s in the Home tab, Select group.
- On Mac, you can also use
⌘ + Ain the “Open” or “Save” dialogs after clicking on the file list area—this selects all files in that dialog. - If you need to select all files except a few, press
Ctrl + A(or⌘ + A), then holdCtrl(or⌘) and click the ones you want to deselect.
Troubleshooting
“Ctrl + A” doesn’t select anything. Make sure the folder window is active (click on its title bar). If you’re in a search results view, you may need to press Ctrl + A twice—once to select the results, again to select all files in the folder. If that fails, use the ribbon or menu method.
Only some files are selected. This usually happens when you’re in a filtered view (e.g., you searched for something). Clear the search by clicking the X in the search box, then press Ctrl + A again.
Dragging doesn’t create a selection box. You might be starting the drag on a file. Click on empty space (like the area below the last file) and try again. Also, ensure you’re not in “single-click to open” mode—if you are, click once on empty space, then drag from there.
On Mac, ⌘ + A selects text in a document instead. You’re probably in a text editor or a text field. Click on the Finder window’s background first, then press ⌘ + A.
Hidden files are not selected. Enable hidden files: on Windows, in File Explorer, click View > Show > Hidden items. On Mac, press ⌘ + Shift + . (period) to toggle hidden files. Then press Ctrl + A or ⌘ + A again.
Frequently Asked Questions
Q: Does “Select All” include subfolders?
A: Yes, by default it selects every item inside the folder, including subfolders and files. If you only want files, you’ll need to filter by type (e.g., search for *.* on Windows) or manually deselect folders after selecting all.
Q: Can I select all files in a folder using the right-click menu?
A: On Windows, right-clicking inside a folder does not show a “Select All” option. On Mac, right-clicking gives you “Select All” in the context menu, but it’s easier to use the keyboard shortcut.
Q: What if I want to select all files in multiple folders at once?
A: You can’t select all from multiple folders simultaneously in File Explorer or Finder. You’d need to select all in one folder, copy, then go to the next folder and repeat. Alternatively, use the search function to find files across folders, then select all results.
Q: Does Ctrl + A work in OneDrive or Google Drive folders?
A: Yes, as long as the folder is synced to your computer and shown in File Explorer or Finder, the same shortcut works. For web versions (like OneDrive.com), you’ll need to use the browser’s selection method—usually a checkbox in the top-left corner of the file list.
Q: Why does “Select All” sometimes select files from the previous folder?
A: This happens if you have multiple windows open and the wrong one is active. Always click on the folder you want to work with before pressing the shortcut. Also, check if you’re in a “stacked” view (like on Mac’s Desktop) where files are grouped—you may need to expand the stack first.
Q: Can I select all files with a single click on a touchscreen?
A: On Windows touchscreens, you can tap and hold on an empty area, then drag to create a selection box. On Mac touchscreens (rare), it’s similar. But the keyboard shortcut is still the fastest if you have a keyboard attached.
Related
- Traffic Signal Cycle Length Calculation Explained
- Federal Reserve Weekly Balance Sheet Explained
- VLOOKUP in Google Sheets: Example & How to Use
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Google Sheets Print Area: Set and Print a Cell RangeGoogle Sheets does not have a permanent, Excel-style “Set Print Area” command. To print just part of a…
- Expand All Excel Columns to Fit TextTo expand every column in Excel for Microsoft 365 on Windows, click the Select All button at the…
- Excel Named Ranges: How to Create and Use ThemTo use named ranges in Excel, assign a descriptive name to a cell or range, then use that…
- How to Find Similar Names in Excel with Fuzzy MatchingTo find names that are almost—but not exactly—the same in Excel, first clean the text, then use Power…
- How to Export an Excel Tab to Its Own WorkbookTo export one Excel tab as a separate file, right-click its sheet tab, choose Move or Copy, select…
- Remove Duplicates Based on Two Columns in Excel: StepsTo remove duplicates based on two columns in Excel, select the entire data range, choose Data > Remove…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.