Renames your media files for better SEO and a nicer filesystem (automatically or manually). For more information, please visit the official website: Media File Renamer.
HOW IT WORKS
Media File Renamer, by default, automatically renames the filenames of your Media entries based on their titles. You can trigger this, or you can let it happen every time you modify titles. You can also rename the files manually. The references to those files will be also updated (posts, pages, custom types, metadata, etc…). You can use the Media Library, or the Media Edit screen.
However, it is highly recommended to use the pretty and very dynamic Renamer Dashboard. If you like to work fast and well, you will really love working with this modern dashboard.
Please have a look at the tutorial.
It works with a lot of features of WordPress and other plugins, such as Retina files, WebP, rescaled image (since WP 5.3), PDF Thumbnails, UTF8 files, optimized images, various encodings, etc. There are too many handled and specific cases to be listed here, but we are doing our best to keep up with everything 🙂 There are a few pagebuilders which encrypt the data they use, and therefore, the references to some renamed images might be lost: Avia Layout Builder, for example.
More features are added in the Pro Version, such as:
– Transliteration (replace various accents, emoticons, umlauts, cyrillic, diacritics, by their ASCII equivalent)
– Automatic renaming based on the attached posts, products (and other post types), or ALT text
– Anonymizer (rename the files with anonymous files)
– Move files to another directory
– Metadata syncing (ALT text, title, etc)
– Numbered files (to allow similar filenames to be renamed)
– Force Rename (if your install is broken, this will help you to re-link your media entries to your files)
BE CAREFUL: PREPARE A BACKUP
Renaming (or moving) files is a dangerous process. Before doing anything in bulk, try renaming your files on by one, then check if the references (in your pages) have been updated properly. The renaming can’t cover all use cases, as some plugins are unfortunately using unconventional ways to encode the usage of the files. Therefore, it is absolutely necessary to backup your files and database in order to enjoy this plugin at its full extent.
WHEN SOMETHING BAD HAPPENS
If your website seems broken after a few renames, try to clear your cache. The cached HTML is often using the old references. You can also enable the Undo feature and try to rollback to the previous filenames. If references aren’t updated properly, please write a nice post (not an angry one) in the support threads 🙂 I am trying my best to cover more and more use cases. Please have a look here: Questions & Issues.
A SIMPLER PLUGIN
If you only need an editable field in order to modify the filename, please try Phoenix Media Rename. It’s simpler, and just does that. And yes, we are friends and we collaborate! 🙂
The plugin can be tweaked in many ways, there are many actions and filters available. Through them, for example, you can customize the automatic renaming to your liking. There is also a little API that you can call. More about this here.
- Upload the plugin to your WordPress.
- Activate the plugin through the ‘Plugins’ menu.
- Try it with one file first! 🙂
Contributors & Developers
“Media File Renamer – Auto & Manual Rename” is open source software. The following people have contributed to this plugin.Contributors
“Media File Renamer – Auto & Manual Rename” has been translated into 10 locales. Thank you to the translators for their contributions.
Interested in development?
- Fix: Renaming of WebP uploaded directly to WordPress.
- Add: The possibility of locking files automatically after a manual rename (which was always the case previously), and/or after a automatic rename (that was not possible previously). With this last option, users having trouble to “Rename All” will be given the choice to do it on any kind of server. You will find those options in the Advanced tab.
- Add: “Delay” option, to give a break and a reset to the server between asynchronous requests! Default to 100ms. That will avoid the server to time out, or to slow down on purpose.
- Note: This plugin is a lot of work. If you like it, please write a little review by clicking here. Thank you 🙂
- Fix: Avoid renaming when the URLs (before/after) are empty.
- Add: New option to update URLs in the excerpts (no need to use it for most users).
- Update: Avoid double call to the mfrh_url_renamed (seemed to be completely useless).
- Update: Added a new ‘size’ argument to the mfrh_url_renamed action.
- Update: Optimized queries.
- Add: We can change the page (in the dashboard) by typing it.
- Add: AVIF support.
- Fix: Avoid the double renaming when different registered sizes actually use the same file.
- Add: Better Force Rename.
- Add: Featured Images Only option.
- Fix: Auto-attach feature wasn’t working properly with Featured Image when attached to Product.
- Add: Manual Sanitize Option. If the option is checked, the rename feature uses the new_filename function. If not, use the filename user input as it is.
- Add: Option to clean the plugin data on uninstall.
- Add: Manual Rename now goes through the cleaning flow to make sure everything is clean and nice.
- Fix: Security update: access controls to the REST API and the options enforced.
- Updated: Dependencies update.
- Note: The plugin has no known bugs for a while, and I am now happy to work on littke extra features 🙂 By the way, if you like it, please review the plugin by clicking here. Thank you!
- Fix: Search feature was not always working well.
- Update: Better technical architecture.
- Add: Remember the number of entries per page (dashboard).
- Fix: Limit the length of the manual filename.
- Fix: The ‘Move’ feature now also works with the original image (in case it has been scaled by WP).
- Fix: Better Windows support.
- Add: Move button (this was mainly added for tests, so it’s a beta feature, it will be perfected over time).
- Add: Images Only option.
- Fix: Vulnerability report, a standard user access could potentially modify a media title with custom requests.
- Fix: The Synchronize Alt option wasn’t working logically.
- Add: Search.
- Add: Quick rename the title from the dashboard.
- Fix: The Synchronize Media Title option wasn’t working logically.
- Fix: References for moved files were not updated.
- Add: Sanitize filename after they have been through the mfrh_new_filename filter.
- Add: Greek support.
- Fix: Better sensitive file check.
- Fix: Manual rename with WP CLI.
- Add: Auto attach feature.
- Add: Added Locked in the filters.
- Update: Icons position.
- Fix: Issue with roles overriding and WP-CLI.
- Fix: Issue with REST in the Common Dashboard.
- Add: Support overriding roles.
- Fix: The layout of the dashboard was broken by WPBakery.