Skip to main content
HTREASURE LTD

Software tutorials

How to Bulk Rename Files in Windows 11 and 10 (3 Easy Methods)

Rename hundreds of files at once in Windows using File Explorer, PowerShell or a dedicated bulk renamer, with tips to avoid mistakes and undo changes.

Published

How to bulk rename files in Windows – HTREASURE LTD guide

Renaming files one at a time is slow and error-prone. Whether you are sorting holiday photos, tidying scanned invoices or preparing files for a website, Windows gives you several ways to bulk rename files. This guide covers three methods, from the simplest to the most flexible.

Method 1: Rename multiple files in File Explorer

File Explorer can give a group of files the same base name with a number added.

  • Open the folder and select the files (Ctrl+A selects everything).
  • Press F2, type a new name such as "Invoice" and press Enter.
  • Windows names them "Invoice (1)", "Invoice (2)" and so on, in the current sort order.

If the result is not what you wanted, press Ctrl+Z straight away to undo the rename. Sort the folder by date or name first so the numbering follows a sensible order.

Method 2: Bulk rename with PowerShell

PowerShell is built into Windows and can replace text, add prefixes or change extensions across many files. Open the folder, type powershell in the address bar and press Enter. For example, to replace "IMG" with "Holiday" in every JPG file name:

Get-ChildItem *.jpg | Rename-Item -NewName { $_.Name -replace 'IMG','Holiday' }

Add -WhatIf to the end of the command first. PowerShell will list what it would rename without changing anything, which is the safest way to check your pattern.

Method 3: Use a dedicated bulk file renamer

A bulk renaming utility is the better choice when you need to:

  • preview every new name before anything changes;
  • combine rules, such as removing text, adding a date and renumbering;
  • use file details such as photo dates or document metadata;
  • keep a log so a batch can be reversed later.

Tips to avoid renaming mistakes

  • Work on a copy of an important folder the first time you try a new rule.
  • Check for duplicate names. Two files cannot share a name in the same folder.
  • Keep extensions intact. Changing ".pdf" to something else does not convert the file and may stop it opening.
  • Avoid special characters such as / \ : * ? " < > |, which Windows does not allow in file names.
  • Keep names web-friendly for website uploads: lower-case letters, numbers and hyphens.

Frequently asked questions

Can I undo a bulk rename in Windows?

In File Explorer, Ctrl+Z undoes the last rename if you act straight away. PowerShell renames cannot be undone automatically, so test with -WhatIf first.

How do I rename file extensions in bulk?

Turn on View > Show > File name extensions in File Explorer, or use PowerShell. Only change an extension when you know the file format allows it.

Need a tool for this?

HTREASURE LTD develops practical [file management utilities](https://htreasure.com/shop/category/file-management) for Windows and can build [custom system utilities](https://htreasure.com/services/system-utilities) for repetitive file tasks in your business.