Image SEO means helping search engines find, understand and index your images while keeping them accessible to everyone who visits your site. The core steps are simple: use a standard img src rather than a CSS background, write alt text that describes the image's purpose, choose a short descriptive filename, and place the image near text that explains it. None of this guarantees a ranking, but it removes the common barriers that keep useful images out of search results.
How does Google discover and index images?
Google finds images primarily through the src attribute of an HTML img element, including img elements nested inside a picture tag for responsive markup. It does not index CSS background images the same way, so a visual that only appears via background-image in a stylesheet is far less likely to surface in image search. If you rely on picture with multiple source elements for format or size switching, keep a plain img with a working src as the fallback, and make sure the final image URL is reachable by crawlers rather than blocked by robots rules or authentication.
An image sitemap can help a crawler notice images it might otherwise miss, particularly on large catalogs, but submitting one is not a guarantee of indexing or inclusion. The more reliable signal is simply having a crawlable src on a page that is itself indexable.
Why is alt text the most important image attribute?
Alt text is the attribute Google treats as the most important piece of image metadata: it gives search engines a text description of what the image shows, and it gives screen reader users the same information when the image itself cannot be perceived. Because it serves both purposes at once, alt text deserves more care than a filename or a caption.
Treat alt text as a replacement for the image, not a label stuck next to it. If someone could not see the picture, the alt text should tell them what they are missing in the context of that page, rather than restating the page's main keyword.
How to write descriptive alt text without keyword stuffing
Keep alt text short, usually one or two sentences, and skip redundant phrases such as 'image of' or 'photo of' since screen readers already announce that an image is present. Describe what is actually visible and relevant to the surrounding content, and stop there.
Illustrative example, not a measured test: a product page for a leather bag shows a close-up of the stitching along one seam. Alt text like 'Close-up of hand-stitched leather seam on the Oakridge tote' describes the actual detail. Alt text like 'leather bag buy now best leather bag store' repeats a keyword and a call to action instead of describing the picture, which is keyword stuffing rather than a description.
Google's spam policies treat keyword stuffing in alt attributes as a violation that also produces a worse experience for anyone relying on that text, so repeating the same product term across every image on a page can work against you rather than help.
Captions and alt text serve different readers: a caption is visible to everyone and can carry attribution or extra detail, while alt text is read by assistive technology and used by search engines when the image itself is not rendered. Deciding which one should hold a given detail is worth planning deliberately rather than duplicating the same sentence in both.
Should you use descriptive filenames for images?
Google describes filenames as providing light clues about an image's subject matter. A file named oakridge-tote-stitching-detail.jpg gives a crawler a small hint that IMG_4213.jpg does not. That said, the filename is a minor signal compared with the page title, surrounding text and the alt attribute, so renaming files is worth doing but will not compensate for a thin or unrelated page.
One practical limitation: if an image URL is already published and linked to or indexed, changing the filename without keeping the old path working (through a redirect or by updating every reference) can turn a working image into a broken one. Rename files before publishing where possible, or update all references at the same time you rename them.
How to handle decorative versus informative images
Not every image carries information that needs describing. A decorative divider, a background texture, or a repeated icon that is explained elsewhere on the page does not need alt text that restates nearby content. The accepted approach is a null alt attribute, written as alt with an empty value, which tells assistive technology to skip the image rather than read out its filename or a forced description.
| Image type | Alt text approach | Why |
|---|---|---|
| Informative photo or diagram | Short description of what is shown | Replaces the image for anyone who cannot see it |
| Decorative divider or background pattern | Empty alt attribute (alt="") | Lets screen readers skip content that carries no meaning |
| Icon paired with visible label text | Empty alt attribute, rely on the visible label | Avoids reading the same information twice |
| Chart or infographic with data | Alt text plus a text summary or data table nearby | A short alt cannot carry full data; the surrounding text should |
Where should images be placed for maximum context?
Placing an image close to the text that discusses it helps Google associate the two, which gives the crawler better context for what the image is about and how it fits the page. An image dropped far from any related text, or pulled in purely by a template with no supporting copy nearby, gives search engines less to work with even if the alt text is well written.
In practice this means writing the surrounding paragraph before or after the image placement is finalized, rather than treating the image as decoration added last. A product photo belongs near the paragraph describing that product's materials or use, not in a generic banner carousel shared across unrelated pages.
To check your own work, view the page source or rendered HTML and confirm the image sits inside a real img element with a working src, read your alt text aloud and ask whether it would make sense to someone who cannot see the photo, and check that the filename and surrounding paragraph are not contradicting each other. If you have access to Google Search Console, review the Images report over time rather than after a single page edit, since indexing and any visibility changes take time to show up and are never guaranteed by following these practices alone.
Keep expectations realistic: good alt text, sensible filenames and useful placement remove barriers to discovery and improve accessibility, but they do not guarantee indexing, a particular ranking, or that an image will appear in image search results at all. Treat them as groundwork, not a ranking lever on their own.