Skip to Content
User GuideSequence Numbering

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
Sequence numbering settings

Main Options

OptionMeaningExample
StartFirst value10 -> 10, 11, 12...
StepIncrement between values5 -> 10, 15, 20...
Every N filesReuse the same value for N items before advancing2 -> 01, 01, 02, 02...
Width (Arabic)Zero padding length. 0 means auto-width3 -> 001, 002
ModeInsert into name or replace nameinsert vs replace
Prefix/Suffix (replace mode)Text around sequence valueIMG_ + 001 + _RAW
Insert Position (insert mode)Where sequence is insertedposition 0 = beginning
Count from EndPosition relative to endinsert near extension safely
Apply to name onlyKeep extension safe when enabled.pdf remains .pdf
Grouping ModeChoose global numbering, property resets, or extracted-key groupingNo Grouping, Reset, Advance
Reset Sequence ByProperty that restarts counters in Reset modeFile Extension
Group Key SourceHow Advance extracts shared keysSubstring or Regexp Capture Group
Skip Single-Item GroupsOmits sequence output for groups with one itemsingle-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, step 1, width 0 -> 01..12
  • 120 files, start 1, step 1, width 0 -> 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, 04
  • 2 -> 01, 01, 02, 02
  • 3 -> 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, step 1, width 2, 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, width 3, insert at 0
  • Output: 001photo.jpg

With count-from-end:

  • Name: photo.jpg
  • Insert at 4 from 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_, Start 1, width 3
  • 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, step 1, width 2, 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, step 1, width 2, 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 extract
  • Skip 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 key
  • Capture 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 group 1
  • 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: Length and Skip from beginning
  • For Regexp Capture Group: Regexp Pattern and Capture 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 files greater than 1
  • Grouping Mode other than No Grouping
  • Group-key extraction settings in Advance mode
  • Skip Single-Item Groups
  • Arabic width greater than 3

Practical Patterns

  1. Camera imports: IMG_0001, IMG_0002, IMG_0003
  2. Subtitle/video pairs: one value per two files with Every N files = 2
  3. Episode bundles: shared number per extracted key with Advance
  4. Per-folder restart: FolderA_001, FolderB_001

Troubleshooting Quick Checks

  1. Unexpected numbering jump: verify sort or manual order before applying sequence.
  2. Every N files is not available: Advance mode uses extracted keys instead of count-based cadence.
  3. Files that should share a number do not: verify Length and Skip from beginning, or check the Regexp Pattern and Capture Group Index.
  4. No numbering in some groups: check Skip Single-Item Groups.
  5. Extension changed unexpectedly: enable Apply to name only.
Last updated on