![](http://2.bp.blogspot.com/-VasZmT361e4/WBlwVJTWQKI/AAAAAAAALXU/_fZRVP1IdOIlCBvUNIEYz6V8SJiB4kauACLcB/s640/rename-multiple-files-at-once-1.png)
You can easily rename one or more files just with Windows Explorer, but you can do even more with the Command Prompt or PowerShell. Add in third-party renaming utilities, and the possibilities are endless.
Let’s take a look at each option and how it works.
Rename Multiple Files in Windows Explorer
Windows Explorer (known as File Explorer in Windows 10) is surprisingly powerful. You probably know how to rename a single file, but let’s start with the basics, since the advanced tricks build off them.If you’re using your mouse, you have no less than three ways to select a file’s name and rename it. You can:
- Click to select the file and then click the “Rename” button on the Home menu.
- Click to select file and then click the name of the selected file.
- Right-click the file and then select “Rename” on the context menu.
![](http://2.bp.blogspot.com/-rxc3d5s5FgU/WBlwce9mMLI/AAAAAAAALX0/NWqr-bphx5kAYoxst0pq5P8N9MCMZh1rgCLcB/s640/rename-multiple-files-at-once-2.png)
Once you’ve got the file name selected—and you’ll notice only the file name itself is selected, not the extension—you can type a new file name.
![](http://2.bp.blogspot.com/-G6uxIIgWVKM/WBlwcmmBnAI/AAAAAAAALX4/-aqlAp65HNspn2Ht2vXVO2WQ9RcjUF-1ACLcB/s1600/rename-multiple-files-at-once-3.png)
Here’s where things get interesting: you can also hit the Tab key to automatically select the next file name in the folder so that you can immediately begin typing a new name for it. Keep hitting Tab and typing names this way and you can easily rename all the files in a folder if you’re so inclined.
If you’re renaming a bunch of files in the same folder and those files don’t need completely different names from one another, Windows provides an easier way to rename those files in batch. Start by selecting a bunch of files—you can hold down the Ctrl key to select multiple files at once, or Shift to select a range of files.
When you’ve got the files selected, use one of the rename commands—the button on the Home menu, the command on the context menu, or just press F2. You’ll see that all the files remain selected, but the first one in the group gets its name highlighted so you can type a new name.
![](http://2.bp.blogspot.com/-OG8aGLba0R4/WBlwckj4uQI/AAAAAAAALX8/FlpOJsbpKoseMNgX8lDerVPOYOaCPWb9wCLcB/s1600/rename-multiple-files-at-once-4.png)
![](http://2.bp.blogspot.com/-y68TRll7lLA/WBlwcyX9ewI/AAAAAAAALYA/ueKgM-1CWLYVWtAQxWu2ktmIfIfIwa2fgCLcB/s1600/rename-multiple-files-at-once-5.png)
Rename Multiple Files from the Command Prompt
If you need more power than that, you can use therename
or ren
command in a Command Prompt window to one or more files. The command accepts wildcard characters like * and ? for matching multiple files, which can be helpful if you only want to rename a certain selection of files in a folder full of many.The quickest way to open a Command Prompt window at your desired location is to first open the folder in File Explorer. From the “File” menu, point to “Open command prompt,” and then select “Open command prompt.”
![](http://2.bp.blogspot.com/-Kzw4qoKVAKI/WBlwdZeDP1I/AAAAAAAALYE/hTXL7K2KSfUJCKIGHo7YhZHofgqTkrbqQCLcB/s1600/rename-multiple-files-at-once-6.png)
ren "current_filename.ext""new_filename.ext"
ren "wordfile (1).docx""my word file (01).docx"
![](http://4.bp.blogspot.com/-meJl865iBpE/WBlwdZ6coKI/AAAAAAAALYI/xBRTlz3QrWQwU2Y4-2bHZalRh5siG9IewCLcB/s1600/rename-multiple-files-at-once-7.png)
ren
command can address extensions, you can also use it to change the extensions of multiple files at once. Say, for example, you had a selection of .txt files that you wanted to turn into .html files. You could use the following command along with the * wildcard (which basically tells Windows that text of any length should be considered a match):ren *.txt *.html
And while we’re on the subject of wildcards, you can also do some interesting things with the ? wildcard, which is used to stand in for any single character. Say, for example, you had a bunch of .html files that you wanted to turn into .htm files instead. You could use the following command to make the change:
ren *.html *.???
This tells Windows to rename all files with the .html extension to use the same file name and same first three letters only of the file extension, which ends up cutting the “l” off of all the extensions in the folder.
And this only begins to address the kinds of command line wizardy you can get into if you want to build more complicated commands—or even batch scripts—by weaving other commands and conditionals into things. If you’re interested, the folks over at the Lagmonster forums have an excellent writeup on the subject.
Rename Multiple Files with PowerShell
PowerShell offers even more flexibility for renaming files in a command-line environment. Using PowerShell, you can pipe the output of one command—known as a “commandlet” in PowerShell terms—to another command, just like you can on Linux and other UNIX-like systems. The two important commands you’ll need areDir
, which lists the files in the current directory, and Rename-Item
, which renames an item (a file, in this case). Pipe the output of Dir to Rename-Item and you’re in business.The quickest way to open a PowerShell window at your desired location is to first open the folder in File Explorer. From the “File” menu, point to “Open Windows PowerShell,” and then select “Open Windows Powershell.”
![](http://4.bp.blogspot.com/-u5Oa2_h5-OQ/WBlwdu79AXI/AAAAAAAALYM/d66VahhvW5Ytu29p5WfGVnl_nzzGPaf6QCLcB/s1600/rename-multiple-files-at-once-8.png)
rename-item "current_filename.ext""new_filename.ext"
So, for example, to rename a file from “wordfile.docx” to “My Word File.docx” you would use the following commandlet:
rename-item "wordfile.docx""My Word File.docx"
![](http://2.bp.blogspot.com/-dOEi8nfE_9c/WBlwd-9IQ_I/AAAAAAAALYQ/V2M4is1XKmoUf2G0Izn0evdfD1hz7JOlwCLcB/s1600/rename-multiple-files-at-once-9.png)
Easy enough. But the real power in PowerShell comes from the ability to pipe commandlets together and some of the conditional switches supported by the
rename-item
commandlet. Say, for example, we had a bunch of files named “wordfile (1).docx”, “wordfile (2).docx”, and so on.![](http://2.bp.blogspot.com/-lAvCYdGdsps/WBlwUiCUQMI/AAAAAAAALXQ/umC9WObyijU9mCqey9cZrCOjfJNtDwXnACLcB/s1600/rename-multiple-files-at-once-10.png)
dir | rename-item -NewName {$_.name -replace "","_"}
![](http://4.bp.blogspot.com/-0LOey1YhrPQ/WBlwVLoxfjI/AAAAAAAALXY/seSTZcFsg8Y81c9Byf7kQnAjd1e8GesiACLcB/s1600/rename-multiple-files-at-once-11.png)
dir
part of that commandlet lists all the files in the folder and pipes them (that’s the |
symbol) to the rename-item
commandlet. The $_.name
part stands in for each of the files getting piped. The -replace
switch indicates that a replacement is going to happen. The rest of the commandlet just signifies that any space ( ""
) should be replaced by an underscore ( "_"
).And now, our files look the way we want.
![](http://2.bp.blogspot.com/-RMZNJdZsxt4/WBlwVSYyStI/AAAAAAAALXc/heJ4I7OMTHwaBlsfv0zQgjYlkarst4oxwCLcB/s1600/rename-multiple-files-at-once-12.png)
As you might expect, PowerShell offers tremendous power when it comes to naming your files and we’re only scratching the surface here. For example, the
rename-item
commandlet also offers features like a -recurse
switch that can apply the commandlet to files in a folder and all folders nested inside that folder, a -force
switch that can force renaming for files that are locked or otherwise unavailable, and even a -whatif
switch that describes what would happen if the commandlet was executed (without actually executing it). And, of course, you can also build more complicated commandlet structures that even include IF/THEN
logic.Rename Multiple Files Using a Third Party App
If you need a powerful way to rename multiple files at once and you’re just not up for mastering the Command Prompt or PowerShell commands, you can always turn to a third-party utility. There are countless renaming apps our there—and many of them are good—but we have two clear favorites: Bulk Rename Utility and AdvancedRenamer.How to Use Bulk Rename Utility
Bulk Rename Utility has a cluttered and somewhat intimidating interface, but it exposes the huge number of options you’d normally only get with regular expressions and complicated command-line options.After installing the tool, launch it, navigate to the files you want to rename, and select them.
![](http://1.bp.blogspot.com/-CEg0RXrAEBA/WBlwXCS6ppI/AAAAAAAALXg/-kNY6wZbG48YKZlUDDDUlccGSqiM9iutwCLcB/s1600/rename-multiple-files-at-once-13.png)
I’ve appended the date the file was created in the YMD format. And I’ve also added an automatic file number that appears at the end of the file name, starts at one, increments by one, and is separated from the file name by an underscore. And that’s only a tiny bit of what you can do with the Bulk Rename Utility. When you’re satisfied with how your new file names will look, all you have to do is click the “Rename” button.
![](http://2.bp.blogspot.com/-dAx9X64TZHQ/WBlwZYEMAfI/AAAAAAAALXk/UTudBSSNlHkKQ5SY7Fk7MeVb9ePY90JIwCLcB/s1600/rename-multiple-files-at-once-14.png)
![](http://2.bp.blogspot.com/-9g8o8xqdx1I/WBlwZ5KHYrI/AAAAAAAALXo/zHjqT2mctW0zx97sQMbYFIQf8cXfO8UBwCLcB/s1600/rename-multiple-files-at-once-15.png)
How to Use AdvancedRenamer
Our other favorite renaming tool, AdvancedRenamer, also exposes a huge number of renaming methods, but instead of presenting them all as panels in the interface, it asks that you use a pretty simple but powerful syntax to create renaming methods. It’s not hard to learn and they have good support, along with examples.The tool does sport a much friendlier interface and supports setting up advanced batch jobs so you can combine multiple renaming methods and apply them to large numbers of files. You can also save renaming methods you create for later use.
In the example below, I’ve created a renaming method using the following syntax:
Word File__ _ _( )
This tells AdvancedRenamer to name all my files “Word File” and to add the creation date in the YMD format (separating each portion by an underscore). It also adds an incremental file number in parentheses and separated by an additional underscore.
![](http://2.bp.blogspot.com/-S6p69YIo0N8/WBlwbn7nZ7I/AAAAAAAALXs/Zv1CvCbTnsQRu-g-tmYM7E5fUW4-2ueJgCLcB/s1600/rename-multiple-files-at-once-16.png)
And as you can see, my files have been renamed just the way I want. AdvancedRenamer has a bit steeper learning curve than Bulk File Renamer, but the reward for that is that you get much finer control over your file names.
![](http://1.bp.blogspot.com/-QZXpTVU4-O0/WBlwb--vPuI/AAAAAAAALXw/CeMhwmUPeJAbzohBWcieRTskN05heYw3gCLcB/s1600/rename-multiple-files-at-once-17.png)
Have other ways to rename files in Windows we haven’t covered? Be sure to leave us a comment and let us know about it.