Skip to Content
User GuideBasic Renaming Rules

Basic Renaming Rules

Basic rules are the fastest way to clean, standardize, and safely transform filenames before you run a batch rename.

Rule Reference

RuleWhat it doesKey optionsVariables supported in inputsPro
PrefixAdds text to the start of filenamePrefix textYesNo
SuffixAdds text to the end of filenameSuffix text, Apply to name onlyYesNo
Insert TextInserts text at a specific positionText, position, count from end, Apply to name onlyYesNo
Delete TextDeletes a number of characters from a positionPosition, length, count from end, Apply to name onlyNoNo
Search and ReplaceReplaces matched text in filenameFind, replacement, Regexp mode, Replace Scope, Ignore Case (plain mode), Apply to name onlyReplacement onlyRegexp mode is Pro
Replace Whole NameReplaces the whole filename with one template/valueReplacement text, Apply to name onlyYesYes
Case ConversionConverts casing stylelower, UPPER, Title, camelCase, snake_case, kebab-case, Apply to name onlyN/ANo
SanitizeCleans unsafe/problematic textFilesystem unsafe chars, bad Unicode, slugify options, Apply to name onlyN/AYes
URL DecodeDecodes percent-encoded textNo optionsN/AYes
Sequence NumberingAdds generated sequence valuesFormat, start, step, Every N files, width, insert/replace mode, prefix/suffix, Grouping Mode, Apply to name onlyPrefix/suffix support variablesAdvanced options are Pro
Set ExtensionReplaces extension onlyNew extension textYesNo
ComposeBuilds full output from blocks/templatesVisual blocks or Text Mode, include extension toggleYes (Text Mode + variable blocks)Yes
Add Rule sheet with rule types

How to Add a Rule

  1. Open the Rules panel.
  2. Tap Add Rule.
  3. Pick a rule type.
  4. Configure values.
  5. Tap Add (or Save when editing).
  6. 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 position 3
  • Output: IMG_1234.jpg

From end example:

  • Input: archive.tar.gz
  • Insert: _old at position 3 from 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, length 4
  • 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
  • banana
  • All Occurrences -> bonono
  • First 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:

  • lower
  • UPPER
  • Title
  • camelCase
  • snake_case
  • kebab-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 = Reset to restart counters by file property.
  • Use Grouping Mode = Advance to assign one sequence value per extracted key.
  • Suggest from names can 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} on file.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 match pdf)
  • 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

  1. Start with simple rules and preview first.
  2. Keep extension-sensitive operations intentional.
  3. Prefer specific patterns over very broad replacements.
  4. Test on mixed file sets before large batch runs.
  5. Save successful rule stacks as presets.
Last updated on