PowerRename is a bulk renaming tool that enables you to: Modify the file names of a large number of files (without renaming all of the files the same name). Perform a search and replace on a targeted section of file names. Perform a regular expression rename on multiple files. Contacts Sync for Google Gmail for Mac 8.0.3. Internet Utilities. PowerRenamer 3.5.2. PowerRenamer 3.5.3. Uncomplicated renaming utility that can apply different name changing patterns on the files and fo. April 1st, 15:30 GMT. MacOS 10.9 or later. PowerRenamer Keywords: multiple renaming of files according to selectable rules. Introduction PowerRenamer allows you to rename all (or some) files in a folder according to certain rules. 4 basic functions are offered: Insert character in front, insert character in back, delete character, search/replace character The basic principle of the 4th point is the specification of two patterns: a.
PowerRename is a bulk renaming tool that enables you to:
In this demo, all instances of the file name 'Pampalona' are replaced with 'Pamplona'. Since all of the files are uniquely named, this would have taken a long time to complete manually one-by-one. PowerRename enables a single bulk rename. Notice that the 'Undo Rename' (Ctrl+Z) command enables the ability to undo the change.
After selecting some files in Windows File Explorer, right-clicking and selecting PowerRename (which will appear only when enabled in PowerToys), the PowerRename menu will appear. The number of items (files) you've selected will be displayed, along with search and replace values, a list of options, and a preview window displaying results of the search and replace values you've entered.
Enter text or a regular expression to find the files in your selection that contain the criteria matching your entry. You will see the matching items in the Preview window.
Enter text to replace the Search for value entered previously that match you're selected files. You can view the original file name and renamed file in the Preview window.
If checked, the Search value will be interpreted as a regular expression (regex). The Replace value can also contain regex variables (see examples below). If not checked, the Search value will be interpreted as plain text to be replaced with the text in the Replace field.
For more information regarding the Use Boost library
option in the settings menu for extended regex functionalities, see the regular expressions section.
If checked, the text specified in the Search field will only match text in the items if the text is the same case. Case matching will be insensitive (not recognizing a difference between upper and lowercase letters) by default.
If checked, all matches of text in the Search field will be replaced with the Replace text. Otherwise, only the first instance of the Search for text in the file name will be replaced (left to right).
For example, given the file name: powertoys-powerrename.txt
:
power
super
The value of the renamed file would result in:
supertoys-powerrename.txt
supertoys-superrename.txt
Files will not be included in the operation. Only folders will be included.
Folders will not be included in the operation. Only files will be included.
Items within folders will not be included in the operation. By default, all subfolder items are included.
Appends a numeric suffix to file names that were modified in the operation. For example: foo.jpg
-> foo (1).jpg
Only the file name portion (not the file extension) is modified by the operation. For example: txt.txt
-> NewName.txt
Only the file extension portion (not the file name) is modified by the operation. For example: txt.txt
-> txt.NewExtension
The creation date and time attributes of a file can be used in the Replace with text by entering a variable pattern according to the table below.
Variable pattern | Explanation |
---|---|
$YYYY | Year represented by a full four or five digits, depending on the calendar used. |
$YY | Year represented only by the last two digits. A leading zero is added for single-digit years. |
$Y | Year represented only by the last digit. |
$MMMM | Name of the month |
$MMM | Abbreviated name of the month |
$MM | Month as digits with leading zeros for single-digit months. |
$M | Month as digits without leading zeros for single-digit months. |
$DDDD | Name of the day of the week |
$DDD | Abbreviated name of the day of the week |
$DD | Day of the month as digits with leading zeros for single-digit days. |
$D | Day of the month as digits without leading zeros for single-digit days. |
$hh | Hours with leading zeros for single-digit hours |
$h | Hours without leading zeros for single-digit hours |
$mm | Minutes with leading zeros for single-digit minutes. |
$m | Minutes without leading zeros for single-digit minutes. |
$ss | Seconds with leading zeros for single-digit seconds. |
$s | Seconds without leading zeros for single-digit seconds. |
$fff | Milliseconds represented by full three digits. |
$ff | Milliseconds represented only by the first two digits. |
$f | Milliseconds represented only by the first digit. |
For example, given the file names:
powertoys.png
, created on 11/02/2020powertoys-menu.png
, created on 11/03/2020Enter the criteria to rename the items:
powertoys
$MMM-$DD-$YY-powertoys
The value of the renamed file would result in:
Nov-02-20-powertoys.png
Nov-03-20-powertoys-menu.png
For most use cases, a simple search and replace is sufficient. There may be occasions, however, in which complicated renaming tasks come along that require more control. Regular Expressions can help.
Regular Expressions define a search pattern for text. They can be used to search, edit and manipulate text. The pattern defined by the regular expression may match once, several times, or not at all for a given string. PowerRename uses the ECMAScript grammar, which is common amongst modern programming languages.
To enable regular expressions, check the 'Use Regular Expressions' checkbox.
Note: You will likely want to check 'Match All Occurrences' while using regular expressions.
To use the Boost library instead of the standard library, check the Use Boost library
option in the PowerToys settings. It enables extended features, like lookbehind, which are not supported by the standard library.
Search for | Description |
---|---|
^ | Match the beginning of the filename |
$ | Match the end of the filename |
.* | Match all the text in the name |
^foo | Match text that begins with 'foo' |
bar$ | Match text that ends with 'bar' |
^foo.*bar$ | Match text that begins with 'foo' and ends with 'bar' |
.+?(?=bar) | Match everything up to 'bar' |
foo[sS]*bar | Match everything between 'foo' and 'bar' |
When using the variables, the 'Match All Occurrences' option must be enabled.
Search for | Replace With | Description |
---|---|---|
(.*).png | foo_$1.png | Prepends 'foo_' to the existing file name |
(.*).png | $1_foo.png | Appends '_foo' to the existing file name |
(.*) | $1.txt | Appends '.txt' extension to existing file name |
(^w+.$)|(^w+$) | $2.txt | Appends '.txt' extension to existing file name only if it does not have an extension |
(dd)-(dd)-(dddd) | $3-$2-$1 | Move numbers in the filename: '29-03-2020' becomes '2020-03-29' |
There are great examples/cheat sheets available online to help you
Filters can be used in PowerRename to narrow the results of the rename. Use the Preview window to check expected results. Select the column headers to switch between filters.
Original, the first column in the Preview window cycles between:
Renamed, the second column in the Preview windows can be toggled.