File Renamer++

批量文件重命名工具 · 可选 AI 重命名 — 用户教程Batch rename tool with optional AI — User Tutorial

Get it from Microsoft Store
✨ 新功能:AI 重命名
✨ New: AI Rename

用一句话描述你要的改名效果——例如「把文件名改成『报告_序号』,保留原扩展名」——AI 生成完整方案,点「允许」后才写入预览。 查看 AI 教程 →

Describe the rename you want in one sentence — e.g. "rename to 报告_序号 and keep the extension" — and AI drafts the whole plan; nothing is applied until you press Allow. See the AI tutorial →

🚀 快速入门Quick Start

如何使用 File Renamer++ 批量重命名文件?
How to batch rename files with File Renamer++?
  1. 启动应用,点击「📁 导入文件」或直接拖拽文件到窗口Launch the app and click "📁 Import Files" or drag files into the window
  2. 在左侧规则面板配置规则(前缀/后缀/替换/正则等),右侧列表实时预览Configure rules in the left panel (prefix/suffix/replace/regex); the right list previews in real time
  3. 确认无冲突后,点击底部「▶ 执行重命名」Verify no conflicts, then click "▶ Execute Rename"
  4. 如需恢复,点击工具栏「↩ 撤销」一键还原所有原名To restore, click "↩ Undo" on the toolbar to revert all names
💡 所有规则同时生效,按固定顺序执行:删除(前缀/后缀/范围)→ 查找替换 → 清理(数字/字母/括号)→ 正则 → 大小写 → 添加(前缀/后缀)→ 序号 → 改后缀。All rules apply at once in a fixed order: remove (prefix/suffix/range) → find & replace → clean (digits/letters/brackets) → regex → case → add (prefix/suffix) → sequence → change extension.
⚙️

基础规则

Basic Rules

前缀、后缀、替换、序号、大小写

Prefix, suffix, replace, sequence, case

🧬

正则表达式

Regex

高级匹配替换,支持分组捕获

Advanced match & replace with group capture

👁

实时预览

Live Preview

输入即见效果,冲突即时标红

See results as you type; conflicts highlighted

↩

一键撤销

One-click Undo

自动保存映射,随时恢复原名

Mapping auto-saved; restore anytime

💾

模板复用

Templates

保存常用规则组合,一键加载

Save rule sets and reload instantly

🌐

多语言

Multilingual

7 种界面语言,自动检测系统

7 UI languages, auto system detection

🎨 界面概览Interface Overview

截图Screenshot File Renamer++ 主界面
  • 左侧规则面板Left Rules Panel — 配置改名规则,「普通」与「高级」两个标签页Configure rules; Basic and Advanced tabs
  • 右侧文件列表Right File List — 原文件名 → 新文件名预览,状态图标标识就绪/冲突/非法字符Original → new name preview; status icons show ready/conflict/invalid
  • 顶部工具栏Top Toolbar — 导入文件、导入文件夹、模板、保存、撤销、清空、搜索、AI 重命名、设置、关于、在线教程Import files/folder, template, save, undo, clear, search, AI Rename, settings, about, online tutorial
  • AI 悬浮球AI Floating Ball — 窗口内可拖动的圆形入口,与工具栏「🤖 AI 重命名」等效;可在设置里关闭A draggable round entry inside the window, same as the toolbar "AI Rename"; can be hidden in Settings
  • 底部操作栏Bottom Bar — 执行重命名按钮 + 实时进度条Execute button + progress bar
Advertisement

01 如何批量修改文件扩展名?How to batch change the file extension?

方式一:使用「改后缀」输入框
Method 1: the "Extension" field
  1. 导入文件后,在「普通」标签页的「位置与格式」分组中找到「改后缀」输入框
  2. Import files, then find the "Extension" box in the "Position & Format" group on the Basic tab
  3. 输入新扩展名(可带点也可不带点,如 .pdf 或 pdf;留空保持不变)
  4. Type the new extension with or without the dot, e.g. .pdf or pdf (leave empty to keep)
  5. 右侧列表实时预览,确认无误后执行重命名
  6. The list previews in real time; execute when it looks right
截图Screenshot 位置与格式分组:改后缀/删范围/序号/大小写
方式二:使用正则表达式
Method 2: with regex
匹配Match替换Replace效果Result
\.\w+$.pdfreadme.txt → readme.pdf
\.jpg$|\.jpeg$.pngphoto.jpg → photo.png
截图Screenshot 用正则批量修改扩展名

02 如何删除固定文字?How to delete fixed text?

方式一:使用「删前缀/删后缀」输入框
Method 1: the "Rem Prefix/Suffix" boxes

在「文本操作」分组中,「删前缀」输入框删除文件名开头的文字,「删后缀」输入框删除结尾的文字。规则作用于文件名主体(不含扩展名),不区分大小写。

In the "Text Operations" group, "Rem Prefix" strips text from the start of names and "Rem Suffix" strips it from the end. These rules apply to the name only (not the extension) and are case-insensitive.

方式二:使用正则删除任意位置的固定文字
Method 2: delete fixed text anywhere with regex
匹配Match替换Replace效果Result
-copy(留空)(empty)report-copy.pdf → report.pdf
_v\d+(留空)(empty)report_v3.pdf → report.pdf
\[.*?\](留空)(empty)[01]song.mp3 → song.mp3
💡 「替换」留空表示删除匹配到的内容。Leave "Replace" empty to delete the matched text.
✂️ 也可以使用「删范围」删除第 N 到第 M 位字符(从第 1 位起算);只填起始位置时删除到末尾。Or use the "Delete Range" rule to remove characters from position N to M (1-based); leave M empty to delete to the end.
截图Screenshot 用正则删除固定文字

03 如何添加前缀或后缀?How to add prefix or suffix?

如何给所有文件统一加文字?
How to add text to every file at once?
  1. 在「文本操作」分组的「前缀」输入框填写要加到开头的文字
  2. Type text into "Prefix" (Text Operations group) to prepend it
  3. 在「后缀」输入框填写要加到结尾(扩展名之前)的文字
  4. Type text into "Suffix" to append it before the extension
  5. 右侧列表实时预览新文件名
  6. Watch the live preview on the right
💡 前缀和后缀可同时使用,也可与序号等其它规则叠加。Prefix and suffix work together, and can be combined with other rules like sequence.
截图Screenshot 添加前缀和后缀后的预览

04 如何添加序号?How to add sequence numbers?

如何给文件批量编号?
How to number files in batch?
  1. 勾选「序号」(Sequence) 复选框启用
  2. Check the "Sequence" checkbox to enable it
  3. 「起始」(Start) 默认 1,「补零」(Padding) 默认 4 位(如 0001)
  4. "Start" defaults to 1 and "Padding" to 4 (e.g. 0001)
  5. 序号自动加在文件名末尾(扩展名之前),无需选择位置
  6. Numbers are appended at the end of the name (before the extension) — no position choice needed
💡 序号按列表当前顺序编号:第 1 行 = 起始值,第 2 行 = 起始值+1,依此类推。Files are numbered in list order: row 1 = start value, row 2 = start + 1, and so on.
截图Screenshot 添加序号后的预览
Advertisement

05 如何转换大小写?How to change letter case?

如何把文件名改成大写/小写/首字母大写?
How to make filenames upper, lower, or title case?
  1. 勾选「大小写」(Case) 复选框
  2. Check the "Case" checkbox
  3. 在下拉框选择转换方式:全大写、全小写或首字母大写
  4. Pick a mode from the dropdown: UPPERCASE, lowercase, or Title Case
💡 大小写规则只作用于文件名主体,不会改变扩展名。「首字母大写」会把每个单词的首字母转为大写、其余转为小写。The Case rule affects only the name, never the extension. "Title Case" capitalizes the first letter of each word and lowercases the rest.
截图Screenshot 大小写下拉选项

06 如何查找替换文本?How to find and replace text?

如何把文件名中的某段文字换成别的内容?
How to swap one piece of text for another in filenames?
  1. 在「文本操作」分组的「替换」行,第一个输入框输入要查找的文字
  2. In the "Replace" row of "Text Operations", type the text to find in the first box
  3. 在「→」后面的输入框输入替换内容(留空则删除)
  4. Type the replacement after the "→" (empty = delete)
  5. 所有匹配项会全部替换,列表实时预览
  6. Every match is replaced; the list previews live
💡 查找替换区分大小写,替换文件名中的所有匹配项,且只作用于文件名主体(不含扩展名)。Find & replace is case-sensitive, replaces every match, and applies to the name only (not the extension).

07 如何使用正则表达式?How to use regex?

正则表达式怎么用?
How do I use regex?

切换到「高级」标签页,在「正则与清理」分组中:在「正则」(Pattern) 框输入匹配模式,「替换」(Replace) 框输入替换文本(用 $1 $2 引用分组)。正则作用于完整文件名(含扩展名)。

Switch to the Advanced tab; in the "Regex & Clean" group, enter a pattern in the "Pattern" box and replacement in the "Replace" box (use $1 $2 for groups). Regex works on the full filename including extension.

截图Screenshot 正则与清理分组的输入框
常用正则符
Common symbols
Symbol含义Meaning
.任意单个字符Any character
\d数字 0-9Digit 0-9
\w字母数字下划线Word char
+一次或多次One or more
*零次或多次Zero or more
^字符串开头Start of string
$字符串结尾End of string
|或OR
( )分组,可用 $1 $2 引用Group, reference with $1 $2
\转义特殊字符Escape special chars
⚠️ . \ $ ^ ( ) [ ] { } + * ? | 都有特殊含义,匹配字面值需加 \ 转义。Escape . \ $ ^ ( ) [ ] { } + * ? | with \ to match literally.
分组重组示例
Reorder groups
匹配Match替换Replace效果Result
(.+)_v(\d+)$2_$1data_v3.csv → v3_data.csv
(\d{4})-(\d{2})-(\d{2})$1$2$32024-01-15_rpt → 20240115_rpt
(.+)_(\d+)$2_$1backup_2024.txt → 2024_backup.txt
截图Screenshot 分组重组示例
清理数字字母示例
Clean digits/letters
匹配Match替换Replace效果Result
\d+(留空)(empty)img_123_v4.png → img__v.png
[^a-zA-Z0-9_.](留空)(empty)file@#!.txt → file.txt
[\-_\s]+_my-photo file.jpg → my_photo_file.jpg
🖱 应用内所有示例行均可点击,点击自动填充到上方的「正则」和「替换」输入框。All example rows are clickable in the app; click to auto-fill the pattern and replacement fields above.
截图Screenshot 清理数字字母示例
截图Screenshot 高级标签页 - 正则示例

08 如何导入文件?How to import files?

如何添加文件到列表?
How to add files to the list?
  • 方式一:点击「📁 导入文件」,多选文件
  • Method 1: click "📁 Import Files" and multi-select files
  • 方式二:点击「📂 导入文件夹」,递归添加整个目录
  • Method 2: click "📂 Import Folder" to add a whole directory recursively
  • 方式三:直接拖拽文件/文件夹到窗口
  • Method 3: drag files/folders into the window
  • 每行左侧 🗑 按钮可单独移除文件
  • Use the 🗑 button on each row to remove files
截图Screenshot 导入文件 / 导入文件夹按钮 每行左侧的删除按钮
Advertisement

09 如何执行与撤销重命名?How to execute and undo a rename?

如何执行重命名?
How do I run the rename?
  1. 确认右侧列表状态均为「就绪」(无红/黄标记)
  2. Verify all rows show "Ready" (no red/yellow marks)
  3. 点击底部「▶ 执行重命名」按钮
  4. Click the "▶ Execute Rename" button
  5. 进度条显示执行进度,完成后弹出结果窗口(成功/失败统计)
  6. Progress bar shows progress; a result window appears when done
  7. 如需恢复,点击工具栏「↩ 撤销」一键还原
  8. Click "↩ Undo" to restore all names
🛡 只有状态为「就绪」的文件才会执行。目标文件已存在、源文件缺失、权限不足或被占用等失败项会在结果窗口中列出原因;改名映射自动保存,可随时一键撤销。Only files with "Ready" status are renamed. Failures (target already exists, source missing, permission denied, file locked) are listed with reasons in the result window; mappings are auto-saved so you can undo anytime.
截图Screenshot 工具栏撤销按钮

10 如何保存和加载模板?How to save and load templates?

如何保存和加载模板?
How do I save and load templates?
  1. 配置好一组常用规则
  2. Configure a set of frequently used rules
  3. 点击工具栏「💾 保存」,在文件夹对话框中选择保存位置(默认模板目录,直接确认即可),自动生成「模板_日期时间.json」文件
  4. Click "💾 Save", pick a folder in the dialog (the default template folder works as-is), and a "模板_日期时间.json" file is created automatically
  5. 下次点击「📋 模板」,在文件对话框中选择 .json 模板,规则自动载入并预览
  6. Next time click "📋 Template", pick a .json template in the file dialog, and the rules are applied and previewed
💡 适合重复性任务,如「统一加前缀+改后缀.pdf」这种组合。Ideal for repetitive tasks like "add prefix + change to .pdf".

11 如何切换主题和语言?How to switch theme and language?

如何切换主题和语言?
How do I switch theme and language?
  1. 点击工具栏 ⚙️ 打开设置
  2. Click the ⚙️ toolbar button
  3. 「外观」区切换浅色/深色主题
  4. Toggle light/dark in "Appearance"
  5. 「语言」下拉框选择 7 种语言之一
  6. Pick one of 7 languages
  7. 首次启动自动检测系统语言
  8. System language auto-detected on first launch
截图Screenshot 设置窗口:主题与语言

12 如何使用 AI 重命名?How to use AI Rename?

如何使用 AI 重命名?
How do I use AI Rename?

用一句自然语言描述你要的效果,AI 给出完整改名方案,你点「允许」后才会写进预览。规则化的批量重命名完全在本机完成,与 AI 功能互不影响。

Describe the result you want in one natural sentence, AI drafts the whole plan, and nothing reaches the preview until you press Allow. Rule-based batch renaming runs entirely on your PC and is independent of the AI feature.

截图Screenshot AI Rename dialog — chat on the left, suggestions on the right, approval before applying
  1. 打开入口:点顶部工具栏「🤖 AI 重命名」,或点窗口里的 AI 悬浮球(两者等效)
  2. Open it: click "🤖 AI Rename" on the toolbar, or the AI floating ball inside the window (both do the same)
  3. 描述需求:在对话框底部输入一句话,例如「把文件名改成『报告_序号』,保留原扩展名」,Enter 发送,Shift+Enter 换行
  4. Describe it: type one sentence at the bottom of the dialog, e.g. "rename to 报告_序号 and keep the extension", press Enter to send, Shift+Enter for a new line
  5. 看建议 → 审批:右侧出现建议列表,对话里出现「是否允许应用这次重命名?」卡片;点允许才写进主窗口预览,点拒绝则丢弃
  6. Review → approve: suggestions appear on the right and an "Apply this rename?" card in the chat; press Allow to write them into the preview, or Deny to discard
  7. 可以多轮追问:例如再说「序号补到三位」「只改图片」「全部转小写」,AI 会结合上下文重新出方案,旧的审批卡自动作废
  8. Keep refining: follow up with "pad numbers to three digits", "only images" or "lowercase everything"; AI re-plans with the conversation as context and older approval cards expire
  9. 最后执行:回到主窗口点底部「执行重命名」才真正改文件——AI 只负责改预览,不会直接动文件
  10. Then execute: go back and press "Rename" at the bottom — AI only edits the preview, it never touches your files directly
💬 如果只是在问问题、或建议与原名完全相同,不会弹「允许」,只显示 AI 的回复;侧边列表也会提示「未提出改名建议」。If you are just asking a question, or the suggestion equals the current name, no Allow card appears — the reply is shown with "No rename proposed".
AI 会上传我的文件吗?
Does AI Rename upload my files?

不会上传文件内容。使用 AI 时只会发送:你输入的指令、这次对话最近几条消息、以及每个文件的名称与扩展名(不发送文件大小、时间等元数据,默认也不发送完整路径)。服务器只做转发、不保存这些内容。

File contents are never uploaded. AI Rename sends only your instruction, the last few messages of the conversation, and each file's name and extension (no size or timestamp metadata, and no full path unless you enable it). The server only relays the request and does not store it.

文件名本身可能带敏感信息(客户名、项目名等),介意的话请先把文件改成中性名称,或改用规则重命名。完整说明见 隐私政策。

File names themselves can be sensitive (client or project names). If that matters to you, rename the files to neutral names first, or use rule-based renaming. Full details in the privacy policy.

AI 结果不对、或提示连不上怎么办?
The AI result is wrong, or it cannot connect — what now?
  • 结果不对:直接接着说「第二行改成 xxx」这类修正;或点每条 AI 回复下方的「反馈」,把这段对话发给我们复现
  • Wrong result: just reply with a correction such as "change row 2 to xxx"; or press "Report" under any AI reply to send us that conversation
  • 提示连接失败:检查网络或稍后重试;调用上限为每小时 120 次,超出后等一小时再来
  • "Cannot connect": check your network or retry later; the limit is 120 calls per hour, so wait an hour if you hit it
  • 还没有文件:先在主窗口导入文件,再回来提问(AI 入口随时可点,但需要文件才能出方案)
  • "No files yet": import files in the main window first — the AI entry is always clickable, but it needs files to plan a rename
能关掉 AI 入口或清掉对话记录吗?
Can I hide the AI entry or clear the chat history?
  • 隐藏悬浮球:设置 →「AI 服务」→ 取消勾选「显示悬浮球入口」;工具栏按钮保留,随时能再打开
  • Hide the floating ball: Settings → AI → clear "Show floating ball entry"; the toolbar button stays
  • 清空对话:对话框右上角「新对话」开一个新会话,旧会话在「历史会话」里,可逐条删除
  • Clear chats: "New chat" in the top-right starts a fresh session; older ones live under "History" and can be deleted one by one
  • 本地数据:对话记录只存在本机 %APPDATA%\FileRename\,删除即清空
  • Local data: conversations live only in %APPDATA%\FileRename\ on your PC — delete the folder to wipe them

💡 使用技巧Tips

  • 点击示例自动填充——正则示例行可点击,快速应用常用模式
  • Click examples to auto-fill — click regex examples to apply patterns instantly
  • 搜索筛选——工具栏搜索框输入关键词实时筛选文件
  • Search filter — type in the toolbar search box to filter files
  • 手动编辑——双击「新文件名」列可直接修改单个文件
  • Manual edit — double-click the New Name column to edit individual files
  • 模板优先——重复性任务先存模板,节省时间
  • Use templates — save templates for repetitive tasks
  • AI 只改预览——AI 建议需点「允许」才进预览,真正落盘仍由主窗口「执行重命名」控制,随时可反悔
  • AI only edits the preview — suggestions need Allow to reach the preview, and the actual rename still goes through "Rename" in the main window
  • 一句话说清目标——「把姓名_日期倒过来,扩展名统一小写」这类描述一次到位,比一句句试快得多
  • Say the goal in one sentence — "swap name and date, lowercase the extension" gets there faster than trial and error

❓ 常见问题FAQ

文件列表出现红/黄标记怎么办?
What if files show red/yellow marks?

红色 = 重名冲突,黄色 = 非法字符。调整规则消除后即可执行。

Red = conflict, Yellow = invalid chars. Adjust rules to resolve.

重命名后能恢复吗?
Can renames be undone?

可以。点击「↩ 撤销」一键恢复全部原名,映射自动保存。

Yes. Click "↩ Undo" to restore all names; mappings are auto-saved.

支持哪些文件类型?
What file types are supported?

所有类型,包括无后缀文件。

All types, including files without extensions.

数据安全吗?
Is my data safe?

规则重命名完全本地运行,不联网、不上传、不统计。可选的 AI 重命名会把你的指令与文件名发到我们的服务器(不含文件内容,服务器不留存)。详见 隐私政策。

Rule-based renaming runs fully offline with no uploads and no telemetry. The optional AI Rename sends your instruction and file names to our server (never file contents, and the server does not retain them). See the privacy policy.

不用 AI 也能正常改名吗?
Can I rename without AI?

可以。所有规则(前缀后缀、序号、替换、大小写、扩展名、日期、正则)与模板功能都不需要账号、不需要联网、也没有文件数量限制。

Yes. Every rule (prefix/suffix, numbering, replace, case, extension, date, regex) and templates work without an account, without internet, and with no cap on file count.