Media File Renamer

For cleaner & SEO friendly filenames

Do you run a popular website about WordPress, photography, or do you have another way to talk about my plugin? I can share a free license against some promotion of my plugins. As you might know, I don’t do any marketing, I prefer to focus on quality and support 🙂 If you are interested, contact me

It automatically renames your media filenames depending on their titles. When files are renamed, the references to it are also updated (posts, pages, custom types and their metadata).

Media File Renamer

A new column in the Media Manager will display to you the new ideal filename and a button will allow you to rename it straight away. You can lock and unlock the renaming automatic process through little icons.

File Renamer Little Icons


By default, this is done automatically depending on the title of your media. If you have the Pro version, this can be done also based on the title of the post (page or any other custom type) the media is attached to.

File Renaming Mode

There is also a little dashboard called File Renamer in Media that will help you rename all your files at once.

Media File Renamer - Dashboard

File renaming is a dangerous process. Before renaming everything automatically, rename one or two files first and check if all the references to them are still correct on your website.

Pro version

The Pro users are given a few more features like manual renaming, renaming depending on the post the media is attached to, logging of SQL queries and a few more options. With the Pro, a good process is to actually let the plugin do the renaming automatically (like in the free version) and to do manual renaming for the files that require fine tuning.

Media File Renamer - Edit Media

References update

WordPress has so many themes and plugins that this renaming process can’t unfortunately cover all the cases, especially if other plugins are using unconventional ways. If references aren’t updated properly, please write a nice post (not an angry one) in the support threads 🙂 I will try my best to cover more and more special cases.

Custom renaming

Do you need to create your own naming rules? Every language and website is different and some of us need that. You just add some code in your functions.php, or you can modify the mfrh_custom.php file shipped with the plugin. It works like this:

add_filter( 'mfrh_new_filename', array( $this, 'filter_filename' ), 10, 3 );

function filter_filename( $new, $old, $post ) {
  return "renamed-" . $new;

$new is the new filename proposed by Media File Renamer, $old is the old one, $post is the attachment. With this, you can do virtually anything. This example is simple, it just agreed with the new filename decided by the plugin but added “renamed-” in front of it. The filename that is returned must contain the extension. If the “Numbered Files” option is enabled, a count might be added.

If you want me to create a filter for you, you can hire me here.

  • Pingback: Deux extensions pour faciliter la gestion des fichiers dans WordPress | Varia : Humeurs et découvertes d'une webmestre()

  • Pingback: Two WordPress Media Organization Insights – imho()

  • Hi

    I really love your renamer plugin. It helps me maintain a nice and clean naming structure for my images. But I have a question about organizing all the images.

    On all my sites I uncheck the “Organize my uploads into month- and year-based folders” in Media Setting, because it doesn’t make sense for me to have that kind of organization. But then I have one VERY LARGE uploads folder and maybe that is not optimal either. Eg. when the amount of images pass 2.000 then I can’t see them all in my FTP application (Transmit), and that is not so nice.

    What do you recommend in general speaking of organizing images in WordPress, and do you recommend some plugins for that?

    Thanks 🙂

    • Hi,
      Actually that’s why the files are organized by folders, to avoid this issue 🙂 You should really let WordPress creates those folders. But unfortunately there is no clean way of doing that. I am running blogs about photography, so in my case my folders are organized by year/month on which the photos has been taken and I do this through my WP/LR Sync plugin. But other than that, the default option is the best :/

  • Hi, I am thinking to buy the renamer plugin for a big media library (approximately 5000 of images). I am planning to rename the photos according to post titles. However, I am wondering how it works if the post has a several images attached? Also, will it work if post titles are not in English and using totally different alphabet (Russian – cyrillic)? Thank you very much in advance!

    • Hi! Yes, it will work, but you must make a backup before doing this on so many images. This is absolutely required. If you server supports it, turn the UTF8 option on then the filename will use the alphabets natively. Otherwise don’t, it’s up to you 🙂 Any issue, just tell me 🙂

      • Thanks Jordy! One more question – the plugin will name the files in cyrillic, right?

      • Snaptechy

        Hi Jordy – I’m interested too by your plugin, how the plugin willl manage renaming different images part of the same post ( based on the post title). Thxs

  • Hi

    The pro version sounds really interesting, does it work for featured image in Woocommerce Products? How does it handle product gallery images?


    • Arkymedes

      I’m curious about that too.

  • Arkymedes

    Hi there, I’m very much interested in your plugin but I have a question related to Product Images and Galleries used in WooCommerce. Can the plugin rename the main product image and associated gallery images based on the Product Title?

    Thanks so much!

  • Adam

    Hi Jordy, i bought the Media File Renamer last year and it seems now the Pro version is disabled. Now i need to get the yearly subsription?

I recommend you to use WPEngine or SiteGround. They are both excellent hosting services and work perfectly with all my plugins.