How to Enforce Clean Image Filenames in WordPress

Search engines love descriptive and clean file names for images. File names with uncommon characters can break images in browsers. If you upload a lot of images running a non-english website or allow users to upload images, then it is not possible to ensure clean image file names for every image. In this article, we will show you how to enforce clean image file names in WordPress. Hopefully, this will help you improve your site’s image SEO.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is install and activate the Clean Image Filenames plugin. Upon activation, simply go to Media » Add New and try uploading a file with accented characters.

For example, we tried uploading an image of bilberry which is called Çay üzümü in Turkish language and our filename was  Çay üzümü.jpg .

After the upload, this image filename was filtered by the plugin into  cay-uzumu.jpg . You can still use the accented character in your image’s description, alt and title tags which will help search engines to find the image when someone uses the actual Turkish characters to search the image.

Unfortunately this plugin does not automatically fix your old images. It filters the image title immediately after the image upload is finished.

If you run into any issues, then don’t forget to look at our guide on how to fix common image issues in WordPress.

We hope this article helped you learn how to enforce clean image filenames in WordPress. You may also want to take a look at our guide on how to speed up WordPress by saving images optimized for the web.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

Leave a Reply

Your email address will not be published. Required fields are marked *