Skip to main content
Guides

Image SEO and Alt Text: Optimize the Whole Workflow

Image SEO and Alt Text: Optimize the Whole Workflow

A coffee-machine product page uses beautiful photography, but the file is named IMG_8472.jpg, rendered as a CSS background, weighs 4 MB, and sits far from any text identifying the model. Visitors on slow connections wait for it, screen readers cannot explain it, and search systems receive very little context.

Image SEO is not the act of placing keywords into an alt field after publication. It is a chain of decisions covering selection, naming, export size, nearby copy, HTML embedding, CDN delivery, metadata, and sitemaps. A good chain improves image discovery while protecting page speed and accessibility.

Google understands images through several signals

Alt text matters, but it does not work alone. Search systems can consider:

  • The content and headings of the landing page.
  • Nearby paragraphs, captions, and titles.
  • The image filename and URL.
  • The alt attribute.
  • Structured data and Open Graph metadata.
  • Links to the image or landing page.
  • Computer vision applied to the file.

An image of an “X200 coffee machine on a café counter” belongs on a page that genuinely discusses the X200, close to copy about its design or use. Placing it in a context-free gallery and writing a long alt attribute does not create the same clarity.

Use HTML elements crawlers can discover

Google Search Central recommends embedding content images with an <img> element and a URL in src. CSS backgrounds are useful for decoration, but they are not the correct method for an image intended to be found in Google Images.

A basic example:

<img
  src="/images/x200-black-coffee-machine.webp"
  alt="Black X200 coffee machine beside a burr grinder"
  width="1200"
  height="800"
>

Responsive implementations can use srcset, sizes, or <picture>, while retaining a valid img src as the core element. Inspect both source and rendered HTML to ensure the URL is not introduced only after an interaction that crawlers are unlikely to perform.

Pure decoration can remain in CSS. There is no reason to submit every texture, background icon, and divider to an image sitemap merely because it is a graphic file.

Write alt text for the image's purpose

Alternative text helps someone who cannot see an image understand the information or function it contributes. One formula cannot cover every type.

Informative images

Describe what is necessary to understand the surrounding section:

alt="Chart showing organic clicks rising from 1,200 to 1,850 in three months"

When the adjacent paragraph already states every value, the alt text may be shorter to avoid making a screen-reader user hear the same data twice.

Product images

Name the product and a useful view or variation:

alt="Side view of blue AirFlow running shoe with white rubber sole"

Do not repeat “buy cheap authentic running shoes” on every photograph. Front, back, sole, and material-detail shots need different descriptions because they provide different information.

Functional images

When an image is a button or link, describe the action or destination:

<a href="/cart">
  <img src="/icons/cart.svg" alt="Open shopping cart">
</a>

Decorative images

Use alt="" so assistive technology can skip them:

<img src="/decor/divider.png" alt="">

A missing alt attribute and an intentionally empty one are not identical for accessibility. The empty value clearly says that the image carries no information.

Images containing text

Whenever possible, put important words in real HTML. Text inside an image is difficult to resize, translate, access, and update. Logos are a familiar exception; their alt generally identifies the organization or the link function when the logo returns to the homepage.

Alt text that looks optimized but fails

Common problems include:

  • Listing keywords and locations that do not appear in the image.
  • Giving every product shot the same description.
  • Beginning everything with “image of” when the context is obvious.
  • Writing a 200-word paragraph instead of using a caption and body copy.
  • Copying an unclean filename into alt automatically.
  • Letting a vision model identify objects without considering the image's role in the article.

A model may recognize “a person beside a whiteboard,” but an editor knows whether it illustrates an audit workflow or introduces a conference speaker. Useful alt text combines visible information with contextual purpose.

Filenames and URL structure

x200-black-coffee-machine.webp gives a light clue and is easier to manage than DSC00991.webp. Practical rules are:

  1. Keep names short but distinguishable.
  2. Use truthful description rather than a keyword list.
  3. Separate words consistently with hyphens.
  4. Preserve the extension that matches the format.
  5. Do not change image URLs on every deployment when the content is unchanged.

For thousands of assets, derive names from product ID, variant, and camera angle: x200-black-front.webp, x200-black-side.webp. A consistent rule helps DAM, CDN, and content teams prevent duplicates.

When localized images contain translated text or market-specific information, localized filenames may make sense. When the same language-neutral image is shared across locales, one stable URL improves caching; alt text and captions can still be translated on each page.

Select format and compression deliberately

No format wins every use case:

  • JPEG: broadly supported and effective for photographs, without useful alpha transparency.
  • PNG: suitable for transparency and crisp detail, often heavy for photography.
  • WebP: efficient for many image types and widely supported by modern browsers.
  • AVIF: can produce smaller files at comparable visual quality, with encoding time and fallback workflow to consider.
  • SVG: ideal for logos, icons, and vector graphics; sanitize it when accepting user uploads.

Export close to the actual display dimensions. A 5,000-pixel source is unnecessary for a 600-pixel slot. Still provide a higher-density variant for sharp screens. Generate several sizes in the media pipeline instead of asking browsers to download the original and shrink it.

Compression should not blur product edges, text, or details a buyer needs. Inspect samples visually on several displays rather than approving only a savings percentage.

Responsive images reduce more than file size

srcset lets the browser select a resource based on viewport and pixel density:

<img
  src="/images/audit-dashboard-800.webp"
  srcset="/images/audit-dashboard-480.webp 480w,
          /images/audit-dashboard-800.webp 800w,
          /images/audit-dashboard-1280.webp 1280w"
  sizes="(max-width: 720px) 100vw, 720px"
  alt="Dashboard listing SEO issues by priority"
  width="1280"
  height="800"
>

An incorrect sizes value can make browsers choose an unnecessarily large file. Inspect the Network panel on mobile and desktop to see which resource actually loads rather than checking only that srcset exists.

Use a stable URL for each content variant. Constantly changing query versions can weaken caching and create many image addresses in logs.

Width, height, and CLS

width and height allow a browser to calculate aspect ratio before download. CSS can keep the image responsive:

img {
  max-width: 100%;
  height: auto;
}

Without reserved space, content below shifts when the file arrives, contributing to Cumulative Layout Shift. For cropped containers, define a stable aspect-ratio and suitable object-fit.

The Core Web Vitals optimization guide explains how hero images affect LCP and unstable dimensions affect CLS.

Apply lazy loading in the right places

Native lazy loading can delay images below the viewport:

<img src="/images/step-8.webp" alt="..." loading="lazy">

The hero or likely LCP image should not be delayed carelessly. Let browsers discover critical resources early, consider fetchpriority="high" for suitable cases, and do not hide the URL behind JavaScript.

A practical policy:

  • Eager-load the primary image likely to become LCP.
  • Lazy-load galleries and media far below.
  • Do not add a heavy script merely to lazy-load everything.
  • Reserve the correct placeholder ratio.
  • Test on slow networks and real devices.

Use the Page Speed Checker to measure LCP, CLS, and transferred image bytes after changing the media pipeline.

Captions and surrounding copy

Every image does not need a caption. Add one when a reader needs a source, result, date, person, condition, or specific detail to notice. A chart caption can state the data range; a before-and-after comparison should name its conditions.

Place an image near the relevant discussion. A six-step workflow infographic positioned three screens away from its heading has weak context and interrupts reading.

When an image contains important data, summarize the conclusion in HTML. Neither accessibility nor SEO should depend entirely on pixels.

Thumbnails in search and social sharing are selected automatically from multiple signals. A site can express a preference with:

  • og:image.
  • The image property on Article, Product, or another suitable schema type.
  • primaryImageOfPage.
  • A prominent featured image in the content.

Choose a relevant, high-resolution asset without an extreme aspect ratio. Avoid using a generic logo for every article or text-heavy artwork whose small words disappear in a thumbnail. Use the Social Preview Checker to inspect social presentation.

Every image URL in structured data must be accessible. If a CDN blocks crawlers, requires a cookie, or issues expiring URLs, valid markup cannot make the file retrievable.

When an image sitemap helps

An image sitemap is useful when important media is difficult to discover in ordinary HTML, is loaded by a complex application, or forms a major part of the site's value. Image entries can be added to existing page sitemaps without creating a completely separate system.

An image sitemap does not repair:

  • Blocked resources.
  • Error responses.
  • Images unrelated to their landing pages.
  • Tiny or poor-quality files.
  • A noindexed landing page.

When images live on another CDN domain, verify that domain in Search Console so crawl issues can be reported. Use absolute, stable URLs with the correct protocol.

CDN, cache, and access control

A CDN reduces latency but can create search problems when:

  • Hotlink protection blocks Googlebot or requests without a referer.
  • Signed URLs expire in minutes.
  • Every resize generates an unstable address.
  • Responses carry the wrong MIME type.
  • Cache returns 404 after the origin has the file.
  • The CDN's robots.txt blocks image directories.

Test without cookies and, where possible, from several user agents and regions. Review CDN logs to confirm crawlers receive 200, an accurate content type, and the expected byte size.

Do not rename an entire image library solely to move from JPEG to WebP without considering consequences. Content negotiation or a controlled update with redirects and sitemap changes may work, but account for caches, image backlinks, and recrawling.

Audit images by template

Sample the homepage, articles, categories, products, landing pages, and localized templates. For each, ask:

  1. Are content images in img src or CSS backgrounds?
  2. Does alt text exist, match purpose, and vary appropriately?
  3. Are filenames descriptive and URLs stable?
  4. Do width and height reserve space?
  5. Which image is LCP, and is it delayed?
  6. How many image bytes load on mobile?
  7. Do captions and nearby copy provide context?
  8. Do image URLs return 200 with the right MIME type?
  9. Is the featured image represented in OG and schema?
  10. Are strategically important images included in sitemaps?

Then prioritize by scale. One card component missing alt across 20,000 products belongs in a template fix. Ten poorly named blog images can be edited individually.

The SEO Checker reviews basic page attributes, while a free SEO audit helps find repeated defects before a shared component is changed.

A handoff workflow between teams

Durable image SEO needs clear ownership:

  • Photography/design: deliver clean masters, suitable crops, and usage rights.
  • Content: choose assets and write contextual alt text and captions.
  • Frontend: implement HTML images, responsive sources, dimensions, and loading.
  • Backend/DAM: name files, generate variants, retain metadata, and keep stable URLs.
  • DevOps/CDN: manage caching, MIME types, crawl access, and error monitoring.
  • SEO: define strategic landing pages, sitemap rules, tests, and measurement.

If alt text is appended at the end by someone who does not know where an asset appears, consistency suffers. A CMS should support alt per usage because the same file can require a different description in another context.

Measure the outcome

Track before and after by page group:

  • Clicks and impressions in Search Console with Image search type.
  • Entrances to landing pages from Google Images.
  • LCP, CLS, and total image transfer size.
  • Percentage of images missing alt or returning errors.
  • Crawl coverage for strategic images.
  • Conversions from sessions beginning with image search.

Do not expect an alt edit today to change traffic tomorrow. Images must be recrawled and processed. Results also depend on how visual the query is; a legal article may receive less image traffic than a recipe despite flawless implementation.

Conclusion

Effective image SEO begins with a useful asset placed in a relevant page and delivered through crawlable HTML. Alt text explains the image's role; filenames, captions, metadata, and sitemaps add context; responsive sizing, compression, and loading protect a fast, stable experience.

Do not turn alt into a keyword container, send enormous originals to small screens, or hide the primary content image as a CSS background. When content, frontend, and CDN teams share one workflow, images can become discoverable without sacrificing accessibility or Core Web Vitals.

References: Google Search Central image SEO best practices, responsive image guidance on web.dev, and W3C image accessibility tutorials.

Advertisement

Frequently asked questions

Does every image need descriptive alt text?
No. Informative and functional images need suitable text, while purely decorative images should use an empty alt value so screen readers skip them.
Should the hero image be lazy-loaded?
Usually not when it is likely to be the LCP element above the fold. Make critical images discoverable early and lazy-load media farther down.
Does an image sitemap replace alt text?
No. A sitemap supports URL discovery, while alt text and surrounding content provide context. The image must still be accessible and relevant.
#Technical SEO #Core Web Vitals #On-page SEO

Nhận bản tóm tắt SEO checklist qua email

Đăng ký để nhận bản tóm tắt các bước tối ưu SEO quan trọng nhất từ bài viết này.

Check your website for free

Run an SEO audit or check your traffic quality now — no signup required.