Home / Fix guides / On-page SEO

How to rename images for SEO (and fix non-descriptive file names)

Rename each important image so its file name says what the picture shows, for example red-leather-office-chair.jpg instead of IMG_4521.jpg. Use lowercase words separated by hyphens, and update every place the old name was used so nothing breaks.

A non-descriptive image file name is one that tells search engines and people nothing about the picture. Typical examples are IMG_4521.jpg, DSC00873.png, image1.webp, final-final2.jpg or Screenshot 2026-03-02 at 10.14.22.png. They come straight from a camera, a phone, a screenshot tool or a stock photo site, and they get uploaded as they are.

Nobody sees the file name on the page, so the problem is easy to miss. It shows up in the image address, in the browser when someone saves the picture, and in the data search engines collect.

Why it matters

Search engines cannot see a picture the way you do. They use clues around it, and the file name is one of those clues. Google's image guidance says file names can help it understand the subject of an image. It is a small signal, not a ranking switch, so do not expect a jump in traffic from renaming alone. It matters most for products, recipes, portfolios, places and anything people search for in Google Images.

There are also practical benefits:

  • Image search: a clear name gives Google another hint about what the image shows, next to the alt text and the text around it.
  • Your own workflow: when you search your media library for walnut-dining-table, you find it. You will never find IMG_4521.
  • Trust and sharing: when a customer saves or shares your image, a sensible name looks professional.
  • Accessibility and clarity: the file name is not a replacement for alt text, but good names make it easier to write good alt text. See missing image alt text for that side.

There is no security risk here, and this is rarely the biggest problem on a site. It is a cheap, low-risk tidy-up, so do the important images first.

How to check if your site has it

You can check for free in a few minutes:

  1. Open an important page, right-click an image and choose to open it in a new tab (wording varies by browser). Read the last part of the address in the address bar.
  2. In Chrome or Edge, press F12, open the Network tab, choose the Img filter and reload the page. Every image file name on the page is listed.
  3. View the page source (Ctrl+U) and search for .jpg, .png or .webp.
  4. Open your media library (WordPress, Shopify, Wix and others all have one) and sort by name. Camera-style names stand out at once.
  5. Run a crawler. Screaming Frog has a free version with a limit on the number of URLs, which is enough for a small site.

SiteMonday looks for this in week 35, the image optimisation pack, and lists the images with weak names in the written report and the ranked fix list.

How to fix it in general

The aim is simple: each image gets a short name that describes what is in it.

Good habits for names:

  • Describe the picture in 2 to 5 words: blue-ceramic-coffee-mug.jpg.
  • Use lowercase letters, numbers and hyphens only. Google recommends hyphens between words, not underscores.
  • Avoid spaces, accents and special characters, which turn into ugly codes like %20 in the address.
  • Keep the original file type (.jpg, .png, .webp). Renaming is not converting.
  • Do not stuff keywords. chair-office-chair-best-cheap-chair.jpg helps nobody.
  • Add a place or product detail when it is true and useful, such as bakery-front-window-aarhus.jpg.

The safest order of work:

  1. List the images that matter most: product photos, hero images, team photos, and anything on pages that already get visits.
  2. Rename the files on your computer, then upload them again and swap them into the page.
  3. Once nothing still uses the old versions (see step 4), remove or replace them, and check the page still looks right.
  4. If the old file is linked from elsewhere (other pages, emails, other websites), keep the old file or set up a redirect from the old address to the new one, otherwise you create broken images.

Renaming a file that is already live is where most mistakes happen. Changing the name in a folder without updating the pages that use it breaks the picture. Re-uploading under a new name is usually safer than renaming in place.

Platform notes

Menus and options differ between versions, themes and plans, so treat these as a guide to where to look.

  • WordPress: the media library does not normally let you rename a file after upload. The easiest fix is to rename before uploading. For existing images, a plugin such as Media File Renamer can rename files and update references, but take a backup first. Step by step: WordPress guide.
  • Shopify: the image name is set when you upload. Usually you re-upload the product image under a good name and remove the old one. Shopify serves images from its own CDN address, but the file name is still part of that address. See the Shopify guide.
  • Wix, Squarespace, Webflow: some let you edit a file name in the media manager, others only the alt text or title. If you cannot rename, re-upload under a new name. Each has a guide under the same path, for example /fix/image-filenames-not-descriptive/wix/.
  • WooCommerce and Magento: product images follow the same upload rules as the underlying system, so rename before upload where you can. A developer can bulk rename and redirect if you have hundreds of products.

For a large catalogue, do not rename by hand. Ask your developer to script it, with redirects, and test on a copy first.

How to confirm the fix worked

  • Reload the page with the Network tab open (Img filter) and check the new names appear.
  • Make sure every image loads. A missing picture means a reference still points at the old name.
  • Click through the pages you changed on a phone and a computer.
  • In Google Search Console, watch the Pages report for new "Not found (404)" entries over the next weeks.
  • Be patient: Google needs time to recrawl and reindex images, and the effect is small and slow.

How to stop it coming back

The cheapest fix is a habit, not a tool. Rename images when they leave the camera or the stock site, before they reach the website. Write a one-line rule for everyone who uploads: lowercase, hyphens, describe the picture, no IMG_ or Screenshot. Add "file name and alt text" to your checklist for new pages and products.

If you want a regular reminder, the week 35 image optimisation pack re-checks your images each year, with a report and a fix list your developer can work through. Fixing is still up to you or your developer.

What to do first

Start with your five to ten most important images. Good names on those give you most of the benefit for very little effort.

Step by step for your platform

Questions

Do image file names really affect SEO?

A little. Google says file names can help it understand what an image shows, but it is a small signal compared with alt text, the page content and image quality.

Should I use hyphens or underscores in image file names?

Use hyphens. Google treats hyphens as word separators, so `red-leather-chair.jpg` reads as three words.

Will renaming an image that is already live break my site?

It can. If the old file name is still used on a page, in an email or on another site, the image will show as broken, so update every reference or keep a redirect from the old address.

Is the file name the same as alt text?

No. The file name is part of the image address, while alt text is a description shown to screen reader users and when the image fails to load. You should set both.

How long should an image file name be?

Short, usually 2 to 5 words that describe the picture. Long names stuffed with keywords add nothing.

Do I need to rename every image on my site?

No. Start with product photos, hero images and images on pages that get traffic. Decorative images matter much less.

Related problems