Image File Names for SEO: Rules + 10 Examples
An SEO image file name is a short, hyphenated, keyword-rich label like handmade-ceramic-mug.jpg that tells search engines what a photo shows before they read a single word of the page. Search engines parse file names as a ranking signal for image search, and disciplined naming also keeps your own catalog searchable for years. This guide gives you the exact rules plus ten copy-ready product examples.
Why file names still matter
Google Images cannot see your photo the way a shopper does — it reads the clues around it, and the file name is one of the earliest clues it meets. A descriptive name like speckled-blue-ceramic-mug.jpg confirms relevance for that exact query, while IMG_0042.jpg says nothing at all. It is a supporting signal rather than a primary one, but it costs nothing and compounds across every image you publish.
Consistency multiplies the effect. When the file name, the embedded metadata, the alt text and the page title all describe the same product with the same buyer vocabulary, every ranking system gains confidence about what the page sells. Naming is the cheapest of the four to fix, so fix it first.
The 5 naming rules
- Lowercase only — servers and URLs treat case inconsistently, so lowercase everywhere avoids broken-image surprises.
- Hyphens between words, never underscores or spaces — search engines read hyphens as word separators but join underscore_words into one token.
- One keyword phrase per file — describe the photo the way a buyer would search for it, not every synonym you know.
- Under 60 characters including the extension — short names stay readable in URLs, sitemaps and your own folders.
- Match the photo, not the listing — the detail shot gets speckled-blue-mug-closeup.jpg while the hero keeps handmade-ceramic-mug.jpg.
10 product examples that rank
- handmade-ceramic-mug.jpg — hero shot, material plus product.
- speckled-blue-mug-closeup.jpg — texture detail a buyer zooms into.
- ceramic-mug-12oz-scale.jpg — size reference against a hand or coin.
- leather-tote-bag-cognac.jpg — material, product and color in one phrase.
- tote-bag-interior-pockets.jpg — the objection-answering detail shot.
- silver-moonstone-ring.jpg — metal plus stone, exactly the search query.
- moonstone-ring-packaging.jpg — gift-box shot that sells the unboxing.
- linen-apron-crossback.jpg — style variant buyers filter for.
- apron-pocket-detail.jpg — craftsmanship close-up.
- soy-candle-amber-jar.jpg — scent plus container, the two things buyers type.
Bulk renaming without the pain
Renaming ten gallery photos by hand takes half an hour and invites typos; renaming a season catalog takes a weekend nobody has. Our optimizer assigns each photo a unique keyword-based name automatically — upload the batch and your keywords, and every file comes back named, tagged and ready to list. Unselected images still get sensible default names, so nothing ships as IMG_0042.
Keep your originals archived under their new names too. A well-named archive is searchable years later when you relist, refresh photos, or reuse shots for ads — future you will be grateful.
Mistakes that kill trust
- Keyword stuffing: mug-mug-mugs-cheap-blue-mug.jpg reads as spam to engines and humans alike.
- Underscores and spaces: blue_mug final(2).jpg breaks in URLs and merges words for crawlers.
- ALL CAPS or CamelCase: MUG-Blue.JPG risks case-mismatch 404s on strict servers.
- Renaming after ranking: the file URL changes, so old links and indexed images break — rename before upload, always.
- Same name for every angle: ten files called mug.jpg overwrite each other and waste nine ranking chances.
Frequently asked questions
How should I name images for SEO?
Use one lowercase keyword phrase with hyphens, under 60 characters, describing exactly what the photo shows — for example handmade-ceramic-mug.jpg. Match the buyer query, then stop.
Do image file names affect rankings?
Yes, as a supporting signal for image search. Descriptive names confirm relevance for the query, and when name, metadata, alt text and title agree, every ranking system gains confidence.
Should I use hyphens or underscores in file names?
Hyphens. Search engines treat hyphens as word separators, so blue-mug reads as two words, while blue_mug is read as a single token. Never use spaces either — they break in URLs.
How long should an image file name be?
Keep it under 60 characters including the extension. One clear phrase beats five crammed keywords, and short names stay readable in URLs, sitemaps and folders.
About BulkImageSEO
BulkImageSEO is a free image SEO toolkit maintained by Salah Berrehou. It renames files with keyword-rich names, injects Title, Subject, Tags and Comments metadata, compresses images for Core Web Vitals and converts formats. Uploaded files are deleted after 60 minutes and no account is required. Read more about the author, the step-by-step guide, or contact us.