How to Automatically Rename Images in WordPress Media Library

Sharing is caring!

category WordPress

Want to update image names in your WordPress library?

Blog post images can drive massive traffic to your pages. But you should optimize the images properly to let search engines know about them. Google like search engine programs work on complex algorithms and they can identify your images with the help of file names, title, and alt texts. Use them in the right way to boost your image SEO and improve visits from the search results.

Make sure that your focus keyword appears in your image name and alt attributes. Thus you can optimize posts as well as images for the organic traffic for your keyword.

Unfortunately, WordPress lacks the ability to rename uploaded media files. You can rename image title and alt text, but not the file name. I go through this situation once and found a plugin solution to automatically rename images on upload or from the media library.

Rename images in WordPress

Automatically Rename Images in WordPress Media Library

Install and activate Media File Renamer plugin first on your website. It is a simple plugin that automatically renames your media files on upload for better SEO. It changes the file name based on the image title and related data are also updated including posts, pages, custom post types, and metadata.

After installation, open plugin settings to configure the operation.

Automatically Rename Images in WordPress Media Library

Select on Upload checkbox to automatically rename images on upload. Better to uncheck Slug Permalink checkbox as it may result in unexpected issues. Don’t forget to save changes.

Automatically Rename Images in WordPress Media Library

Visit Media > Renamer to rename already uploaded files in bulk or one by one. The plugin will replace your current file name with the desired file name as shown in the above screenshot. The bulk operation may take a long time depends on the number of images you have.

That’s all.

Are you searching for other WordPress tips? These posts could be useful:


WP Rocket - WordPress Caching Plugin