✎

Batch File Renamer

Preview and rename multiple files with prefixes, suffixes, replacements, and numbering

Preview names

Batch File Renamer — what it does

Select any number of files and this tool builds a new name for each one using find-and-replace, a prefix, a suffix and optional sequential numbering with zero padding. Every proposed name is shown in a preview table before anything happens, and the renamed set is delivered as a ZIP so your original files are never touched.

Worked example

Three photos from a site visit renamed with the prefix site-visit-, the camera's IMG_ replaced by a hyphen, and two-digit numbering from 1 (Preserve extension and Add numbering both on).

Input — selected files and settings

IMG_4471.jpg
IMG_4472.jpg
IMG_4473.jpg
Prefix: site-visit-
Find: IMG_ → Replace with: -
Starting number: 1 · Number padding: 2
Preserve extension: on · Add numbering: on

Output — preview table, and the entries of renamed-files.zip

IMG_4471.jpg → site-visit-01-4471.jpg
IMG_4472.jpg → site-visit-02-4472.jpg
IMG_4473.jpg → site-visit-03-4473.jpg

The number is inserted between the prefix and the find-and-replaced base name with no separator of its own, which is why the replacement text here is a hyphen. The ZIP is always called renamed-files.zip and the status reads Done.

When this tool helps

  • Cleaning up a folder of downloads where names carry copy suffixes, random hashes or spaces that break scripts.
  • Preparing a numbered delivery set for a client, so files sort in the intended order in any file manager.
  • Stripping a customer name or project code out of dozens of filenames before sharing a folder externally.

How to use it

  1. Choose the files you want to rename.
  2. Set find-and-replace text, a prefix or a suffix.
  3. Turn on sequential numbering and set the starting number and padding.
  4. Check the preview table, then download the renamed ZIP.

Accuracy, limits, and good practice

  • Keep the preserve-extension option on unless you deliberately want to change file types; renaming an extension does not convert a file.
  • Zero padding matters for sorting: file2 sorts after file10 in most file managers, but file002 does not.
  • Because output is a ZIP, this cannot rename files in place on disk. Extract the archive and delete the originals once you have checked them.

Frequently asked questions

What happens if two files end up with the same name?

Add sequential numbering. Without a numbering component, identical inputs produce identical names and one entry can overwrite another when extracted.

Is there a size limit?

The practical limit is memory. Hundreds of documents are fine; several gigabytes of video in one batch will exhaust the browser tab.

Where does the sequence number go in the new name?

Directly after the prefix and before the original base name: prefix + number + base + suffix + extension. Nothing is put between the number and the base name, so if you want a separator, end the prefix with one or start the replacement text with one. Untick Add numbering to drop the number; set Number padding to 0 for unpadded numbers.

Does Find replace every occurrence, and is it case-sensitive?

Every occurrence in the base name is replaced and matching is case-sensitive, so IMG_ does not match img_. While Preserve extension is on, the extension is not searched. Leave Find empty to skip replacement; an empty Replace with deletes the matched text. The preview updates as you type, before you click the rename button.

Related tools on this site

Everything above runs inside this page. Batch File Renamer needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

批量檔案重新命名能做什麼

選取任意數量的檔案,工具會以尋找取代、前綴、後綴與可選的補零流水號,為每個檔案組出新名稱。所有預計名稱都會先列在預覽表中,確認後再以 ZIP 形式輸出,原始檔案完全不會被更動。

實際範例

三張現場勘驗照片:前綴 site-visit-,把相機的 IMG_ 換成連字號,並從 1 起加兩位數編號(保留副檔名與加編號皆開啟)。

來源:選取的檔案與設定

IMG_4471.jpg
IMG_4472.jpg
IMG_4473.jpg
Prefix: site-visit-
Find: IMG_ → Replace with: -
Starting number: 1 · Number padding: 2
Preserve extension: on · Add numbering: on

產生:預覽表,以及 renamed-files.zip 內的檔名

IMG_4471.jpg → site-visit-01-4471.jpg
IMG_4472.jpg → site-visit-02-4472.jpg
IMG_4473.jpg → site-visit-03-4473.jpg

編號會直接夾在前綴與(已取代過的)主檔名之間,本身不帶任何分隔符號,所以此例把取代文字設成連字號。ZIP 固定叫 renamed-files.zip,狀態列顯示「處理完成。」

什麼時候用得上

  • 整理下載資料夾:名稱裡有副本後綴、亂碼雜湊或空白,容易讓腳本出錯。
  • 為客戶準備編號交付檔,讓檔案在任何檔案總管中都依預期順序排列。
  • 對外分享資料夾前,把數十個檔名中的客戶名稱或專案代號整批移除。

使用步驟

  1. 選擇要重新命名的檔案。
  2. 設定尋找取代文字、前綴或後綴。
  3. 開啟流水編號,設定起始號碼與補零位數。
  4. 檢查預覽表,再下載重新命名後的 ZIP。

精確度、限制與實務建議

  • 除非刻意要換檔案型別,否則請保持「保留副檔名」開啟;改副檔名並不會轉換檔案格式。
  • 補零會影響排序:多數檔案總管中 file2 會排在 file10 之後,但 file002 不會。
  • 輸出是 ZIP,因此無法直接改硬碟上的檔案。請解壓縮確認無誤後,再刪除原始檔。

常見問題

如果兩個檔案算出同一個名稱怎麼辦?

請加上流水編號。若沒有編號成分,相同輸入會產生相同名稱,解壓縮時可能互相覆蓋。

有檔案大小限制嗎?

實際限制在記憶體。數百份文件沒問題,但一次處理好幾 GB 的影片會讓分頁耗盡記憶體。

編號會放在新檔名的哪個位置?

緊接在前綴之後、原主檔名之前:前綴+編號+主檔名+後綴+副檔名。編號與主檔名之間不會補任何符號,想要分隔符號就把它寫在前綴結尾或取代文字開頭。取消勾選加編號就不加號碼;補零位數設為 0 則不補零。

尋找會取代所有符合的文字嗎?區分大小寫嗎?

主檔名裡每一處符合的文字都會被取代,而且區分大小寫,IMG_ 不會對到 img_。保留副檔名開啟時不會搜尋副檔名。尋找欄留空就跳過取代;取代欄留空等於刪掉符合的文字。預覽會隨打字即時更新,不必先按重新命名。

本站相關工具

以上步驟全部在這個頁面內完成,批量檔案重新命名 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。