RankpediaA plain-English encyclopedia of search

Image File Name SEO Moz

Names image files descriptively with hyphens so search engines understand the content without needing to crawl the image itself.

If you have ever renamed image files without also improving page relevance or alt text, you already know filenames alone rarely move rankings much.

Key points

  • Name image files with three to five descriptive words joined by hyphens to help search engines parse each word clearly.
  • Describe what the image actually shows before adding a keyword naturally.
  • Rename files before uploading to use optimised names from the start.
  • Image SEO tools like SEO PowerSuite vs Moz both recommend descriptive filenames as part of a broader optimisation checklist.
  • Avoid keyword stuffing, underscores, spaces, or generic camera names like DSC0001.

One generic filename, two different outcomes

A site uploaded a photo of a red bicycle labelled IMG_5678.jpg. After three months, it never appeared in image search. The owner renamed it to red-mountain-bike-with-basket.jpg and added relevant alt text and page context. Within six weeks, the image started appearing for related queries. The same image and page, but the descriptive filename helped search engines connect the content more quickly.

Three common mistakes that weaken filename SEO

  • Generic camera names Using names like DSC0001 or IMG_1234 offers search engines zero context. Your camera’s default naming works against image discovery from the start.
  • Keyword overstuffing Packing three keywords into a filename like red-bike-bicycle-cycle.jpg looks unnatural and spammy to search engines. Describe the image first.
  • Spaces and special characters Spaces, underscores, and symbols like %20 or & make filenames harder for search engines to parse. Hyphens between words create a clean readable file name.

Three checks before you rename any image

  • Is the page topic aligned? A descriptive filename works best when the image matches the page’s subject. A red bicycle photo on a hiking page adds less relevance than on a bike review page.
  • Does the filename describe the image? Prioritise what the image shows—object, colour, action—over keywords. A filename like grey-cat-sleeping-on-sofa helps users and search engines more than best-cat-furniture-guide.jpg.
  • Have you set up alt text? Alt text gives a second textual signal. Without it, your descriptive filename stands alone, and a missing alt tag leaves blind users without context.

Common questions

Does image file name SEO affect regular page rankings directly?

Not directly. Google focuses on page content, links, and user experience. However, descriptive filenames support image search visibility and reinforce page relevance signals.

Should I use underscores or hyphens in image filenames?

Use hyphens. Google states hyphens are word separators, while underscores combine words into one token, making the filename harder to parse.

How many words should a good image filename have?

Aim for three to five words describing the image. This keeps the name descriptive without becoming a sentence-like string that dilutes relevance.

Sources

  1. Google Search Central: Image SEO Best Practices Explains how descriptive filenames fit into overall image optimisation.
  2. Google Search Central: SEO Starter Guide Covers basic recommendations for file naming and other SEO fundamentals.