PatternRename
Help & Documentation
Everything you need to batch rename files efficiently — from basic usage to advanced patterns, RegExp, and Smart Fill logic.
Getting Started
PatternRename is a powerful web-based batch file renamer that uses pattern detection and smart-fill logic to rename images and other files — entirely in your browser, with no installation required.
Toolbar Reference
| Button | Function |
|---|---|
| ▶ Load & Reset | Selects a new folder and loads its files. If a folder was previously opened, it reopens without showing the picker. Hold Shift and click to force a new folder selection. |
| ✕ Change Folder | Clears the saved folder so the next Load click opens the folder picker again. Useful when switching to a different directory. |
| + Insert Row | Inserts a blank slot below the current selection. Note: this shifts the editable pattern values without affecting the underlying file list order. |
| ✕ Delete Row | Removes the currently selected row from the pattern table. |
| + Add Column | Adds a new naming component column. The final filename shown in the Preview column is the concatenation of all pattern columns in order. |
| ⚡ Smart Fill All | Analyses the pattern established in the first few filled rows and automatically fills the remaining rows. Requires at least two rows of input to detect a sequence. |
| Show All | Displays thumbnail previews for every image in the list, allowing visual confirmation before renaming. |
| ✎ Rename All Files | Applies all renames as shown in the Preview column. Duplicate filenames are rejected before any rename is performed. |
Advanced Naming Patterns
PatternRename supports much more than plain text. You can use special syntax in any column cell to extract, transform, or organise filenames dynamically.
Use square brackets to extract characters from the Original Filename (extension excluded). Positions are 1-based.
[1-3] → USA # chars 1 through 3
[5,6,7] → PET # chars at positions 5, 6, 7
[5,2,8] → EPT # out-of-order extraction
[10-7] → YPPU # reverse: chars 10 down to 7
[5,6,7,3-1] → PETASU # combined: forward + reverse
[1-50] in a RegExp-style column to grab the full original name (first 50 chars) — handy as a base for further transformations.
Extract dynamic parts of a filename using patterns wrapped in forward slashes /pattern/.
/\d+/ → 2026 # first run of digits
/_[0-9]+/ → _2026 # underscore + digits
/DSC_(.*)/ → (capture group) # everything after DSC_
/[A-Z]{3}/ → USA # first 3 uppercase letters
( ) in a RegExp return only the captured portion, not the full match. This is useful for stripping prefixes or suffixes.
If any column value ends with /, PatternRename automatically creates that subfolder and moves the file into it.
Result: Holiday/Photo.jpg
# Nested folders also work:
# Column 1 = "2026/Summer/" Column 2 = "IMG_001"
Result: 2026/Summer/IMG_001.jpg
[1-3] → USA) with a trailing / to automatically sort files into country folders: USA/, UK_/, etc.
Smart Fill Logic
The Smart Fill feature detects the pattern from the first rows you fill in and automatically completes the rest. You must provide at least two rows to establish a sequence.
| Pattern Type | Row 1, Row 2 Input | Resulting Sequence |
|---|---|---|
| Alphanumeric | Part_01, Part_02 | Part_03, Part_04 … |
| Arithmetic | 10, 20 | 30, 40, 50 … |
| Alphabetic | A, B | C, D, E … Z, A … |
| Repeating Blocks | A, A, B, B | C, C, D, D … |
| Fixed-suffix Alternating | DOF, DOK | DOF, DOK, DOF, DOK … |
| Leading-zero Numeric | A3B05, A3B07 | A3B09, A3B11 … (zero preserved) |