- All OS They offer solutions for mass renaming.
- The commands rename and PowerShell They are ideal for renaming with complex patterns.
- There are multiple free apps to do this visually and safely.
- Avoiding common mistakes requires prior permissions and checks.
Managing large volumes of files is an increasingly common task in both personal and professional settings . Whether it's renaming thousands of photo files, PDF documents , songs, or all kinds of digital content, doing it one by one is inefficient and frustrating. Fortunately, modern operating systems offer several ways to perform this task quickly, easily, and in bulk.
In this article, we'll show you how to rename multiple files at once on Windows , Linux , and macOS , using native tools, advanced commands, and third-party applications. We'll cover all possible methods so you can choose the one that best suits your skills and needs.
Rename files in bulk in Windows
Windows offers several ways to rename multiple files, from basic options in File Explorer to advanced commands in PowerShell . Let's look at the most useful ones.
From File Explorer
One of the quickest ways for beginner users is to select all the files within the same folder:
- Select the files you want to rename, either with CTRL or by clicking on the first one and then SHIFT + clicking on the last one.
- Press the F2 key or right-click and select “Rename.”
- Write the new name and hit Enter.
Windows will automatically apply that name to all files, adding a number in parentheses to differentiate them , for example: Photo(1), Photo(2), Photo(3), etc. For more information on using files in Windows, you can consult how to hide files in Windows 11.
If you make a mistake during the process, you can press CTRL + Z to undo the action or go to the top menu and select "Edit > Undo Rename". This option is ideal for users looking for something quick and easy.
Using Command Prompt (CMD)
If you want more control, the Windows Command Prompt (CMD) lets you rename files using the REN command . This is useful if you have basic command-line knowledge. Here's a simple example:
REN C:\Usuarios\TuUsuario\Imágenes\foto001.jpg imagen001.jpg
You can also batch rename with patterns like:
REN C:\Usuarios\TuUsuario\Imágenes\imagen???.jpg foto???.jpg
This method allows you to change extensions, shorten names, or apply simple number structures. Be careful when using it, though, and make sure you have a backup if it's a delicate operation.
PowerShell: Advanced Mass Renaming
PowerShell provides much more powerful commands than CMD , and allows you to use regular expressions to find and replace parts of a filename:
For example, to replace underscores with hyphens in a set of files from PowerShell:
Dir | Rename-Item -NewName {$_.Name -replace "_","-"}
Additionally, you can remove spaces or insert suffixes/prefixes in a single line. To replace spaces with hyphens:
ls | Rename-Item -NewName { $_.Name -replace " ","-" }
PowerShell also supports more complex conditions, such as removing parts of the name based on patterns, removing extensions, or renaming by content. If you want to learn more about file management with PowerShell, visit this resource.

Using third-party applications on Windows
If the above seems complicated to you or you simply prefer to use graphical tools, there are several free applications that allow you to rename hundreds or thousands of files in a matter of seconds.
Microsoft PowerToys – PowerRename
It's a suite of official Microsoft utilities. It includes PowerRename , a built-in tool that allows you to batch rename files directly from your browser.
- Install power toys from the official page.
- Activate PowerRename from settings.
- Go to the folder, select the files, right-click and choose “PowerRename”.
- Enter the text to replace and its substitute.
It's very powerful, secure, and easy to use. For more options on file renaming programs, you can consult this complete guide.
Advanced Renamer
One of the most comprehensive and customizable programs . It allows you to rename audio files, videos, images, documents, and more. It supports multiple methods such as adding text, changing uppercase/lowercase, removing symbols , and working with metadata.
Bulk Rename Utility
A free app designed for advanced users. Its interface is very comprehensive and can be overwhelming at first, but its versatility makes it one of the best options for renaming large volumes of files.
ReNamer
A simple yet versatile tool that allows you to apply predefined rules and scripts to transform file names . Very useful for users who want to organize music files, photos, or documents with precision.
Online File Batch Renaming Tool
A web tool that requires no installation . It works from your browser and allows you to automatically replace text, add prefixes/suffixes, and numbers. The entire process takes place locally in your browser, protecting your privacy.
Multiple File Rename (for Google Drive)
If you manage files in the cloud, this free extension for Google Drive lets you rename files in bulk directly from your Google account.
How to Rename Multiple Files on macOS
Mac users also have powerful tools at their disposal, both natively and through third-party software . The Finder has included built-in options for several versions now that simplify the process.
Mass renaming using Finder
Follow these steps:
- Open Finder and navigate to the folder with the files.
- Select files (Command + click individually or Shift for blocks).
- Right click and select “Rename X Items”.
- A box will appear with three options:
- Replace text: replaces a word or part of a name.
- Add text: add text at the beginning or end.
- Format: completely changes the name with counter, date or index.
This method is fast, requires no installation, and offers flexibility for simple names.
Other alternatives on Mac
If you're looking for something more advanced, you can use Automator , an app included in macOS that's especially useful for repetitive tasks:
- Open Automator and create a new “Workflow”.
- Choose “Files and Folders” > “Get Finder Items.”
- Adds the “Rename Finder Items” action.
- Configure the parameters and run the flow.
You can also use scripts in Terminal or install tools like rename via Homebrew , as we will explain below.
Batch Rename Files in Linux
Linux systems are known for their power and flexibility . There are multiple ways to rename files in bulk, many of them using the terminal and advanced commands.
Using the rename command
One of the most efficient tools is the Perl-based `rename` . It allows the use of regular expressions to define search and replace patterns.
rename 's/texto_original/texto_nuevo/' *.txt
Practical example: If you have files called image01.jpg, image02.jpg… and you want to change them to photo01.jpg, you can run:
rename 's/imagen/foto/' *.jpg
You can also use regular expression captures to alter parts of the name, including numbers or suffixes:
To change numbers to [0001] format:
rename 's/(\d{4})/[$1]/' *.jpg
To replace multiple matches of the same name:
rename 's/foto/imagen/g' *.jpg
Installing rename on Linux and macOS
On most Ubuntu-like Linux distros:
sudo apt install rename
On macOS you can install it with Homebrew:
brew install rename
On Windows, it is also possible to use rename if you have the Linux Subsystem (WSL) installed and are using Ubuntu or another compatible distribution.
Other advanced ways in Linux
In addition to the rename command, Linux offers other options such as:
- mmv: rename files with simpler patterns.
- find + mv: create custom scripts for moving and renaming.
- bash scripting: ideal for automating more complex processes.
Common mistakes and how to avoid them
When attempting to rename files in bulk, errors such as "access denied" or "insufficient permission" may appear . This can be due to various reasons:
- You do not have administrator permissions. Solution: Run the program or command as administrator.
- You are trying to modify encrypted files. Solution: Disable encryption or work on a copy.
- The files are in the Windows.old folder. Solution: Move them to another location before editing them.
On the other hand, carelessly changing file extensions can cause files to malfunction . Make sure you don't modify the extension if you're unsure of the file type. You might also be interested in changing file attributes in Windows.
It is also advisable to make a backup before renaming large volumes of information , especially if you are not familiar with regular expressions or terminal commands.
There are many ways to rename multiple files on any operating system. From basic and quick options to advanced tools with support for complex patterns, conditional replacements, or metadata integration. Ideally, you should choose the most appropriate method based on the number of files, their naming structure, and your level of familiarity with the environment.
- Windows, Linux, and macOS offer native methods for bulk renaming.
- Using commands like rename or PowerShell provides greater flexibility.
- Third-party tools make the process easier with graphical interfaces.
- Making a backup before batch renaming is essential.