Basic Renaming Rules
Basic rules are the fastest way to clean, standardize, and safely transform filenames before you run a batch rename.
Rule Reference
| Rule | What it does | Key options | Variables supported in inputs | Pro |
|---|---|---|---|---|
| Prefix | Adds text to the start of filename | Prefix text | Yes | No |
| Suffix | Adds text to the end of filename | Suffix text, Apply to name only | Yes | No |
| Insert Text | Inserts text at a specific position | Text, position, count from end, Apply to name only | Yes | No |
| Delete Text | Deletes a number of characters from a position | Position, length, count from end, Apply to name only | No | No |
| Search and Replace | Replaces matched text in filename | Find, replacement, Regexp mode, Replace Scope, Ignore Case (plain mode), Apply to name only | Replacement only | Regexp mode is Pro |
| Replace Whole Name | Replaces the whole filename with one template/value | Replacement text, Apply to name only | Yes | Yes |
| Case Conversion | Converts casing style | lower, UPPER, Title, camelCase, snake_case, kebab-case, Apply to name only | N/A | No |
| Sanitize | Cleans unsafe/problematic text | Filesystem unsafe chars, bad Unicode, slugify options, Apply to name only | N/A | Yes |
| URL Decode | Decodes percent-encoded text | No options | N/A | Yes |
| Sequence Numbering | Adds generated sequence values | Format, start, step, Every N files, width, insert/replace mode, prefix/suffix, Grouping Mode, Apply to name only | Prefix/suffix support variables | Advanced options are Pro |
| Set Extension | Replaces extension only | New extension text | Yes | No |
| Compose | Builds full output from blocks/templates | Visual blocks or Text Mode, include extension toggle | Yes (Text Mode + variable blocks) | Yes |
How to Add a Rule
- Open the Rules panel.
- Tap Add Rule.
- Pick a rule type.
- Configure values.
- Tap Add (or Save when editing).
- Review preview output before renaming.
Detailed Usage by Rule
Prefix
Use when every file should start with a common label.
Examples:
- Input filename:
report.pdf - Prefix:
Q1_ - Output:
Q1_report.pdf
Variable example:
- Prefix:
{parent}_ - File in
Invoices/receipt.pdf->Invoices_receipt.pdf
Suffix
Use when every file needs a trailing marker.
Examples:
- Input:
report.pdf - Suffix:
_final - Output:
report_final.pdf
If Apply to name only is disabled, suffix can affect the extension segment too.
Insert Text
Use for position-based insertion.
Examples:
- Input:
IMG1234.jpg - Insert:
_at position3 - Output:
IMG_1234.jpg
From end example:
- Input:
archive.tar.gz - Insert:
_oldat position3from end - Output affects the full working string if Apply to name only is off.
Delete Text
Use for precise character removal.
Examples:
- Input:
draft_v01.txt - Delete at position
5, length4 - Output:
draft1.txt
Search and Replace
Use plain mode for literal replacements; Regexp mode for patterns.
Plain example:
- Find:
(space) - Replace:
_ My File.txt->My_File.txt
Replace Scope example:
- Find:
a - Replace:
o bananaAll Occurrences->bononoFirst Occurrence Only->bonana
Regexp example (Pro):
- Pattern:
\d{4}-\d{2}-\d{2} - Replace:
DATE invoice-2026-02-27.pdf->invoice-DATE.pdf
See the Regexp Cheatsheet for a full list of supported patterns and filename examples.
Notes:
- Replace Scope works in both plain mode and Regexp mode.
- All Occurrences is the default, including for older saved rules created before this option existed.
- Preview and diff highlighting follow the selected replace scope.
- Ignore Case applies only in plain mode.
- Regexp helper tokens and cursor controls are shown only while Regexp mode is enabled.
- Replacement text supports variables, for example
{parent | lower}.
Replace Whole Name (Pro)
Replaces the full name in one step.
Examples:
- Template:
document oldname.pdf->document.pdf(when Apply to name only is on)
Variable example:
- Template:
{date_created:yyyy-MM-dd}_{name} report.pdf->2026-02-27_report.pdf
Case Conversion
Supports:
lowerUPPERTitlecamelCasesnake_casekebab-case
Examples:
My Report File.txt->my_report_file.txt(snake_case)my report file.txt->myReportFile.txt(camelCase)
Sanitize (Pro)
Modes:
- Remove Unsafe (Filesystem): strips
/and: - Remove Bad Unicode: strips control/non-printable chars
- Slugify: standardizes names with configurable options
Slugify options include:
- Lowercase
- Trim spaces
- Replace spaces with a symbol
- Separate camelCase words
URL Decode (Pro)
Decodes percent-encoded sequences.
Example:
My%20File%20Name.txt->My File Name.txt
Sequence Numbering
See full reference in Sequence Numbering.
Quick example:
- Start:
1, step:1, width:3 - Output sequence:
001,002,003
Cadence example:
Every N files = 2- Output sequence:
01,01,02,02
Advanced grouping notes:
- Use
Grouping Mode = Resetto restart counters by file property. - Use
Grouping Mode = Advanceto assign one sequence value per extracted key. Suggest from namescan prefill the extracted-key settings from current working filenames.
Set Extension
Changes only extension output.
Examples:
photo.jpeg+jpg->photo.jpg- Dynamic extension:
{ext | upper}onfile.txt->file.TXT
Compose (Pro)
Build the complete output name with blocks/templates instead of stacking many simple rules.
Examples:
- Visual blocks:
Text("INV_") + Variable(name) + Text("_") + Sequence(1,1,4) - Text Mode:
{date_now:yyyyMMdd}_{name}_{sequence:1:1:3}
See full reference in Compose Rule (Visual Block Editor).
Apply to Name Only (Important)
For rules that support it, Apply to name only controls whether extension is protected.
- Enabled: transform only filename body (
report) and keep extension (.pdf) unchanged. - Disabled: transform the full string (
report.pdf), so extension can also change.
Examples with Suffix _v2:
- Enabled:
report.pdf->report_v2.pdf - Disabled:
report.pdf->report.pdf_v2
Examples with Replace pdf -> doc:
- Enabled:
notes.pdf->notes.pdf(name body may not matchpdf) - Disabled:
notes.pdf->notes.doc
File Name Safety
A generated name is shown with an error in the preview (“Invalid file name” or “File name is too long”) and is skipped when it:
- is empty,
.or.. - contains a slash
- is only an extension (the file would be hidden)
- exceeds 255 bytes
Date formats such as dd/MM/yyyy produce slashes and cannot be used in file names. Use dd.MM.yyyy or ddMMyyyy.
Case-only renames (report.txt to Report.txt) work on case-insensitive storage and are not reported as conflicts.
Best Practices
- Start with simple rules and preview first.
- Keep extension-sensitive operations intentional.
- Prefer specific patterns over very broad replacements.
- Test on mixed file sets before large batch runs.
- Save successful rule stacks as presets.