Reference guide · images · Published 2026-08-16 · 3 min read
Image SEO filenames alt text and captions
Image SEO basics: descriptive filenames, meaningful alt text and captions help Google understand images. Filenames are a light signal; alt text is the strongest one.
- ·What each signal tells Google
- ·Writing alt text that helps
- ·Filenaming done right
What each signal tells Google
Google extracts subject-matter clues about an image from the text that surrounds it, and the strongest explicit text label on an image is its alt attribute. Google uses alt text together with computer-vision analysis and the surrounding page content to work out what an image depicts, so it carries real weight in Google Images and in general ranking context. A caption is treated as high-confidence context too, which is why placing an image near relevant text and captions helps more than an image sitting alone in an unrelated section.
Filenames are a real but deliberately light signal. Google's own guidance says a descriptive name like my-new-black-kitten.jpg beats IMG00023.JPG, but it describes the clue as "very light". Filenames complement alt text rather than substituting for it, and for most sites the effort is better spent on the on-page text signals first.
Writing alt text that helps
Alt text serves two masters: it is an accessibility requirement for screen-reader users, and it is the primary text signal about what an image shows. The right approach is to describe the image in context, not to stuff it with keywords. Aim for roughly 8 to 16 words, describe what is actually visible, and skip empty openers like "image of", because a screen reader already announces that an image is present. For a decorative graphic with no information value, use an empty alt="" so assistive technology skips it rather than announcing a filename.
A natural pattern when the keyword happens to fit is fine; forcing it reads as spam and can hurt. For a complex chart or infographic, keep a short alt label and put the full explanation in the body text or a text alternative, because a long alt string becomes tedious to hear read aloud and is truncated by some accessibility tooling.
Filenaming done right
When you do name image files for the web, keep them short and descriptive, use lowercase and hyphens (not underscores, which search systems do not treat as word separators), and avoid generic names like image1.jpg. The extension is not proof of format: the served Content-Type header and the decoded bytes are what actually matter, so rely on those after any conversion.
Rename before uploading rather than after indexing. Renaming an already-indexed, ranking image changes its URL and forces a redirect, 404 risk, and fresh crawl for a payoff that Google has described as minimal. If an image is already ranking with good alt text and context, leave its URL alone. For the surrounding practical decisions, the image SEO guide covers the complete picture including sitemaps and the file-size side, and the screenshot best-practice article covers images inside documentation specifically.