pictuary

← Glossary

web performance and seo

File naming

The practice of giving images descriptive, SEO-friendly names that help search engines understand and rank your content.

What is File naming?

Image file naming for SEO is the practice of replacing camera-generated names like IMG_0238.jpg with descriptive, hyphen-separated words that tell search engines what an image contains. Google treats image filenames as direct ranking signals, indexing each word in the filename as keyword context for both Google Images and web search results. Proper file naming transforms generic camera defaults into SEO assets that improve image discoverability and overall page relevance.

Importance of File naming

Without SEO-friendly file names, your images remain invisible to search engines — Google can't interpret what IMG_4521.png shows, missing opportunities to rank in image search results. Descriptive filenames become permanent SEO signals that reinforce your page content, help images appear in relevant searches, and provide context clues that improve overall page ranking for target keywords.

File naming in Practice

When you upload product photos to an e-commerce site, renaming DSC_7829.jpg to red-leather-boots-front-view.jpg creates four indexed keywords that help the image rank for searches like "red leather boots" or "boot front view." This filename appears in Google Images results, image sitemaps, and CDN URLs — multiplying the SEO value across multiple touchpoints where the descriptive words reinforce relevance.

File naming Best Practices

  • → Replace camera defaults with 3-6 descriptive words separated by hyphens before uploading
  • → Use lowercase letters throughout — avoid capitals, spaces, and special characters
  • → Choose words that accurately describe what the image shows, not generic terms like "photo" or "image"
  • → Avoid keyword stuffing by limiting yourself to relevant, natural descriptions

Example of File naming

A photographer uploading wedding images would rename Canon_5D_0847.jpg to outdoor-wedding-ceremony-sunset.jpg. This creates four SEO keywords (outdoor, wedding, ceremony, sunset) that help the image rank in Google Images for searches like "outdoor wedding ceremony" while the hyphen-separated format ensures Google reads each word individually rather than as a single unclear term.

Related Terms

Image SEOAlt textImage sitemapJPEG / JPGWebPPNGEXIF data

Frequently Asked Questions

Should I use hyphens or underscores in image file names for SEO?

Use hyphens, not underscores, in image file names for SEO. Google treats hyphens as word separators, so blue-running-shoes.jpg is indexed as three separate keywords, while blue_running_shoes.jpg is read as one unbroken term. This distinction has been confirmed in Google's official image SEO documentation and directly impacts how well your images rank in search results.

How many words should I use in SEO friendly file names?

Use 3-6 descriptive words in SEO-friendly file names for optimal results. This length provides enough context for search engines to understand the image content without appearing spammy or keyword-stuffed. Focus on accuracy over length — choose the most relevant words that describe what someone searching would want to find.

Do image file names actually affect Google search rankings?

Yes, image file names directly affect Google search rankings as confirmed SEO signals. Google indexes the words in your filename as keyword context for both Google Images and regular web search results. When someone searches for terms that match your filename words, those images are more likely to appear in relevant search results, driving additional organic traffic to your site.