文件名整理
UpBox优盒工具箱,免费在线文件名整理工具,从路径批量提取文件名、去掉扩展名、只取扩展名,或按模板加序号生成新文件名。
无需注册 · 数据不上传No sign-up · nothing uploaded
文件名或路径Paths or names
整理结果Result
文件名数0
带扩展名0
字符数0
粘贴路径清单后点整理
模板支持 {name}、{ext}、{index} 三个占位符;仅改文本清单,不会改动本地文件,重命名需自行对照执行
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器
工具介绍
从一堆路径里挑出文件名是重复劳动。这里粘贴清单就能批量提取,Windows 反斜杠和 macOS 斜杠都能识别,去目录、去扩展名、只留扩展名三种模式直接出结果。 Pulling names out of a pile of paths is busywork. Paste the list and extract in bulk — Windows backslashes and macOS slashes both parse, with modes for name only, extension stripped or extension only.
要统一改名时用模板:{name}-{index}.{ext} 配前缀后缀和序号位数,生成一份可直接照着改的清单,原文件不会被改动。 For consistent renaming use a template: {name}-{index}.{ext} plus prefix, suffix and index width gives a list to rename against, without touching any file.
- 四种处理模式Four modes
- 双平台路径Cross-platform paths
- 模板与序号Template and index
- 三项统计Three stats
- 复制与下载Copy and download
使用说明
- 粘贴文件名或完整路径。Paste names or full paths.
- 选择处理方式。Choose a mode.
- 模板模式填占位符。Fill the template if needed.
- 复制结果去改名。Copy the result and rename.
常见问题
支持哪些占位符?Which placeholders work?
{name} 文件名、{ext} 扩展名、{index} 序号,其他花括号原样保留。{name}, {ext} and {index}; other braces are left as typed.
会真的改我的文件吗?Will it rename my files?
不会,工具只生成文本清单,实际重命名需你自己操作。No, it only produces a list; you apply the renames.
没有扩展名的文件怎么处理?What about names without an extension?
去扩展名保持原样,只取扩展名时该行留空,便于与输入逐行对齐。Stripping leaves it unchanged; extension-only mode keeps the row blank so it still aligns with the input.
能处理 .tar.gz 这类双扩展名吗?Does .tar.gz work?
只按最后一个点切分,.tar.gz 会得到 name.tar 与 ext gz。It splits on the last dot, so .tar.gz yields name.tar and ext gz.