RnR is a command-line utility for renaming multiple files and directories using regular expressions. It includes safeguards designed to prevent accidental overwrites, collisions and other unwanted filesystem changes.
The application operates in dry-run mode by default. This allows users to inspect proposed filename changes before explicitly authorising them. When a batch rename is performed, RnR can record the operations in a JSON file, which can subsequently be used to reverse or repeat the changes.
RnR supports numbered and named regular-expression capture groups. It can also apply text transformations to replacement strings, including changing their case. This makes it suitable for restructuring filenames, replacing extensions and applying consistent naming conventions across directory trees.
The application normally ignores hidden files and directories, and only includes directories as rename targets when explicitly requested.
This is free and open source software.
Key Features
- Rename multiple files and directories in a single operation.
- Use regular expressions with numbered and named capture groups.
- Preview proposed changes without modifying files by default.
- Check for filename collisions and unintended overwrites.
- Apply renames explicitly using force mode.
- Search directory trees recursively.
- Limit recursive operations to a specified directory depth.
- Include directories themselves as rename targets.
- Include hidden files and directories when requested.
- Specify the maximum number of substitutions per filename.
- Apply text transformations to replacement strings.
- Create backup copies before renaming files.
- Record completed operations in JSON dump files.
- Undo previous renaming operations using saved dump files.
- Repeat operations recorded in an existing dump file.
- Convert Unicode filenames to ASCII representations.
- Display colour-coded terminal output.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/ismaelgv/rnr
Support:
Developer: Ismael González Valverde
License: MIT License

RnR is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Console Batch Renamers | |
|---|---|
| RnR | Securely rename multiple files and directories |
| F2 | Command-line batch renaming tool. Fast and safe to use. It's written in Go |
| vimv | Mass rename files using Vim |
| massren | Rename multiple files using a text editor |
| mmv | Rename multiple files with editor |
| nomino | Batch rename utility for developers |
| rename | Rename multiple files using Perl expressions |
| brename | Batch renaming safely |
| tempren | Template-based file renaming utility |
| edir | Utility to rename, remove, and copy filenames and directories |
| vidir | Edit of the contents of a directory in a text editor |
| renameutils | Five programs – qmv, qcp, imv, icp and deurlname |
| rename-cli | Rename files quickly |
| ren | Takes find-formatted lines via standard input, and batch renames them |
| renux | Regex, placeholders, and text transformations |
| moove | Manipulate file names and locations |
| Bren | Bulk file renaming software |
| regname | Mass renamer utility with a text user-interface |
| pipe-rename | Edit filenames using your preferred text editor |
| Renamer | Flexible and extensible through plugins |
| brn2 | Fork of brn |
| edmv | Bulk rename files using your preferred text editor |
Read our verdict in the software roundup.
| Alternatives to mv | |
|---|---|
| pycp | cp and mv with a progressbar |
| RnR | Securely rename multiple files and directories |
| renameutils | Set of programs designed to make moving files faster and less cumbersome |
| Alternatives to rename | |
|---|---|
| RnR | Securely rename multiple files and directories |
| renameutils | Set of programs designed to make renaming files faster and less cumbersome |
| rename.pl | Rename files using Perl expressions |
| rename | Rename multiple files |
| vimv | Mass rename files using Vim |
| detox | Clean up filenames |
| regname | Mass renamer utility with a text user-interface |
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.