Image File Names

Image file names are the names given to image files, such as red-leather-sofa.jpg, which become part of the image URL. Google has said file names can give it light clues about an image’s subject, so short, descriptive names are a simple, low-effort part of image SEO.

What image file names are

When you upload a photo from a camera or phone, it often has a name like IMG_4821.jpg or DSC00153.png. That name usually becomes part of the image’s URL on your site, for example example.com/images/IMG_4821.jpg. Renaming the file before upload to something meaningful, such as oak-dining-table-6-seater.jpg, tells people and search engines what it shows.

Most content management systems, including WordPress and Shopify, keep the original file name when creating the image URL, and WordPress also uses it as the default image title. That makes naming a habit worth building into your upload process, especially on sites that add many product or project photos every week. A naming convention agreed across the team keeps the media library consistent over time.

Why they matter for SEO

Google’s image SEO guidance says file names can give it light clues about the subject of an image, and recommends short but descriptive names. They are a small signal, far less important than the surrounding text, captions and alt text, but they help in a few ways:

  • They add context for Google Images and other visual search results.
  • They make your media library far easier to organise and search.
  • They are visible when people download or share images, which can reinforce your brand or product name.
  • Clean image URLs fit a consistent URL structure across the site.

How to name image files

  1. Describe the image. Say what it shows in a few words: blue-ceramic-coffee-mug.jpg.
  2. Use hyphens between words. Google recommends hyphens rather than underscores or spaces in URLs.
  3. Use lower case. This avoids duplicate URLs on servers that treat upper and lower case differently.
  4. Keep it short. Three to six words is usually enough.
  5. Be specific where useful. Include model names, colours or locations if they help identify the image.
  6. Avoid special characters. Stick to letters, numbers and hyphens.
  7. Rename before uploading. Changing names later changes URLs, which can break links and lose image rankings unless redirected.

Examples

PoorBetter
IMG_4821.jpgvictorian-terrace-loft-conversion.jpg
photo1.pngwomens-trail-running-shoe-grey.png
Final_FINAL_v3.jpglondon-office-reception.jpg
cheap-best-shoes-buy-shoes-online.jpgleather-chelsea-boots-brown.jpg

Common mistakes

  • Uploading straight from a camera with default names.
  • Stuffing file names with repeated keywords that do not describe the image.
  • Using the same generic name with numbers, such as product-1, product-2, across a whole catalogue.
  • Renaming large numbers of existing images without redirecting the old URLs.
  • Focusing on names while ignoring bigger factors such as image compression and page context.

File names are one part of a wider approach to image SEO, alongside alt text, captions, formats, sizing and sitemaps.

Key Takeaways

  • Image file names become part of the image URL.
  • Google says file names give light clues about image content.
  • Use short, descriptive, lower-case names with hyphens.
  • Rename files before upload to avoid broken image URLs.
  • Alt text and surrounding content matter more than file names.

Related Terms

Browse more terms in the SEO Encyclopedia.