Skip to content

Image file names and alt text for SEO: patterns that work

SEO5 min readLast updated November 17, 2026

A product photo that arrives as IMG_4821.jpg with no alt text tells search engines and screen readers nothing. A clear file name and a short, honest alt text cost a minute per photo and help in several places at once.

Why file names and alt text matter

Search engines cannot see a photo the way a shopper does. They read clues around it: the file name, the alt text, the text on the page and the page title. Google has long said that descriptive file names and alt text help it understand what an image shows, which can help the image appear in Google Images and in the page ranking for the product.

Alt text has a second, more important job. Screen readers speak it aloud for people who cannot see the image, and browsers show it when the image fails to load. Good alt text is first of all an accessibility feature, and the search benefit follows from writing it for a real person.

Write file names that describe the product

A file name is the cheapest SEO you will do, because you only have to get it right once. These habits work on almost every platform:

  • Describe what the photo shows: brand, product, colour or variant, and the angle.
  • Use lowercase letters, digits and hyphens. Hyphens read as word separators, while spaces and underscores can cause trouble in web addresses.
  • Avoid accents, symbols and emoji. They are encoded oddly in links and can break on some systems.
  • Keep it short enough to read. The SEO Image Renamer caps the descriptive part at 60 characters, because long names get cut off in search results.
  • Number photos of the same product (front, side, back) so each file stays unique.
  • Do not stuff keywords. A name that reads like a list of search terms helps nobody.
BeforeAfter
IMG_4821.jpgacme-ceramic-mug-blue-front-1.jpg
Final FINAL (2).JPGoak-side-table-natural-detail-2.jpg
photo of mug best price cheap buy now.jpghandmade-mug-speckled-white-3.jpg

Write alt text for people first

Alt text is a short description of the image, written as if you were explaining the photo to someone on the phone. A commonly recommended guideline is to keep it to about 125 characters, because some screen readers and tools cut longer text. The renamer warns above that length for the same reason. Here is what good alt text usually does:

  • Says what is actually visible, including the product name and the details a buyer cares about, such as colour, material or what the photo shows.
  • Is specific. "Blue ceramic mug with a speckled glaze on a wooden table" beats "mug".
  • Skips filler like "image of" or "photo of". The screen reader already announces that it is an image.
  • Differs between photos of the same product. Describe the angle or the detail each one adds.
  • Uses a keyword once, where it fits naturally, and never repeats it.
  • Is left empty for purely decorative images, so a screen reader can skip them.

Alt text examples

The same product needs a different description for each photo. Here is how that can look for a mug:

PhotoWeak alt textBetter alt text
Main photomugBlue ceramic mug with a speckled glaze, front view
Detailmug mug blue mug buy mugClose-up of the handle and the speckled glaze on the blue mug
In useimage of mugHand holding the blue mug next to a laptop on a desk

Where it counts: your shop and the marketplaces

On your own website, file names and alt text are fully under your control and are worth doing for every product image. Shop platforms such as Shopify let you set alt text for each product image in the admin, and you can often fill it in during an import. Check your platform's help pages for the exact field.

Marketplaces behave differently. Many process or rename uploaded images, and their search relies mostly on the listing title, attributes and tags rather than on your file name. Do not expect a file name to move a marketplace ranking, but a clean name still keeps your own files organised. For size and format rules per platform, see the pages for Shopify and Etsy.

A quick workflow for a whole product range

  1. Convert and resize the photos first, so you rename the final files. The Bulk Image Optimizer does both for many photos at once.
  2. Open the SEO Image Renamer, add the photos and fill in the brand, product, colour and a few keywords.
  3. Pick a name pattern and check the preview. Angle words such as front, side and detail are added per photo.
  4. Edit any alt text that needs a human touch. Fix those that are over the 125 character warning.
  5. Download the ZIP with the renamed photos and the CSV of alt texts, then paste or import the alt text into your shop.

Everything runs in your browser, so the photos are not uploaded. Our pre-upload checklist covers the other things to check, and the Listing Image Pack creates the sizes you need from one photo.

Common mistakes

A few habits quietly undo the benefit:

  • Using the same alt text on every photo of a product. Each image should add its own detail.
  • Renaming files before editing them, then losing track of which version is final. Rename the finished files.
  • Leaving the camera name in place on the main product image because it "does not matter".
  • Writing alt text for search engines instead of for a person who cannot see the photo.
  • Changing file names after publishing without checking links. On your own site, a renamed file gets a new address.

Summary

  • Name files after what they show, in lowercase with hyphens, and keep them short.
  • Write alt text for a person who cannot see the image, around 125 characters or fewer, as a common guideline.
  • Make each photo of a product different, and never stuff keywords.
  • Expect the biggest benefit on your own site and Google Images, and a smaller one on marketplaces.

Try it on your own photos

These free tools run in your browser. Your images are never uploaded.

Install PixelHone on your iPhone or iPad

Add it to your Home Screen to open it like an app and use it offline.

  1. Tap the Share button in Safari.
  2. Scroll down and choose Add to Home Screen.
  3. Tap Add.