Sequence Numbering
Sequence numbering generates sortable counters for files and folders. You can insert values into existing names or replace names entirely. The same numbering model is also used by Compose sequence blocks.
Core Formats
- Arabic:
1,2,3 - Roman Upper:
I,II,III - Roman Lower:
i,ii,iii - Letters Upper:
A,B,C - Letters Lower:
a,b,c
Main Options
| Option | Meaning | Example |
|---|---|---|
| Start | First value | 10 -> 10, 11, 12... |
| Step | Increment between values | 5 -> 10, 15, 20... |
| Every N files | Reuse the same value for N items before advancing | 2 -> 01, 01, 02, 02... |
| Width (Arabic) | Zero padding length. 0 means auto-width | 3 -> 001, 002 |
| Mode | Insert into name or replace name | insert vs replace |
| Prefix/Suffix (replace mode) | Text around sequence value | IMG_ + 001 + _RAW |
| Insert Position (insert mode) | Where sequence is inserted | position 0 = beginning |
| Count from End | Position relative to end | insert near extension safely |
| Apply to name only | Keep extension safe when enabled | .pdf remains .pdf |
| Grouping Mode | Choose global numbering, property resets, or extracted-key grouping | No Grouping, Reset, Advance |
| Reset Sequence By | Property that restarts counters in Reset mode | File Extension |
| Group Key Source | How Advance extracts shared keys | Substring or Regexp Capture Group |
| Skip Single-Item Groups | Omits sequence output for groups with one item | single-item groups stay unchanged |
Width Behavior
For Arabic format:
width > 0: always fixed padding.width = 0: SmartRenamer auto-calculates padding from the largest value in scope.
Examples:
- 12 files, start
1, step1, width0->01..12 - 120 files, start
1, step1, width0->001..120
Auto width also respects grouping and cadence. For example, if Every N files is 2, width is based on the final number of generated sequence values, not the raw file count.
Every N Files
Every N files controls cadence. The default is 1, which matches the original one-number-per-file behavior.
Examples:
1->01, 02, 03, 042->01, 01, 02, 023->01, 01, 01, 02, 02, 02
This follows the current order after sorting or manual ordering. In Reset mode, cadence is evaluated inside each reset group.
Practical example for subtitle pairs:
- Input order:
episode01.avi,episode01.srt,episode02.avi,episode02.srt - Settings: start
1, step1, width2,Every N files = 2 - Output sequence values:
01,01,02,02
When Grouping Mode is Advance, numbering is driven by extracted keys instead of file-count cadence, so Every N files is not the active control in that mode.
Placement Modes
Insert Mode
Sequence is inserted into the current working filename.
Examples:
- Name:
photo.jpg - Start
1, width3, insert at0 - Output:
001photo.jpg
With count-from-end:
- Name:
photo.jpg - Insert at
4from end - Output example:
photo001.jpg(exact position depends on current transformed text length)
Replace Mode
Sequence output becomes the whole working name (plus optional prefix/suffix).
Examples:
- Prefix
IMG_, Start1, width3 - Output:
IMG_001,IMG_002,IMG_003
If Apply to name only is enabled, original extension is kept.
Grouping Modes
Grouping Mode defines how numbering scope is calculated.
No Grouping: one global sequence for the whole current list.Reset: restart numbering when a selected property changes.Advance: files with the same extracted key share one sequence value.
Reset Mode
Reset is the existing property-based grouping flow.
Available reset keys:
- Parent Folder
- File Extension
- Date Created
- Date Modified
Optional toggle:
- Skip Single-Item Groups: if a group has only one file, sequence output is omitted for that group.
Grouped example:
- Input order:
a.jpg,b.jpg,c.png,d.png - Settings: start
1, step1, width2,Grouping Mode = Reset,Reset Sequence By = File Extension - Output sequence values:
01,02,01,02
Grouped cadence example:
- Input order:
a.jpg,b.jpg,c.png,d.png - Settings: start
1, step1, width2,Grouping Mode = Reset,Reset Sequence By = File Extension,Every N files = 2 - Output sequence values:
01,01,01,01
Advance Mode
Advance groups files by extracted key instead of by file property. Files that resolve to the same key share one sequence number, and new numbers are assigned in first-seen key order.
Group Key Source: Substring
Use Substring when the meaningful bundle key can be pulled from a consistent section of the current working filename.
Length: how many characters to extractSkip from beginning: how many characters to ignore before extracting
Example:
- Current working filenames:
movie_ep01_video.mp4,movie_ep01_sub.srt,movie_ep02_video.mp4,movie_ep02_sub.srt - Settings:
Grouping Mode = Advance,Group Key Source = Substring,Skip from beginning = 6,Length = 4 - Extracted keys:
ep01,ep01,ep02,ep02 - Output sequence values:
01,01,02,02
Group Key Source: Regexp Capture Group
Use Regexp Capture Group when a pattern is more reliable than fixed character positions.
Regexp Pattern: pattern used to extract the keyCapture Group Index: which capture group becomes the shared key
Example:
- Current working filenames:
movie_ep01_video.mp4,movie_ep01_sub.srt,movie_ep02_video.mp4,movie_ep02_sub.srt - Settings: pattern
^movie_(ep\d+)_, capture group1 - Extracted keys:
ep01,ep01,ep02,ep02 - Output sequence values:
01,01,02,02
Suggest from Names
The advanced grouping flow includes Suggest from names. It uses current working filenames, after earlier rules have already been applied, to propose grouping settings.
What it can suggest:
- For
Substring:LengthandSkip from beginning - For
Regexp Capture Group:Regexp PatternandCapture Group Index
What the suggestion UI shows:
- Confidence score
- Preview filenames
- Highlighted extracted segments
- Apply and Cancel actions
If the current names do not produce a reliable result, the dialog keeps your existing values and shows a no-suggestion message instead.
Variables in Sequence Prefix/Suffix
In replace mode, prefix and suffix support variables.
Examples:
- Prefix:
{parent}_ - Suffix:
_{date_now:yyyyMMdd}
Possible output:
Invoices_001_20260227.pdf
Compose and Text Template Parity
The same advanced sequence settings are available in:
- the standalone Sequence Numbering rule
- the Compose visual Sequence block editor
- the Compose text-mode
#sequence insertion flow
For named Compose template syntax such as increment_every, grouping_mode, and group_key_source, see Compose Rule (Visual Block Editor).
Pro Notes
Sequence rule is available in Free mode, but advanced options require Pro:
- Non-Arabic formats
Every N filesgreater than1Grouping Modeother thanNo Grouping- Group-key extraction settings in
Advancemode Skip Single-Item Groups- Arabic width greater than
3
Practical Patterns
- Camera imports:
IMG_0001,IMG_0002,IMG_0003 - Subtitle/video pairs: one value per two files with
Every N files = 2 - Episode bundles: shared number per extracted key with
Advance - Per-folder restart:
FolderA_001,FolderB_001
Troubleshooting Quick Checks
- Unexpected numbering jump: verify sort or manual order before applying sequence.
Every N filesis not available:Advancemode uses extracted keys instead of count-based cadence.- Files that should share a number do not: verify
LengthandSkip from beginning, or check theRegexp PatternandCapture Group Index. - No numbering in some groups: check Skip Single-Item Groups.
- Extension changed unexpectedly: enable Apply to name only.