How to Enforce Clean Image File Names in WordPress

How to Enforce Clean Image File Names in WordPress

It is general to know that detailed descriptions for images and clean image filenames are very important and necessary for search engines to figure out the quality and character of the images. And an optimized image is helpful to get a fast webpage loading speed and a higher search ranking. No matter who uploads image, yourself or other users allowed, a clean and optimized image name can make a difference.

As a matter of fact, it is inevitable for many non-English speakers to name images with uncommon characters, which will influence the presence of these images even the websites in the browser. That is because search engines can not figure out some special characters. For instance, if the name of an image includes some language accent characters, just like “ccès à l’internet”, the search engines will have difficulty identifying it without the support of some tools.

So do you know how to enforce clean filenames in WordPress? If you are not sure about your answer, it doesn’t matter. Actually, it’s a simple and easy-to-learn task which you can understand within several minutes. Details are shown in the following part.

Install Clean Image Filenames Plugin

If you want to enforce clean image filenames in WordPress, the first and the most important step for you is to install the Clean Image Filenames plugin. Firstly, you can go with “Add New” under the plugin part in dashboard. Then you are able to regard” Clean Image Filenames” as a keyword and enter it to the search box in the upper right side of this page. After that, a page like below will appear. Just have a click on the “Install Now” button.

Install Clean Image Filenames Plugin

Test and Use the Plugin to Enforce Clean Filenames

After the activation of this plugin, now you can test the plugin by uploading an image file through Add New under the Media menu. For example, we choose an image whose original name is “dater%) file” to upload. After loading the image, we can find that the name of this image is changed into “dater-file”. The uncommon characters like % and a period are removed.

Test Plugin

In fact, the plugin can clean various special characters from image filenames, such as periods, commas and exclamation marks. Of course, some accent characters are included, like German and Swedish umlauts. The image name is changed once you upload an image with such special characters.

You should pay attention on one point. This plugin cannot be used to clean your old image filenames. If you want to change the name of your old images, you have to manually fix them.