← Blog NEWProductivity Dec 5, 2026 · 6 min read

Bulk Renaming and Sorting Files on Windows

How to bulk rename files on Windows: built-in options, free pattern-based tools, and sorting hundreds of photos, scans or invoices into folders.

Bulk Renaming and Sorting Files on Windows

Some jobs drain your patience: hundreds of photos named IMG_4821, dozens of scans named Scan_0003, or invoices from different vendors with random names. Renaming them one by one can eat an entire afternoon. The good news is that Windows can bulk rename files, and free tools go much further. I will go from easiest to most powerful.

Start by designing the naming pattern

Before you change anything, decide on the pattern you want. A good one is:

  • Consistent and sortable. Write dates as year-month-day (2026-12-05) so alphabetical order matches time order.
  • Short but clear. For example: 2026-12-05_invoice_acme-store_001.pdf.
  • Free of problem characters. Avoid slashes, colons, question marks and double spaces.
  • Numbered with leading zeros. 001 is better than 1, because 10 will not sort before 2.

Write the pattern down in one note. Once the pattern is clear, any tool feels easy.

One important thing: copy the files to a backup folder before a bulk rename. Most tools have undo, but a backup never hurts.

Option 1: built-in File Explorer

The quickest route for simple cases:

  1. Select all files (Ctrl+A) or some with Ctrl or Shift.
  2. Press F2, type a base name, then Enter.
  3. Windows names everything with that name plus a number in brackets, like Holiday (1), Holiday (2).

That is enough for giving files the same base name, but it cannot insert dates, replace part of the text or control number formatting.

Option 2: PowerToys PowerRename

PowerToys is a free collection of utilities from Microsoft, and one of them, PowerRename, is added to the right-click menu. With it you can:

  • Search and replace text in many names at once, such as changing "Scan_" to "Letter_".
  • Use regular expressions for advanced patterns, if you want to learn them.
  • See a preview of the new names before applying them.
  • Adjust upper and lower case, and include numbering or modified dates, depending on the version.

For most people this is the best option. Download it from Microsoft's official channels or the project's official GitHub, and check the official page for the features in the latest version.

Option 3: dedicated rename tools

A few popular free tools for more complex needs:

  • Bulk Rename Utility: extremely complete with a dense interface, good when you need a combination of rules.
  • Advanced Renamer: step-based settings and a clear preview.
  • Photo metadata (EXIF): some tools can use the date a photo was taken as part of the name, instead of the date the file was copied.

A tip for choosing: start with PowerRename. Move to a dedicated tool when you need something like "take the shooting date, add the location name, then a daily sequence number".

Option 4: PowerShell for command-line fans

If you are comfortable in a terminal, PowerShell can rename thousands of files in one line. This example adds a date prefix to every PDF in a folder:

Get-ChildItem *.pdf | Rename-Item -NewName { "2026-12-05_" + $_.Name } -WhatIf

The -WhatIf parameter only shows what would happen without changing anything. Run it like that first, then remove -WhatIf if the result looks right. This is powerful for repeated jobs because the command can be saved and reused.

Sorting files into folders

Renaming is only half the job. Once names are tidy, files need to land in the right folders.

By type: in File Explorer, type *.pdf in the folder's search box, select all results, then cut and paste them into a "PDF" folder. Repeat for *.jpg and so on.

By date: sort by the date column, select a month's range with Shift, then move it into a per-month folder. For hundreds of files, PowerShell or a photo-sorting tool is more practical because it can create a 2026-12 folder by itself from each file's date.

By name content: if file names already contain a client code, such as ABC_, searching ABC_* lets you move all of them at once.

A simple folder structure is usually enough: year, then month, then document type. Avoid going deeper than three or four levels, since the deeper it goes, the harder things are to find.

A real-world example: tidying a folder of scanned invoices

Imagine a folder of 200 scans named Scan_0001.pdf to Scan_0200.pdf. Copy them to a working folder, open a file only when you need to know the vendor, then use PowerRename to change the Scan_ prefix to 2026-12_invoice_. After that, add vendor names by hand only for files that are still ambiguous. This finishes 90% of the work in minutes, and you type only where a human decision is needed.

For photos the order is similar: use a tool that reads the shooting date, move files into per-month folders, then add an event name to each folder rather than to each file.

Common mistakes

  1. Renaming with no backup, then realising the pattern was wrong.
  2. Changing the file extension (.jpg, .pdf) so the file will not open.
  3. Two files producing the same name, so one fails or is overwritten.
  4. Using the modified date when you meant the date the photo was taken.
  5. Inventing a pattern only you understand, which confuses colleagues.

When a custom tool makes sense

Free tools solve most cases. But sometimes your rules are too specific: file names must come from the contents of a PDF or spreadsheet, files must be sorted using customer data, or the same job is repeated daily by several people. If you spend several hours a week on the same thing, a small purpose-built app can be cheaper in the long run.

I describe that approach on the desktop software service page, including examples such as a file-processing utility that runs on your own computer. Read it just to judge whether your need is ready for a custom tool, or whether the tools above are enough.

Quick summary

  • Design the naming pattern before touching any file.
  • Back up first.
  • F2 for the simplest cases, PowerRename for most needs, a dedicated tool or PowerShell for complex ones.
  • Sort into folders by year, month and type.
  • Save your rules so the next job is just a re-run.

One afternoon of tidying now will save dozens of hours hunting for files later.

Read next