Rename.Tools LogoRename.Tools
FeaturesGuidesApp
RRename.Tools

A powerful browser-based batch renaming tool. Supports regex, rule chains, live preview — all processing done locally with complete privacy.

100% Local Processing, Zero Data Upload

Legal

  • Terms of Service
  • Privacy Policy
  • Disclaimer

Resources

  • All Features
  • Guides
  • GitHub
  • Report an Issue
  • Changelog

Languages

  • English
  • 中文
  • 日本語
  • Español
  • Français
  • 한국어

© 2026 Rename.Tools. All rights reserved.

Made with by developers

Back to guides

Numbering

Create stable filenames with sequence numbering

Sequence numbers are simple, but the setup matters. Padding, sort order, and scope determine whether names stay stable after export, upload, or archive.

9 min readUpdated 2026-05-22

Use padding for reliable sorting

Without padding, file managers may sort 10 before 2. Padding fixes that by making every number the same width, so alphabetical sorting matches numeric order.

Use 2 digits for small albums, 3 digits for hundreds of files, and 4 digits when the folder may grow over time. Choosing one extra digit is usually harmless; choosing too few can create a messy rename later.

Padding is especially important when files will be uploaded to cloud drives, shared with clients, imported into editing software, or archived in systems that use simple alphabetical ordering.

Rename.Tools sequence rule preview with zero-padded numbers applied to sample files
Zero padding is visible immediately in the preview, so sorting problems are easy to catch before execution.
photo 1.jpg, photo 2.jpg, photo 10.jpg001_photo.jpg, 002_photo.jpg, 010_photo.jpg

Choose the right sequence scope

Global numbering is best when the full batch should be one ordered set. Per-folder numbering is better for albums, chapters, exports, or client folders that should each start at 001.

Per-extension and per-category scopes are useful when one folder contains different file types. For example, screenshots and videos can each get their own numbering without being mixed into the same sequence.

  1. 1Use global scope for one album or one export batch.
  2. 2Use per-folder scope when each folder should keep its own sequence.
  3. 3Use per-extension scope when images, videos, and documents should be numbered separately.
  4. 4Sort before numbering when imported order is not reliable.
  5. 5Use natural sort for names such as file1, file2, and file10.

Combine sequences with templates

A sequence rule can do more than add a number. Combine {n}, {name}, dates, folder names, or metadata variables to create names that are structured but still readable.

Templates are strongest when the stable sorting part comes first. A pattern like {date}_{n}_{name} sorts by date first, then by sequence. A pattern like {name}_{n}_{date} may be more readable, but it will group by original name instead.

scan.jpgarchive_2026_001_scan.jpg

Preserve numbers when the original order matters

Some files already contain useful numbers: scanned pages, exported frames, chapter files, or camera burst shots. In those cases, you may not want to generate a new sequence from import order.

Use Preserve original numbers when the number inside the filename is already the source of truth. Rename.Tools can extract that number, pad it consistently, and keep the relationship between old and new names clear.

  1. 1Enable Preserve original numbers in the Sequence rule.
  2. 2Keep the extract pattern as (\d+) for simple filenames with one number.
  3. 3Use a more specific pattern when filenames contain several numbers, such as page-(\d+).
  4. 4Preview files where extraction fails; they will fall back to normal sequencing.
page-7-scan.jpgpage_007_scan.jpg

Preserving the original page number avoids changing document order.

Decide the order before you number

Sequence numbering is only as good as the order behind it. Import order can be convenient, but it is not always stable across browsers, folders, or operating systems.

For predictable results, choose the sort order intentionally before numbering. Name sorting works well for camera files, modified time can work for documents, and extension sorting is useful when you are numbering each file type separately.

  1. 1Use Sort before numbering when imported order is not meaningful.
  2. 2Choose File name for camera-style filenames that already sort correctly.
  3. 3Choose Modified time for document batches that were created or exported in order.
  4. 4Preview the first and last numbers to confirm the ordering is right.
scan10.jpg, scan2.jpg, scan1.jpg001_scan1.jpg, 002_scan2.jpg, 010_scan10.jpg

Natural sort prevents scan10 from being numbered before scan2.

Related guides

Organize photos by date and sequence numberBatch file renaming basics: import, preview, execute

Ready to try the workflow?

Open Rename.Tools, add a few sample files, and preview every rule before touching the real filenames.

Start renaming