How to Rename Files in Windows 11
Renaming files in Windows 11 lets you turn messy names like “Picture_001.jpg” into clear labels like “Family_Vacation_2024.jpg” so you can find what you need in seconds. You have at least 4 different built-in ways to change a file name, depending on whether you prefer using a mouse, keyboard shortcuts, or menus.
The fastest method takes just 2 clicks or a single key press once you select the item. Every method works in File Explorer, and the two command-line methods work in Windows Terminal. You do not need extra software for any of them. The steps below are written for current Windows 11, and they work the same on Home and Pro.
Open File Explorer, select the file, press F2, type the new name, and press Enter. The file is renamed immediately. Avoid using these characters: / : *? ” |. Keep the file extension unless you mean to change the file type.
Why Rename Files?
Here are some common reasons to rename files in Windows. A good name saves you time every time you open a folder or search for something later.
- To make the file name more descriptive, so you know what is inside without opening it
- To organize files better, for example by adding a date or project name at the start
- To avoid naming conflicts, since two files in the same folder cannot share a name
- To make files easier to find in File Explorer search
Also keep the file extension (the letters after the last dot, such as .jpg or .docx) unless you really mean to change the file type. If you change it, Windows warns you that the file may become unusable. If you cannot see extensions on your files, open File Explorer and go to View Show File name extensions to turn them on. You can turn that off the same way. Two more things to know: you cannot rename a file that is open in a program, so close it first, and you cannot use the same name as another file in the same folder.
Methods to Rename a File in Windows
Method 1Use the F2 Keyboard Shortcut
This is the fastest way to rename a file, and it keeps your hands on the keyboard. It also works on folders. When you press F2, Windows selects only the name and leaves the extension alone, so you can type straight over it.
- Select the file you want to rename by clicking it once in File Explorer. The file should now be highlighted.
- Press the F2 key. The file name becomes an editable text box with the name highlighted. On some laptops you may need to hold the Fn key and press F2 if the function keys are set to media controls.
- Type the new name in the file name field. Whatever you type replaces the highlighted name.
- Press Enter. The file now shows the new name. Press Esc instead if you change your mind before pressing Enter.
If you made a mistake, press Ctrl + Z right after the rename to put the old name back.

Method 2Use a Single Click
Clicking directly on an item provides another path to a new title. It is not a double-click. You click once to select the file, then click once more on the name after a short pause. If you click too fast, Windows treats it as a double-click and opens the file instead.
- Select the file you want to rename by clicking it once. The file should now be highlighted.
- Click once with the mouse on the file name, after a brief pause. The name turns into an editable text box.
- Type the new name when the text is highlighted, then press Enter to save it.
Open File Explorer first by pressing the Win+E, or by selecting the folder icon on the taskbar. Then browse to the folder that holds the file. If nothing happens when you click the name, wait a second and try again, or use the F2 method above.

Method 3Use the File Explorer Command Bar
The File Explorer command bar makes renaming efficient if you prefer to click a button. The command bar is the row of icons across the top of the File Explorer window. In Windows 11 the Rename button is an icon without a text label, so hover over the icons until the tooltip says Rename.
- Select the file you want to rename. The command bar buttons that need a selection become active.
- Click the Rename button on the command bar. It looks like a small text box with a cursor. The file name becomes editable.
- Type a new name in the file name field.
- Press Enter to apply the new name.
Open File Explorer and go to the folder with your file. If the Rename button looks greyed out, no file is selected yet. Click the file once and the button turns on. If the command bar is cut off on a narrow window, select the See more (three dots) button at the right end to find the remaining commands.


Method 4Use the File Explorer Context Menu
The context menu offers a fast way to rename files in Windows 11 using your mouse. Open File Explorer, right-click the file you want to change, and select the Rename option from the menu. Type your new file name and press Enter on your keyboard to save the change. In the short Windows 11 right-click menu, Rename may appear only as an icon in the row at the top, so hover over the icons to find it. The full text menu lists it as Rename.
- Open File Explorer and browse to the folder that holds the file.
- Right-click the file you want to rename. A context menu opens next to the pointer.
- Select the Rename option from the menu. The file name becomes editable.
- Type a new name.
- Press Enter to save it.
You can also rename several files in one go. Select them all, right-click, choose Rename, and type one name. Windows gives every file that name with a number in brackets added, such as (1) and (2). The files must be in the same folder.


Method 5Use PowerShell
PowerShell (a command-line shell for running system tasks) lets you rename files in Windows 11 using text commands. Open Windows Terminal and select the PowerShell tab, then use the Rename-Item command with your file path and new name to update the item instantly. This method is most useful when you need to script a rename or work with many files.
PowerShell processes multiple items at once through text commands. For a single file, one of the methods above is usually quicker.
- Open Windows Terminal and select the PowerShell tab. A prompt appears where you can type commands. On many Windows 11 systems PowerShell is the tab that opens by default.
- Specify the full path of the file you want to rename. If the path contains spaces, put it in quotation marks.
- Use the command format below to rename the file. Replace the sample path and name with your own, and press Enter to run it. If it works, PowerShell returns to the prompt without any message.
Rename-Item -Path "FullPathToFile.txt" -NewName "FileNewName.txt" -Force
Example:
Rename-Item -Path "C:\Users\UserAccount\Downloads\MyFile.txt" -NewName "FileNewName.txt" -Force
The new name is just a name with its extension, not a full path. If you get an error that the path does not exist, check the spelling and the quotation marks. If you get an access denied error, the file may be open in another program or sit in a protected folder.
Method 6Use Command Prompt
Command Prompt (a text-based window for entering system commands) gives you another way to rename files in Windows 11 using traditional shell syntax. Open Windows Terminal with the Command Prompt tab, type the ren command followed by the old file path and the new name, and press Enter. This is the older style of command and still works the same as it did in earlier Windows versions.
Command Prompt executes renaming operations using traditional shell syntax.
- Open Windows Terminal with the Command Prompt tab. A black window with a prompt appears.
- Specify the full path of the file you want to rename. Use quotation marks around any path or name that contains spaces.
- Use the command format below to rename the file, then press Enter. If it works, you return to the prompt with no message.
ren "FullPathToMyFile.txt" "FileNewName.txt"
Example:
ren "C:\Users\UserAccount\Downloads\MyFile.txt" "FileNewName.txt"
As with PowerShell, the new name should be only a file name, not a path. The command renames the file in place and does not move it. If you see “The system cannot find the file specified”, re-check the path you typed.
Summary
Keeping a computer tidy starts with proper file management. Multiple paths exist for updating titles, ranging from keyboard shortcuts to command-line utilities. Selecting the right approach depends entirely on personal workflow. For everyday use, F2 is the quickest. The command bar and right-click menu suit mouse users, and PowerShell and Command Prompt are best when you want to type or script the change. If a rename goes wrong, press Ctrl+Z in File Explorer straight away to undo it.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
[…] you can always rename the file and change its extension if you need to create a different file […]
[…] Want to learn how to change the file name or type? Check out this simple guide to renaming files in Windows 11. […]
[…] is a file manager app that comes with Microsoft Windows. It lets you view, copy, move, delete, and rename files files and folders. You can organize them in a way that makes sense to […]