Getting your image file names for SEO right is a small, easy win that quietly supports your visibility in Google Image Search. The file name isn’t the single biggest ranking factor, but descriptive, keyword-rich names give search engines one more clue about what each image shows — and that can help the right people find your content. According to Google Search Central, a filename “can give Google very light clues about the subject matter of the image,” so it’s worth a few extra seconds when you upload.
In this guide, the Eric Rounds Agency team breaks down exactly how to name your files, why dashes beat underscores, and when a date belongs in the name.
In This Guide
- Why Image File Names for SEO Matter
- Dashes vs. Underscores: Which Separator Wins
- Should You Include Dates in Image File Names?
- A Simple Naming Formula That Works
- Key Takeaways
- Frequently Asked Questions
Why Image File Names for SEO Matter
Google can use your filename as an additional clue about what an image depicts. Combined with alt text, captions, and the surrounding page content, the filename helps search engines index your images more accurately and potentially rank them higher in image search results.
That said, keep the impact in perspective. Google is clear that alt text carries far more weight, calling it “the most important attribute when it comes to providing more metadata for an image” (Google Search Central). The filename is a supporting signal, not the headline act.
Still, optimized image file names for SEO can move the needle — especially when visuals are central to your business. For an e-commerce store, product photos are a real traffic source, so a name like leather-weekender-bag-brown.jpg beats IMG_4821.jpg every time.
Dashes vs. Underscores: Which Separator Wins
Use dashes (hyphens), not underscores, to separate words in a filename. Google treats a hyphen as a word separator, while underscores tend to join words together rather than break them apart.
In practice, that means sunset-over-lake.jpg is far more likely to be read as “sunset over lake,” whereas sunset_over_lake.jpg can be interpreted as the single string “sunsetoverlake.” This distinction has been consistent Google guidance for years, so hyphens are the safe, standard choice for both filenames and URLs.
Also skip spaces, capital letters, and special characters. Spaces get converted to clunky %20 codes in a URL, and mixed case can create messy, inconsistent links.
Should You Include Dates in Image File Names?
Adding a date — for example, 2026-07-10-sunset-over-lake.jpg — isn’t a problem, but it’s usually optional. Reach for a date only when it genuinely adds meaning.
Include a date when the timing is part of the content: news coverage, event photography, annual reports, or seasonal campaigns where the year actually matters to the searcher. In those cases, the date can help both users and search engines place the image in context.
For everything else, leave the date out and keep the name concise. A shorter, purely descriptive filename is easier to read and keeps the focus on the subject of the image rather than a timestamp most visitors will never care about.
A Simple Naming Formula That Works
When in doubt, follow one repeatable pattern: subject + descriptive detail + optional context, all lowercase and separated by hyphens.
Here’s how that looks in the wild:
red-running-shoes-womens.jpg— a product photoaustin-skyline-at-dusk.jpg— a location image2026-annual-report-cover.jpg— a dated, time-sensitive asset
Match the filename to what a person would actually search for, and mirror the keyword you’re already using in the alt text and surrounding copy. Consistency across those signals is what makes your image file names for SEO pull their full weight.

Key Takeaways
- Be descriptive. Keyword-rich image file names for SEO can marginally help rankings, especially in Google Image Search.
- Use dashes, not underscores. Google reads a hyphen as a word separator; underscores are not.
- Add dates only when relevant. For time-sensitive content, a date helps; otherwise, keep names short and subject-focused.
- Pair filenames with strong alt text. Alt text is the heavier signal, so optimize both together.
Frequently Asked Questions
Do image file names really affect SEO?
They play a small, supporting role. Google uses the filename as a “very light” clue about an image’s subject, working alongside alt text, captions, and page content to understand and rank your images (Google Search Central).
Should I use dashes or underscores in image file names?
Use dashes. Google interprets hyphens as spaces between words, so sunset-over-lake.jpg reads as three distinct words, while an underscored version can be read as one long string.
Is it bad to include a date in an image filename?
No, it’s fine — just optional. Add a date when it’s meaningful to the content, such as news or seasonal images. Otherwise, a concise, keyword-based name is usually the better choice.
How long should an image file name be?
Keep it short and specific: enough words to describe the subject clearly, without stuffing in every keyword. A handful of descriptive, hyphenated words is the sweet spot.
Want a full image and on-page SEO tune-up for your site? Get in touch with Eric Rounds Agency and we’ll handle the details.