SEO & Content Strategy Fundamentals

Naming Images for SEO: The Complete Guide (With Examples)

How naming images for SEO actually works, the exact rules that matter, and real before-and-after filename examples to make your images easier to find.

Naming Images for SEO: The Complete Guide (With Examples)

Image filenames are one of the easiest SEO details to overlook. A product photo named IMG_4827.jpg or screenshot-2025-03-11.png tells search engines almost nothing about what the image shows. Naming images for SEO sounds like a minor detail. It is, individually. It is also one of the simplest improvements a website can make.

This guide covers how naming images for SEO works, the rules that matter, and examples of a bad filename turned into a good one.

🔑 Key Takeaways
  • Filenames give search engines a light but genuine clue about an image's subject, according to Google's own documentation.
  • Use hyphens, not underscores or spaces, and keep filenames to roughly three to six descriptive words.
  • Naming images for SEO should describe the actual content of the image, not a project code or generic camera default.
  • A filename and alt text serve different purposes and should both be optimized, not treated as substitutes for each other.
  • Renaming already-indexed images without a redirect can break links and lose existing image search visibility.

Why Naming Images for SEO Matters

Search engines cannot see an image the way a person can. They rely on text based signals around an image to understand what it shows, and the filename is one of the first signals a crawler encounters, often before it reaches alt text or surrounding page copy. Google's own image SEO documentation notes that a filename gives Google light clues about the subject of an image, and recommends short, descriptive names over generic defaults.

On its own, a filename is a small signal. But naming images for SEO compounds with alt text, captions, and surrounding content to build a fuller picture of what an image shows, and it costs nothing extra to do correctly from the start.

The Core Rules for Naming Images for SEO

Describe exactly what's in the image. The filename should describe the actual content, not the product line, campaign name, or internal project code. A photo of a red leather office chair should be named red-leather-office-chair.jpg, not chair-v3-final.jpg.

Use hyphens, not underscores. Google reads hyphens as word separators, so blue-running-shoes.jpg is parsed as three distinct words. Underscores are generally not read as separators, which means blue_running_shoes.jpg risks being treated as a single string. This is one of the most widely repeated rules in guides to naming images for SEO.

Never use spaces. A filename with spaces gets converted into %20 characters in the URL, which is harder to read and less helpful for search engines parsing the words. Replace spaces with hyphens before uploading.

Keep it short but specific. Aim for roughly three to six words, generally under 60 characters. golden-retriever-puppy-park.jpg works. a-cute-golden-retriever-puppy-playing-fetch-in-the-park-on-a-sunny-afternoon.jpg does not.

Use lowercase letters. Some servers treat file paths as case-sensitive, which can create duplicate or broken references if filenames mix cases. Lowercase, hyphenated filenames are the safest default.

Include a target keyword only when it is genuinely accurate. If a page's primary keyword accurately describes an image, working it into the filename is useful. Forcing an unrelated keyword into every image filename reads as manipulative to both users and search engines.

Bad Filename vs Good Filename: Real Examples

  • Bad: IMG_00234.JPG  →  Good: stainless-steel-french-press.jpg
  • Bad: photo (3).png  →  Good: minimalist-living-room-design.png
  • Bad: Screenshot_2026-02-11_at_3.42.11PM.png  →  Good: google-search-console-dashboard.png
  • Bad: DSC00981_final_v2.jpg  →  Good: hiking-trail-yosemite-sunrise.jpg
  • Bad: product_image_blue.jpg  →  Good: blue-canvas-backpack-front-view.jpg

File Format Also Matters

While not strictly part of naming images for SEO, file format affects page speed, which is a related ranking factor. WebP is a strong modern choice for its compression relative to quality. JPEG remains a solid default for photographs, PNG works well for graphics that need transparency, and SVG suits logos and icons since it scales without losing quality. Matching the file extension to the actual file type also avoids small inconsistencies that can confuse crawlers.

Naming Images for SEO vs Writing Alt Text

These two get confused often, but they serve different purposes. A filename is a short, hyphenated descriptor read primarily by search engines and rarely seen by users. Alt text is a fuller, natural-language description read by screen readers and shown if an image fails to load, and it should describe the image the way you would explain it to someone who cannot see it. Naming images for SEO covers the filename. Alt text is a separate practice that works alongside it.

Common Mistakes When Naming Images for SEO

Keyword stuffing the filename. best-cheap-affordable-running-shoes-sale-discount-2026.jpg helps nothing and looks exactly like what it is.

Renaming images after they are already indexed without redirects. Changing a filename on a live, indexed image can break existing links and lose accumulated image search visibility. If a rename is necessary, set up a redirect from the old image URL to the new one.

Using the same generic filename across multiple images. product-photo.jpg uploaded fifty times across a catalog gives search engines nothing to tell one product from another.

Ignoring filenames on images that already perform well. A well performing site with unoptimized filenames may be leaving Google Images visibility on the table.

Frequently Asked Questions

Does naming images for SEO actually affect rankings?
Filenames are a light but genuine signal for both regular search and Google Images, according to Google's own documentation. They work best combined with strong alt text and relevant surrounding content, not as a standalone tactic.

Should I use hyphens or underscores in image filenames?
Hyphens. Google reads hyphens as word separators, so multi-word filenames are parsed as distinct words, while underscores are generally not recognized as separators.

How long should an SEO-friendly image filename be?
Roughly three to six words, generally under 60 characters, is the commonly recommended range: descriptive enough to be useful, short enough to stay readable.

Is it safe to rename images that are already live on my website?
It can be, but it carries risk. Renaming an already-indexed, already-linked image without a redirect from the old URL to the new one can break links and lose existing image search visibility.

Should every image filename include my target keyword?
Only when the keyword genuinely and accurately describes the image. Forcing a keyword into every filename regardless of relevance looks manipulative.

What is the difference between an image filename and alt text?
A filename is a short, hyphenated descriptor that lives in the URL and is rarely seen by users. Alt text is a fuller, natural-language description read by screen readers and shown if the image fails to load. Both matter, but they serve different purposes.

Conclusion

Naming images for SEO is one of the simplest, lowest-cost improvements available on most websites, and one of the most often skipped. A short, hyphenated, accurately descriptive filename costs nothing extra at upload time and works alongside alt text and page context to help search engines understand what an image shows. If your broader on-page work needs a review, our SEO services cover image and metadata alongside the rest of the site.

READY TO GROW?

Turn Search Into Your Strongest Growth Channel

Whether you want to rank higher on Google, increase your visibility in AI search, or build a content strategy that delivers long-term results, we're here to help. Let's create a growth plan tailored to your business.