Free Online Microsoft Training

Free tips and tricks for using Microsoft 365 and Windows

Free Online Microsoft Training

How to bulk rename files in a folder (Windows 11)

If you have dozens or even hundreds of files with generic file names such as IMG_0001, IMG_0002, and IMG_0003, renaming them one at a time can be a frustrating and time-consuming task. Thankfully Windows 11 includes a simple built-in feature that lets you rename multiple files at once.

This is very useful when you want to organise photos such as special events or work projects. I use this when I receive photos from my web design clients and want to organise them to be used on a website. This technique can be very useful when organising holiday photos, preparing images for a website, managing scanned documents, or sorting files from a work project, clear file names make it much easier to find what you need later. Instead of hunting through hundreds of files called IMG_1234 or DSCF5678, you can quickly identify the right file from its name.

By renaming your files in bulk, this helps to keep your files organised and easy to find if you need to search for a specific file. It is also a huge time saver compared to renaming files individually.

Bulk rename your files

Now let’s look at how we can bulk rename files so they have a common file name and then allow Windows to add automatic numbering to the end. E.g. 2026-School-Camp (1).jpg, 2026-School-Camp (2).jpg etc.

  1. Click the Start button and click File Explorer (or press Windows key + E).
Press the Windows key and the letter E to open File Explorer.
  1. The File Explorer window will appear:
  1. Navigate to the folder containing the photos.
  2. Select one of the files and then press Ctrl + A to select all files.
  3. Right mouse click and choose Rename or click the Rename button from the menu bar:
  1. Type in the start of the new file name e.g. 2026-holiday and press Enter.
  2. Windows will then add a number in brackets to the end of each file name:

Rename multiple files Using PowerShell

If you need more control over file names, PowerShell allows you to specify a fully customised naming format. For example, instead of having numbers in brackets, you can rename files as:

  • 2026-holiday-1.jpg
  • 2026-holiday-2.jpg
  • 2026-holiday-3.jpg

This allows a lot more versatility to have files named in your preferred method.

Now many users may not have used PowerShell before and so this process can feel a little daunting. The process is quite simple though as I have provided the short piece of code you need to accomplish this task.

Now let’s use PowerShell to rename the files in bulk:

  1. Open the folder containing the files via File Explorer (if not already open).
  2. Click in the Address bar where it shows the folder path:
  1. Type powershell and press Enter.
  2. The Windows PowerShell window will appear with the file path of the folder displayed:
  1. Copy and paste in the following code into the PowerShell window:
$i=1
Get-ChildItem *.jpg | ForEach-Object {
 Rename-Item $_ -NewName ("2026-holiday-$i.jpg")
 $i++
}
  1. NOTE: if your files are a different file format, e.g. NOT a .jpg file, then you will need to edit the file name format in the code. E.g. to .png or .docx etc. There are TWO references to the file extension in the code, 1st is on line 2 and the 2nd is on line 3. It is fiddly trying to edit the code once you have pasted it into Power Shell, so instead, paste into Notepad or similar program to edit first then copy and paste from there.
  2. Paste the code into PowerShell. A warning will appear:
  1. Click Paste anyway.
  2. Now press Enter.
  3. Return back to the File Explorer window.
  4. The files will all be renamed in the file name format you specified:

Your files are now all renamed. These quick little tricks can help immensly when working with a large number of files that we need to rename. Windows 11 includes these built-in features yet many users aren’t aware of their existence.

For most situations, File Explorer’s rename feature will do the job, automatically adding numbers to each file name. If you need more control over your naming convention, PowerShell provides a flexible way to create customised file names for photos, documents, and other files. Both methods can save a significant amount of time when working with large numbers of files.

I hope this has saved you some time today and don’t forget to leave a comment below if you have found this helpful. Check out more of my Windows tips and tricks or find me on YouTube.

Facebook
Twitter
LinkedIn
Pinterest
Leave a Reply

Your email address will not be published. Required fields are marked *

eleven + twelve =

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Newsletter