How To Batch Rename Multiple Files On Windows 10
How To Batch Rename Multiple Files On Windows 10
windowscentral.com/how-rename-multiple-files-bulk-windows-10
February 2, 2021
2 of 3
1. Open Start.
2. Search for PowerShell and click the top result to open the app.
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd PATH\TO\FOLDER
In the command, replace PATH\TO\FOLDER with the actual path to the location.
For example, this command navigates the "files" folder inside "Documents":
cd Documents\files
1/16
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
ls
5. Type the following command to change the name of a single file and press Enter:
In the command, make sure to specify the old and new file name and extension. The
quotation marks are only required if the name includes spaces.
Once you complete the steps, the command will change the name of the file you specified.
1. Open Start.
2. Search for PowerShell and click the top result to open the app.
2/16
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd PATH\TO\FOLDER
In the command, replace PATH\TO\FOLDER with the actual path to the location.
For example, this command navigates the "files" folder inside "Documents":
cd Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
ls
3/16
5. Type the following command to rename multiple files in bulk and press Enter:
In the command, replace "NEW-FILE-NAME" with the actual structure name you
want to use.
For example, this command renames images with a ".jpg" extension using the same
("beach-trip-2021-") naming structure and appends a different number at the end of
the name:
After you complete these steps, all the files with the specified format will be renamed
using the naming structure you specified.
1. Open Start.
2. Search for PowerShell and click the top result to open the app.
4/16
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd PATH\TO\FOLDER
In the command, replace PATH\TO\FOLDER with the actual path to the location.
For example, this command navigates the "files" folder inside "Documents":
cd Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
ls
5/16
5. Type the following command to rename files using shorter names and press Enter:
For example, this command trims the name of your files by eight characters:
Once you complete these steps, you will end up with shorter file names depending on the
length you specified in the command.
1. Open Start.
2. Search for PowerShell and click the top result to open the app.
6/16
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd PATH\TO\FOLDER
In the command, replace PATH\TO\FOLDER with the actual path to the location.
For example, this command navigates the "files" folder inside "Documents":
cd Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
ls
7/16
5. Type the following command to remove part of the file name and press Enter:
For example, this command removes the word "trip" from the name of all files in the
folder:
After you complete the steps, the command will remove the part of the file name you
specified in the command.
1. Open Start.
2. Search for PowerShell and click the top result to open the app.
8/16
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd PATH\TO\FOLDER
In the command, replace PATH\TO\FOLDER with the actual path to the location.
For example, this command navigates the "files" folder inside "Documents":
cd Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
ls
9/16
5. Type the following command to replace part of file name and press Enter:
For example, this command replaces the word "vacation_" for "hiking_trip_" on the
file name:
Once you complete these steps, the command will modify the file names with the
replacement you specified in the command.
To remove and replace spaces with underscores in file names, use these steps:
1. Open Start.
2. Search for PowerShell and click the top result to open the app.
10/16
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd PATH\TO\FOLDER
In the command, replace PATH\TO\FOLDER with the actual path to the location.
For example, this command navigates the "files" folder inside "Documents":
cd Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
ls
11/16
5. Type the following command to remove spaces from file name and press Enter:
In the command, make sure to replace "SEPARATOR" with the symbol you want to
use instead of a space.
For example, this command replaces spaces with underscores in all the files:
After you complete the steps, the file names' spaces will be replaced with the separator
you specified.
1. Open Start.
2. Search for PowerShell and click the top result to open the app.
12/16
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd PATH\TO\FOLDER
In the command, replace PATH\TO\FOLDER with the actual path to the location.
For example, this command navigates the "files" folder inside "Documents":
cd Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
ls
13/16
5. Type the following command to change the extension on files and press Enter:
In the command, replace ".NEW-EXTENSION" with a new extension for the files.
Once you complete the steps, PowerShell will change the extension to the one you
specified.
To change the names of a specific file format with PowerShell commands, use these steps:
1. Open Start.
2. Search for PowerShell and click the top result to open the app.
14/16
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd PATH\TO\FOLDER
In the command, replace PATH\TO\FOLDER with the actual path to the location.
For example, this command navigates the "files" folder inside "Documents":
cd Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
ls
15/16
5. Type the following command to rename files with a specific extension and press
Enter:
For example, this command renames only files that include the ".jpg" extension:
Once you complete the steps, PowerShell will rename the files with a specific extension
using the name you specified in the command.
2 of 3
16/16
How to batch rename multiple files on Windows 10
windowscentral.com/how-rename-multiple-files-bulk-windows-10
February 2, 2021
3 of 3 Next
1. Open Start.
2. Search for Command Prompt and click the top result to open the app.
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd c:\PATH\TO\FILES
For instance, this example opens the "files" folder inside "Documents":
cd %USERPROFILE%\Documents\files
1/12
4. Type the following command to view a listing of the files in the location and press
Enter:
dir
5. Type the following command to rename the file and press Enter:
Once you complete these steps, Command Prompt will rename the file with the new name
you specified.
1. Open Start.
2. Search for Command Prompt and click the top result to open the app.
2/12
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd c:\PATH\TO\FILES
For instance, this example opens the "files" folder inside "Documents":
cd %USERPROFILE%\Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
dir
3/12
5. Type the following command to rename the files in bulk and press Enter:
In the command, replace "FILE-EXTENSION" with the extension of the files you
want to update and "FILE-NAME" with part of the name you want to add to all the
files. The asterisk * is a wildcard that tells the ren command to rename everything
with a specific extension. The question mark ? is also a wildcard, but it represents
a character of the original name you want to keep as part of the new name.
For instance, this command renames all ".jpg" files leaving the first three characters
(which works as a unique identifier to avoid duplication) and appends "-
hikingTrails" to the name:
Quick tip: When renaming files, the ren command sees a period (.) as the end of
the filename. This means that if you have files with one or more periods as part of
the name, the command may produce unexpected results.
After you complete the steps, the files will be renamed using the settings you specified.
1. Open Start.
2. Search for Command Prompt and click the top result to open the app.
4/12
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd c:\PATH\TO\FILES
cd %USERPROFILE%\Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
dir
5/12
5. Type the following command to make file names shorter and press Enter:
In the command, the asterisk * matches all the file names and extensions in the
folder, and the question marks ? indicate how many characters to use for the new
file name.
For instance, this command trims the file names longer than five characters:
If the file name has less than five characters, the name will not change. (If you want
to make the file name longer, add extra question marks in the syntax.)
Once you complete these steps, you will end up with shorter file names depending on the
question marks (?) you specified in the command.
1. Open Start.
2. Search for Command Prompt and click the top result to open the app.
6/12
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd c:\PATH\TO\FILES
cd %USERPROFILE%\Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
dir
7/12
5. Type the following command to rename the part of the file name and press Enter:
For instance, this command renames files that start with "summer_trip_21" to
"vacation_2021":
After you complete the steps, the files with similar names will be modified with the new
name structure you specified in the command.
1. Open Start.
2. Search for Command Prompt and click the top result to open the app.
8/12
3. Type the following command example to navigate to the folder with the files you
want to rename and press Enter:
cd c:\PATH\TO\FILES
cd %USERPROFILE%\Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
dir
9/12
5. Type the following command to change the file extension and press Enter:
For instance, this command changes the extension from ".txt" to ".doc" compatible
with Microsoft Word for the files in the location:
This example without wildcards ( * ) changes the only extension of a single file from
".txt" to ".doc":
Once you complete the steps, the file extension will be replaced with the new extension
specified in the command.
To rename files with a specific file extension on Windows 10 with Command Prompt, use
these steps:
1. Open Start.
10/12
2. Search for Command Prompt and click the top result to open the app.
3. Type the following command example to navigate to the folder with the files to
rename and press Enter:
cd c:\PATH\TO\FILES
cd %USERPROFILE%\Documents\files
4. (Optional) Type the following command to view a listing of the files in the location
and press Enter:
dir
11/12
5. Type the following command to change the file extension in the location and press
Enter:
For instance, this command only renames images with a ".jpg" extension:
After you complete the steps, Command Prompt will rename the files using the settings
that you specified in the command.
While these commands have been tested to work as expected, it is always recommended
that you perform a test run before trying to rename the original files on your computer.
12/12