🏷️ 文件批量重命名Batch File Renamer
一次给成百上千个文件改名:支持查找替换(可用正则)、添加前缀后缀、按模板加序号 {n}、修改日期 {date}、大小写转换、批量改扩展名,按文件名/时间/大小排序,实时预览并提示重名;可下载改名后的 ZIP、在 Chrome/Edge 中直接改文件夹里的文件,或复制 Windows/macOS 改名命令。Rename hundreds of files at once: find & replace (with regex), prefix/suffix, templates with a counter {n} and modified date {date}, case changes and new extensions, sorted by name, date or size, with a live preview and duplicate warnings. Download a ZIP of renamed copies, rename in place in Chrome/Edge, or copy PowerShell/bash rename commands.
模板变量:{name} 原文件名(已应用查找替换)、{n} 序号、{date} 修改日期(YYYYMMDD)、{size} 大小(KB)。例如“旅行_{date}_{n}”。Template tokens: {name} original name (after find/replace), {n} counter, {date} modified date (YYYYMMDD), {size} size in KB. E.g. “trip_{date}_{n}”.
浏览器出于安全不能直接改动你电脑里的文件名,所以提供三种方式:下载打包好的新文件 ZIP;在 Chrome / Edge 中选择文件夹直接改名;或复制改名命令,在文件所在目录的终端里运行。Browsers can’t rename files on your disk by themselves, so there are three ways: download a ZIP of renamed copies; in Chrome / Edge pick a folder and rename in place; or copy the rename commands and run them in a terminal in that folder.
使用说明与常见问题How-to & FAQ
「文件批量重命名」是什么?What is the Batch File Renamer?
一次给成百上千个文件改名:支持查找替换(可用正则)、添加前缀后缀、按模板加序号 {n}、修改日期 {date}、大小写转换、批量改扩展名,按文件名/时间/大小排序,实时预览并提示重名;可下载改名后的 ZIP、在 Chrome/Edge 中直接改文件夹里的文件,或复制 Windows/macOS 改名命令。Rename hundreds of files at once: find & replace (with regex), prefix/suffix, templates with a counter {n} and modified date {date}, case changes and new extensions, sorted by name, date or size, with a live preview and duplicate warnings. Download a ZIP of renamed copies, rename in place in Chrome/Edge, or copy PowerShell/bash rename commands.
如何使用「文件批量重命名」?How do I use the Batch File Renamer?
选择或拖入文件,设置规则后在下方表格预览新文件名,确认无重名后选择导出方式。照片按拍摄顺序编号可以用“修改时间”排序配合模板“旅行_{n}”。Choose or drop files, set the rules and check the preview table, then pick an output. To number photos in shooting order, sort by modified time and use a template like “trip_{n}”.
为什么不能直接改我电脑上的文件名?Why can’t it rename files on my disk directly?
普通网页没有修改本地文件的权限。Chrome 和 Edge 支持“选择文件夹”授权后直接改名;其他浏览器请下载 ZIP 或复制改名命令在终端执行。Regular pages can’t modify local files. Chrome and Edge let you grant a folder and rename in place; elsewhere download the ZIP or run the generated commands in a terminal.
正则替换怎么写?How do I use regex?
勾选“正则”后,查找框按 JavaScript 正则书写,替换框可用 $1、$2 引用分组。例如查找 (\d+)-(\d+) 替换为 $2-$1 可交换两段数字。Tick Regex and write a JavaScript pattern; use $1, $2 in the replacement. E.g. find (\d+)-(\d+), replace $2-$1 to swap two numbers.
「文件批量重命名」免费吗?文件会上传吗?Is the Batch File Renamer free? Are my files uploaded?
「文件批量重命名」完全免费,无需注册。文件只在你的浏览器里读取和处理,不会上传到任何服务器,关闭页面后不留痕迹。The Batch File Renamer is free with no sign-up. Files are read and processed only in your browser, never uploaded, and nothing is kept after you close the page.