Back to Blog
Tutorial2024-12-226 min read

How to Rename Files in Sequence: Numbering and Patterns Guide

How to Rename Files in Sequence: Numbering and Patterns Guide

Sequential naming brings order to chaos. Learn to rename files with numbers, dates, and custom patterns.

Basic Sequential Renaming

Windows File Explorer 1. Select files in order 2. Press F2 3. Type base name 4. Result: name (1), name (2), name (3)...

Mac Finder 1. Select files 2. Right-click → Rename 3. Choose Format 4. Set name and start number

Advanced Numbering Patterns

Zero-Padded Numbers Without padding: 1, 2, 10, 100 (sorts incorrectly) With padding: 001, 002, 010, 100 (sorts correctly)

photo-001.jpg
photo-002.jpg
photo-010.jpg
photo-100.jpg

Custom Number Formats

image_0001.jpg (4 digits)
file-01-of-50.txt (numbered series)
chapter-01.pdf (chapter numbers)

Date-Based Sequences

Date Prefix

2024-01-15-photo-001.jpg
2024-01-15-photo-002.jpg

Date and Time

2024-01-15-1430-meeting.mp3
2024-01-15-1500-interview.mp3

PowerShell Sequential Renaming

$counter = 1
Get-ChildItem *.jpg | ForEach-Object {
  $newName = "photo-{0:D3}.jpg" -f $counter
  Rename-Item $_ $newName
  $counter++
}

Bash Sequential Renaming

counter=1
for file in *.jpg; do
  mv "$file" "photo-$(printf '%03d' $counter).jpg"
  ((counter++))
done

Pattern Combinations

Project + Sequence

wedding-smith-001.jpg
wedding-smith-002.jpg

Category + Date + Sequence

invoice-2024-01-001.pdf
invoice-2024-01-002.pdf

Event + Location + Sequence

conference-nyc-speaker-01.jpg
conference-nyc-speaker-02.jpg

When Sequences Aren't Enough

Sequential naming works for ordered files but loses meaning: - photo-047.jpg - what's in the photo? - document-003.pdf - what document?

File Renamer AI combines sequences with meaningful descriptions: - 001-beach-sunset-golden-hour.jpg - 002-beach-family-portrait.jpg

Try File Renamer AI - Intelligent sequential naming.

Ready to organize your files?

Start renaming with AI - no credit card required

Get Started Free