The select all command in Windows is Ctrl+A, which selects every item in the current window, document, or text field. Pressing Ctrl+A once highlights all content; pressing it again in most text editors does nothing, but in some file managers it may toggle selection.
Where Ctrl+A Works
Ctrl+A is a universal shortcut that behaves differently depending on the context:
- File Explorer: Selects all files and folders in the current folder (not subfolders).
- Text editors (Notepad, Word, browsers): Selects all text in the document or page.
- Command Prompt (cmd): In the classic console, Ctrl+A does nothing by default; you must use Mark mode or right-click > Select All. In Windows Terminal (the modern app), Ctrl+A selects all text in the buffer.
- Excel: Selects the entire worksheet if the cursor is inside a single cell; if a range is selected, it selects the entire data region first, then the whole sheet on a second press.
- Desktop: Selects all icons on the desktop.
How to Select All Without the Keyboard
If you prefer the mouse or need an alternative because a keyboard is unavailable:
- File Explorer: Click the Home tab in the ribbon, then click Select all in the Select group.
- Word/Notepad: Click Edit menu (or the Home ribbon in Word) and choose Select All.
- Command Prompt: Right-click the title bar, choose Edit > Select All (classic console). In Windows Terminal, right-click and choose Select all from the context menu.
- Excel: Click the triangle at the intersection of the row numbers and column letters (top-left corner) to select the whole sheet.
Selecting All in Command Prompt and PowerShell
In the legacy cmd.exe window, Ctrl+A is not mapped by default. To select all output:
- Right-click the title bar and choose Edit > Select All.
- Or press Alt+Space then E then S (opens the system menu, then Edit, then Select All).
In Windows Terminal (the default in Windows 11), Ctrl+A works directly to select all visible text. In PowerShell, Ctrl+A also selects all text in the console if you’re using Windows Terminal; in the classic PowerShell window, the same right-click method applies.
Selecting All in Specific Applications
Some programs override or extend Ctrl+A:
- Excel: Pressing Ctrl+A once selects the current data range (contiguous cells with data). Pressing it again selects the entire worksheet. If the cursor is in a blank cell, the first press selects the whole sheet.
- Word: Ctrl+A selects all text, but if you press it twice, it selects all text plus the document’s headers/footers and footnotes (in some versions).
- Browsers: Ctrl+A selects all text on the webpage, not the page’s elements. To select all images, you can’t—use a screenshot tool.
- File Explorer: Ctrl+A selects all items in the current view. If you have grouped files, it selects all groups.
- Media players (VLC, Windows Media Player): Ctrl+A often selects all items in a playlist.
Common Problems and Fixes
Problem: Ctrl+A doesn’t work in Command Prompt.
Fix: Use the right-click method or enable “Use Ctrl+Shift+C/V as Copy/Paste” in the console properties (right-click title bar > Properties > Options). This does not enable Ctrl+A for select all though—only Ctrl+Shift+A works in some builds.
Problem: Ctrl+A selects everything in a webpage, but you only wanted a paragraph.
Fix: Click at the start of the paragraph, hold Shift, then click at the end. Or triple-click to select a line/paragraph.
Problem: In Excel, Ctrl+A selects the data range, not the whole sheet.
Fix: Press Ctrl+A a second time. If that still doesn’t work, click the corner triangle.
Problem: Ctrl+A is intercepted by a game or remote desktop.
Fix: In Remote Desktop, Ctrl+A is sent to the remote machine; if it doesn’t work, check the local keyboard layout or use the on-screen keyboard.
Alternatives to Ctrl+A
If you need to select everything but Ctrl+A is broken or inconvenient:
- Shift+End (in a text line) selects from cursor to end of line; Shift+Ctrl+End selects to end of document.
- Ctrl+Shift+Home selects from cursor to beginning of document.
- Click and drag with the mouse over the desired area.
- Edit > Select All in menus of most classic applications.
- PowerShell:
Get-ChildItem | Select-Object -Property *is not select-all; it’s a different concept. For selecting files, useGet-ChildItem | ForEach-Object { $_.FullName }to list all.
Keyboard Shortcuts for Mac and Linux
On macOS, the equivalent is Command+A (⌘+A). On Linux (most desktop environments), it’s also Ctrl+A. In Windows, if you use a Mac keyboard, the Windows key acts as Command, so Ctrl+A still works.
Frequently Asked Questions
Does Ctrl+A select all files in subfolders?
No. In File Explorer, Ctrl+A selects only the files and folders currently displayed in the open folder. To select files in subfolders, you must navigate into each subfolder or use the search results view (type * in the search box, then Ctrl+A).
Why does Ctrl+A not work in Command Prompt?
Because the classic console was designed before that shortcut was standardized. Microsoft added it to Windows Terminal, but legacy cmd.exe still uses the right-click menu. You can also press Ctrl+Shift+A in some builds of Windows 10/11’s console to select all.
How do I select all text in a PDF?
In most PDF readers (Adobe Acrobat, Microsoft Edge), press Ctrl+A to select all text on the current page, not the whole document. To select all pages, use Edit > Select All (if available) or use the text selection tool and drag across all pages—which is impractical. Some readers have a “Select All” under the Edit menu that works across all pages.
Can I select all in Excel without using the mouse?
Yes. Press Ctrl+A once (data range) or twice (worksheet). If you want to select all cells in a column, click the column letter. For all rows, click the row number.
What is the difference between Ctrl+A and Ctrl+Shift+End?
Ctrl+A selects everything in the current context. Ctrl+Shift+End selects from the cursor position to the end of the document or list. Ctrl+A is usually faster for the whole thing, but Ctrl+Shift+End is useful when you want to select from a specific point onward.
Does Ctrl+A work in the Windows Registry Editor?
No. The Registry Editor does not support Ctrl+A. To select all keys in a branch, you must click the first key, hold Shift, and click the last key, or use the Edit menu (which doesn’t have Select All). You can use Ctrl+End to jump to the last key, then Shift+Click.
Summary and Best Practices
Ctrl+A is a time-saver, but its behavior varies by app. Memorize these rules:
- In text: selects all characters.
- In file lists: selects all items in view.
- In spreadsheets: selects data range, then whole sheet on second press.
- In terminals: use Windows Terminal for Ctrl+A, or right-click for legacy.
If Ctrl+A ever fails, check if the application has focus (click inside it first). Also ensure you’re not in a field that traps keys (like a password box). For advanced users, you can remap keys with PowerToys Keyboard Manager, but that’s rarely needed.
Related
- Shortcut for Cut? The Real Keyboard Shortcut
- Generate Random Number Online: How It Works
- How to Sum in Excel: 5 Quick Ways
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Arrow Keys Move Screen? Turn Off Scroll LockIf Excel’s arrow keys move the worksheet view instead of moving the selected cell, Scroll Lock is usually…
- Document Not Saved in Excel: Causes and FixesIf Excel says “Document not saved,” first protect your changes: use File > Save As > Browse to…
- Excel Data Validation: Copy Rules Quickly and SafelyTo copy only data validation in Excel for Microsoft 365 on Windows, copy a cell that has the…
- Splunk Split Command: How to Use ItThe split command in Splunk divides the values of a single multivalue field into separate events, or splits…
- How to Create a Blind Distribution List in OutlookTo create a blind distribution list in Outlook, save the recipients as a contact list or contact group,…
- Create a Quotation Template in Word: Step by StepCreate a reusable quotation template in Microsoft Word by setting up your business details, customer fields, itemized pricing,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.