Enhance SEO and organize media effortlessly with Rename Media Files WordPress Plugin. Fix upload issues, santize & optimize filenames, and improve …
“One of the most important plugins on our site: Perfect plugin for our free stock photo website picjumbo. We’re using it for years to automatically rename our P001120.jpg photos to SEO-focused names like business-woman-using-a-computer-free-photo.jpg. This plugin really works! Thanks!” – ⭐⭐⭐⭐⭐ viktorhanacek
Main Page | Support Forum | Documentation & How to
The “Rename Media Files: Improve Your WordPress SEO” plugin will simplify the process of managing media file names (images, PDFs, etc) and metadata, ensuring a tidy and search engine-friendly media repository.
If you’re an SEO guru and would like to make a better website for search engines by focusing on Image SEO, or someone who enjoys their files to be perfectly organized, this plugin will turn your dreams into reality.
The plugin comes with several features, like the ability to remove accents and special characters from filenames upon upload, rename files based on post titles, Site URL, or current date, and update file permalinks accordingly.
The Pro version goes much further, with features like manual filename and permalink editing, updating old media references in post content, and automatic alt tag generation, the possibilities for optimizing your media library are endless
Ensure clean and SEO-friendly filenames by automatically removing accents and special characters upon upload, this is very useful when you share these files on social media, so you have standard URL without non-friendly characters.
Example 1:
A file named “café.jpg” would be renamed to “cafe.jpg”.
Example 2:
A file named “résumé.pdf” would be renamed to “resume.pdf”.
Automatically rename uploaded files based on your site URL (domain name) to maintain consistency and relevance between your domain name, content, and media.
Example 1:
If your site URL is “example.com,” and you uploaded an image named camera.jpg, you can automatically rename it to “example-com-camera.jpg”.
Example 2:
You can append the site URL to other variables, like post name and/or file name, so for a site URL like “mywebsite.com” uploaded to a post named “how to create a site”, a file might be renamed to “mywebsite-com-how-to-create-a-site.jpg”.
Automatically rename uploaded files based on the post title it was uploaded to, this helps in keeping your media & content aligned & consistent.
Example 1:
If you upload an image for a post titled “Exploring the Great Outdoors,” the file could be renamed to “exploring-the-great-outdoors.jpg”.
Example 2:
When images with identical names are uploaded to the same post, media name will be appended by a number, so in example 1 it will become “exploring-the-great-outdoors-1.jpg”, and this can be customized as well.
Instead of the default categorization of media by WordPress (year & month), you can fully control what part of the date you want to include in your media names.
Example 1:
An image named “laptop-at-night.webp” uploaded on April 15, 2024, could be renamed to “laptop-at-night-2024-04-15.jpg”.
Example 2:
You can go further and utilize other rules as well, so you can include site name, post title, file name, and finish it with a date, so you can have a file named “dog.jpg”, uploaded to a post title “Nice Dogs”, on a website named “Dogs for Life” and uploaded on May 28, 2024, the result file name could be “dogs-for-life-com-nice-dogs-dog-2024-05-28.jpg”.
Media file names might change, but permalinks don’t (probably that’s why they called so?), with this plugin you can maintain consistency between filenames and permalinks by automatically updating file permalinks based on media renaming actions.
Standardize all media & files characters on your website to lowercase for consistency, to ensure uniformity across your media library & reduce the risk of errors (if redirects weren’t properly handled).
Customize file renaming behavior with advanced filtering options. Choose to ignore files with no extensions, specific file extensions, or filenames containing certain strings.
“Does the trick!: We needed a plugin to change the file name of images being uploaded to our site to a 100% predicable URL based on post slug and custom fields. This super simple plugin does the trick! The developer is super responsive and helpful too. We’re glad to have got the pro version.” – ⭐⭐⭐⭐⭐ russs95
“Very handy: Install the plugin, check some simple settings, forget about it because the job will now be done. Thank you very much! 🙂” – ⭐⭐⭐⭐⭐ wpguillaume
For those who would like to go further and beyond, we have a premium version of Rename Media Files: Improve Your WordPress SEO plugin.
Other than the above options, the plugin allows you to include any of these values in media file renaming rules:
Take full control over your media library by manually editing filenames and permalinks to match your specific requirements.
You liked how the plugin works and want to apply it for all previous files? Easily update all your media library by updating outdated media files with new filenames and permalinks.
Ensure a seamless integration between media files and post content with this option, so when a media file is renamed, this feature automatically updates all references to that file within post content and prevents broken links or missing media elements in your website.
As “jpg” is the standard file extension for JPEG images, this feature automates converting images with JPEG extension to the more widely recognized JPG format.
Automatically synchronize media file names with post updates, so that you ensure media files remain aligned with their corresponding content.
Control access to media file renaming options & rules based on user roles of your website, so you guarantee that only authorized users have access to modification tools.
For those who want to have more control on media update based on the post type, the plugin allows media file renaming options to specific custom post types, such as: post, page, attachment, revision, nav_menu_item, product, product_variation, shop_order, shop_refund, and more!
Take your Image SEO optimization to new levels by automatically generating ALT texts & images titles for images.
When uploading media files, the plugin offers options to auto-fill both ALT text and image title based on predefined settings or the original filename. For example, if you upload an image named “sunset.jpg,” the ALT tag and media title can be auto-filled with “Sunset Image,” ensuring that both are descriptive and optimized for accessibility and search engine visibility.
“Perfect plugin for our free stock photo website picjumbo. We’re using it for years to automatically rename our P001120.jpg photos to SEO-focused names like business-woman-using-a-computer-free-photo.jpg. This plugin really works! Thanks!” – ⭐⭐⭐⭐⭐ viktorhanacek
“This is really well done. No more telling clients to sanitize file names upfront.
It also creates the correct two-letter form of the German umlauts äöüß -> ae oe ue ss.
Perfect!” – ⭐⭐⭐⭐⭐ DuchschererM“superb plugin, fantastic support.” – ⭐⭐⭐⭐⭐ amanrajveer
“Must have plugin!: As WP-Expert i can tell you that this became one of my must have plugins! Wish i discovered this great plugin earlier! Perfect for converting customers weird filenames and improving search engine results.” – ⭐⭐⭐⭐⭐ nicmare
WPFactory has a diverse range of plugins tailored to enhance your experience:
Download Plugins and Themes from WordPress: Download installed plugins and themes in ZIP files directly from your WordPress admin dashboard, download any or all plugins & themes without FTP or cPanel access (Free version)
Slugs Manager: Delete Old Permalinks from WordPress Database: Scan & remove old or outdated slugs (permalinks) in WordPress, keep your database optimized & your URLs SEO-friendly (Free version)
Back Button Widget: A simple & customizable back button, add it to any WordPress page using shortcode or widget for enhanced user navigation experience and site accessibility. (Free version)
Automated Order Status Controller for WooCommerce: Change order statuses programmatically based on a wide range of conditions, like time intervals, user roles and more! (Free version)
Custom Order Status for WooCommerce: Create & manage unlimited number of custom statuses, to reflect your business desires & needs. (Free version)
Free Shipping Over Amount for WooCommerce: Encourage higher spending by offering free shipping based on amount, with a progress bar for customers (Free version)
Dynamic Pricing & Bulk Quantity Discounts: Advanced dynamic pricing and discount rules for WooCommerce, encouraging bulk purchases and driving more sales (Free version)
For now, you can choose these options:
Add Site url: Inserts “yoursite.com” at the beggining of the file name. Ex: yoursite.com_filename.jpg. It is good for your SEO
Post title: If you are on a post edit page called “Spiderman will leave Marvel” and you upload a jpg it will be called spiderman-will-leave-marvel-my-file.jpg. This option allows you to replace filename by post title or add the post title.
Remove characters: Remove any characters you want from filename
Datetime: You can add or replace filename by Datetime in any format you want
Lowercase: Converts all characters to lowercase
Remove accents
Update permalink: When the filename is changed, you can also change its permalink if you want
It renames files on upload using the available rules. More specifically, it uses some filters provided by WordPress to handle file name sanitizing, like sanitize_file_name, sanitize_file_name_chars or actions like add_attachment
Rules are options to control how your filename will be. Rules are enabled on the rules tab and have to be placed on the filename scructure option
It’s the option where you can put your rules or any other characters you want to set how your filename will be
You can use the ‘frou_ignored_extensions’ filter to ignore extensions programmatically.
For example, if you’d like to ignore txt, js and zip extensions:
add_filter( 'frou_ignored_extensions', function ( $extensions ) { $extensions = array_merge( $extensions, array( 'txt', 'js', 'zip', ) ); return $extensions; } );
Yes. It’s easy.
First, you have to create a custom rule in the filename structure option using curly braces, like {my_custom_rule}. You just have to write it, in any position you want.
Now you can use the filter frou_sanitize_file_name to create a custom function. For example, if you want to put the user id it would be something like this:
add_filter( 'frou_sanitize_file_name', function($filename_infs){ $filename_infs['structure']['translation']['my_custom_rule'] = get_current_user_id(); return $filename_infs; }, 20 );
Head over to the File Renaming on Upload plugin GitHub Repository to find out how you can pitch in
frou_get_parent_post_title
.frou_current_media_id
filter.get_current_media_id()
function.transliterator_transliterate
function as an option to convert characters.new_extension
parameter on frou_sanitize_file_name
hook.