Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Windows » Batch rename multiple files on Windows
  • Using the Command Prompt to add and modify the Windows registry
    How to add and modify the Windows Registry from the Command Prompt Windows
  • hero windowsadmincenter
    How to schedule and run update via Windows Admin Center Windows Server
  • Disable BitLocker
    Disable BitLocker: How to correctly disable MBAM-encrypted devices Windows
  • Featured image   This network connection does not exist
    How to fix this network connection does not exist Windows
  • image 73
    How to manage and use Amazon S3 access points using the AWS Management Console AWS/Azure/OpenShift
  • PUA copy
    Enable or disable Reputation-Based Protection on Windows 10 and 11 Network | Monitoring
  • Restrict Access to USB Drives
    Deny Execute Access: Restrict Access to USB Drives on Windows [Part 1] Windows
  • Manually resize your partition
    KB5034439 Windows Update Error: Resize WinRE Partition Windows Server

Batch rename multiple files on Windows

Posted on 28/12/202218/03/2023 Matthew By Matthew No Comments on Batch rename multiple files on Windows
Featured-image_batch_rename
Batch renaming files in Windows

Batch renaming files refers to the process of renaming multiple files at once, rather than renaming each file individually. This can be useful if you have a large number of files that need to be renamed, as it can save time and effort compared to renaming each file separately. On a Windows PC, you can rename multiple files at once in a number of ways, such as with File Explorer, PowerShell, Command Prompt, or a third-party tool. In this article, I will show you how to batch rename multiple files on Windows 10 and Windows 11.

When batch renaming files, you have the option to change the entire file name or just certain parts of it, such as the extension or certain words within the name. You can also add numbers or other characters to the file name to help organize your files. Here are other related posts: How to restore quarantined files in Microsoft Defender Antivirus, and how to find and remove Malware with Microsoft Defender Offline, 

Overall, batch renaming files is a useful technique for quickly and easily renaming a large number of files at once. It can be especially useful for organizing files and keeping them consistent with a specific naming convention. Please refer to these related guides: how to remove Microsoft Defender update on Windows 10 and Windows Server image,  and how to view Microsoft Defender Antivirus update details on Windows 10 image (install.wim).

This guide will walk you through several different ways to batch rename files, including changing the extension.

How to rename multiple files using File Explorer

The easiest way to rename one or multiple files on Windows is by using File Explorer. Here is an excellent guide on how Windows 11 encryption features and security enhancements will help protect hybrid work.

Rename multiple files one at a time

To rename multiple files one at a time with the “Tab” key, use these steps:

Open File Explorer by pressing the File Explorer icon in the taskbar, or press the “Windows key + E” keyboard shortcut. Navigate to the folder with the files to rename.

Select the first file in the folder and right click on it and select Rename from the option menu. Or click the rename icon.

image1_1
Rename files

Type the new name for the file and press the Tab key to jump to the next file down the list. Continue pressing the Tab key after renaming each file until all the files are renamed.

Batch Rename multiple files at once in Windows

To rename multiple files in bulk with the same name structure on Windows 10, use these steps:

Open File Explorer by pressing the File Explorer icon in the taskbar, or press “Windows key + E” keyboard shortcut.

Navigate to the folder with the files to rename and press “Ctrl + A” keyboard shortcut to select all the files in the folder.

image2-9
Select all files in the folder

With all the files selected, right click on the first files in the folder and select Rename or simply click the rename icon.

Type the new name for the file and press Enter.

image3-8
Rename multiple files at once

After you finish the steps, the selected files will be renamed using the same naming structure you chose, but with a count number in parentheses to make each name unique. See, for example, picture (1).jpg and picture (2).jpg.

You could use the “Ctrl + Z” keyboard shortcut to undo the changes if you made a mistake. Alternatively, you can select the Undo button by clicking the menu button in the title bar.

How to rename multiple files using Command Prompt

Command Prompt also offers multiple ways to change the name of multiple files in bulk on Windows 10 and 11.

How to Rename a Single File in Windows

To rename a single file with Command Prompt, use these steps. Press the Windows key to open the Start menu, search for Command Prompt, and click the top result to open the app.

image4-7
Launch Command Prompt from Start

Navigate to the file path to rename example:

cd c:\PATH\TO\FILES

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 C:\Users\USERNAME\Pictures\rename

Alternatively, if you have to input a lengthy file path at the command prompt to get to the folder files to rename, launch File Explorer and browse to the file path to rename. Then, in the file path, type “cmd” and press Enter, as seen below.

image5-7
Launch command prompt from the File Explorer

This will open the command prompt in the exact file path you want. To view the files in the location, type dir at the command prompt and press Enter.

image6-7
Command Prompt

To rename the file, press Enter after typing this command:

ren "Picture (1).png" image.png
image7-7
Rename file

In the command, replace “Picture (1).png” image.png with the old and new file names. The quotation (“”) marks are only necessary if the title includes spaces.

How to Batch Rename Multiple Files

Follow these steps to rename multiple files at once with the same name structure using the Command Prompt:

Press the Windows key to open the Start menu, search for Command Prompt, and click the top result to open the app.

image4-7
Launch Command Prompt from Start

Navigate to the file path to rename example:

cd c:\PATH\TO\FILES

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 C:\Users\USERNAME\Pictures\rename

Alternatively, if you have to input a lengthy file path at the command prompt to get to the folder files to rename, launch File Explorer and browse to the file path to rename. Then, in the file path, type “cmd” and press Enter, as seen below.

image9-6
Launch command prompt from the File Explorer

This will open the command prompt in the exact file path you want. To view the files in the location, type dir at the command prompt and press Enter.

image8-6
Command Prompt

To modify part of the name of multiple files at once, press Enter after typing this command:

ren *.png ???"_holiday trip".*
image10-6
Rename multiple files

 To change the entire name of multiple files at once, press Enter after typing this command:

ren london_trip_2022*.* holiday_trip_2022*.*
image11-3
Rename entire file name at once

In the command, replace “.jpg” with the extension to change and “image” with part of the name to add to 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 example, this command renames all “.jpg” files leaving the first three characters (which works as a unique identifier to avoid duplication) and appends “_music festival” to the name: ren *.jpg ???”_music festival”.*

Change file extension

To change the file extension to another, use these steps:

Press the Windows key to open the Start menu, search for Command Prompt, and click the top result to open the app.

image4-7
Launch Command Prompt from Start

Navigate to the file path to rename example:

cd c:\PATH\TO\FILES

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 C:\Users\USERNAME\Pictures\rename

Type the following command to change the file extension and press Enter:

ren *.OLD-EXTENSION *.NEW-EXTENSION
image16-2
Change file extension

In the command, replace “OLD-EXTENSION” and “NEW-EXTENSION” with the old and new file extensions. For instance, this command changes the extension from “.txt” to “.doc” compatible with Microsoft Word, for the files in the location: ren *.txt *.doc 

Rename files with specific extension

The previous steps renamed every file within the location. But if you only want to rename a group of files with a certain format, you must leave out the asterisk (*) and type in the target extension for the command.

To rename files with a specific file extension with Command Prompt, use these steps:

Press the Windows key to open the Start menu, search for Command Prompt, and click the top result to open the app.

image4-7
Launch Command Prompt from Start

Navigate to the file path to rename example:

cd c:\PATH\TO\FILES

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 C:\Users\USERNAME\Pictures\rename

Type the following command to change the file extension in the location and press Enter:

ren OLD-FILE-NAME*.EXTENSION NEW-FILE-NAME*.EXTENSION
image12-3
Rename file with specific extension

In the command, change “OLD-FILE-NAME,” “NEW-FILE-NAME,” and “EXTENSION” with the old and new file name and extension. For instance, this command only renames images with a “.jpg” extension: ren picture-*.jpg vacation*.jpg

How to rename multiple files using PowerShell

You can also use PowerShell to rename multiple files on Windows 10. Although you have many ways to manipulate files using this tool, the instructions in this guide are only meant to get you started with the most common scenarios.

Rename single file

To rename only one file with a PowerShell command, use these steps:

Press the Windows key to open the Start menu, search for PowerShell, and click the top result to open the app.

PowerShell
Launch PowerShell from Start

Navigate to the file path to rename example:

cd c:\PATH\TO\FILES

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 C:\Users\USERNAME\Pictures\rename

Alternatively, if you have to input a lengthy file path at the command prompt to get to the folder files to rename, launch File Explorer and browse to the file path to rename. Then, in the file path, type “PowerShell” and press Enter, as seen below.

image13-3
Launch PowerShell from file Explorer

This will open the PowerShell in the exact file path you want. To view the files in the location, type ls at the prompt and press Enter.

image14-3
View files in location

Type the following command to change the name of a single file and press Enter:

Rename-Item "OLD-FILE-NAME.EXTENSION" "NEW-FILE-NAME.EXTENSION"

In the command, specify the old and new file names and extensions. The quotation marks are only required if the name includes spaces. For instance, this command renames the file to “batch_file_notes.txt”:

Rename-Item "Picture (1).png" image.png
image15_1
Rename single file

Repeat the above steps to continue renaming other files.

Once you complete the steps, the command will change the file’s name to what you specified.

Rename multiple files in bulk

To rename multiple files in bulk when the name structure is not important, use these steps:

Press the Windows key to open the Start menu, search for PowerShell, and click the top result to open the app.

Navigate to the file path to rename example:

cd c:\PATH\TO\FILES

Type the following command to rename multiple files in bulk and press Enter:

ls | %{Rename-Item $_ -NewName ("NEW-FILE-NAME-{0}.EXTENSION" -f $nr++)}

In the command, replace “NEW-FILE-NAME” with the actual structure name you want to use. For instance, this command renames images with a “.jpg” extension using the same (“beach-trip-2022-“) naming structure and appends a different number at the end of the name: ls | %{Rename-Item $_ -NewName (“beach-trip-2022-{0}.jpg” -f $nr++)}

After you finish these steps, the files in the format you chose will be renamed using the naming structure given by the command.

Conclusion

I hope you find the post helpful. Now you have learned how to batch rename multiple files on Windows instead of renaming each file individually. If you have any questions, please leave a comment below.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:File Explorer, Microsoft Windows, PowerShell, PowerShell Cmdlet, Windows 10, Windows 11

Post navigation

Previous Post: Sync Google Calendar events to Apple Calendar
Next Post: Mount an ISO image in Windows 10 and 11

Related Posts

  • Copilot Microsoft
    How to Disable Copilot in Windows and Microsoft Edge Windows
  • How to keep Apps up to date on Windows
    How to keep Apps up to date on Windows devices Windows
  • screenshot 2020 02 07 at 21.56.50
    Setup Kiosk Mode on Windows 10 with AD User Account Windows
  • Modernstanby
    Modern Standby: PC is automatically encrypted Windows
  • Task Scheduler Error 0x2 1
    How to fix Windows Task Scheduler 0x2 Error Windows
  • Wordpress
    How to Install and Configure WordPress on Your Windows Computer Using WAMP SERVER Web Server

More Related Articles

Copilot Microsoft How to Disable Copilot in Windows and Microsoft Edge Windows
How to keep Apps up to date on Windows How to keep Apps up to date on Windows devices Windows
screenshot 2020 02 07 at 21.56.50 Setup Kiosk Mode on Windows 10 with AD User Account Windows
Modernstanby Modern Standby: PC is automatically encrypted Windows
Task Scheduler Error 0x2 1 How to fix Windows Task Scheduler 0x2 Error Windows
Wordpress How to Install and Configure WordPress on Your Windows Computer Using WAMP SERVER Web Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Using the Command Prompt to add and modify the Windows registry
    How to add and modify the Windows Registry from the Command Prompt Windows
  • hero windowsadmincenter
    How to schedule and run update via Windows Admin Center Windows Server
  • Disable BitLocker
    Disable BitLocker: How to correctly disable MBAM-encrypted devices Windows
  • Featured image   This network connection does not exist
    How to fix this network connection does not exist Windows
  • image 73
    How to manage and use Amazon S3 access points using the AWS Management Console AWS/Azure/OpenShift
  • PUA copy
    Enable or disable Reputation-Based Protection on Windows 10 and 11 Network | Monitoring
  • Restrict Access to USB Drives
    Deny Execute Access: Restrict Access to USB Drives on Windows [Part 1] Windows
  • Manually resize your partition
    KB5034439 Windows Update Error: Resize WinRE Partition Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.