Image SEO: How to Optimize Images for Search and Speed

Cover image for the SEOAST guide Image SEO: How to Optimize Images for Search and Speed
On Page SEO8 min readUpdated November 2026

Quick answer

Image SEO is the practice of making images easy for search engines to find, understand, and load quickly. It covers descriptive file names and alt text, placing images near relevant text, using standard HTML image elements, choosing efficient formats such as WebP or AVIF, compressing and sizing files correctly, serving responsive images, and lazy loading images below the fold. Done well, it improves visibility in Google Images and makes pages faster.

Image SEO at a glance infographic: Image SEO helps search engines find and understand images while keeping pages fast; Use real img elements; Google does not index images added through CSS backgrounds; Give images descriptive file names, useful alt text, and placement next to relevant text; Use efficient formats such as WebP or AVIF, resize and compress files, and set width and height; Serve responsive images with a fallback src and lazy load only images below the fold
Image SEO at a glance. Graphic: SEOAST

Images do two jobs for a page. They make content clearer and more engaging for readers, and they can bring in traffic of their own through Google Images and image-rich search features. Poorly handled images do the opposite: they slow pages down and give search engines nothing to work with.

This guide covers image SEO from end to end. It explains how Google discovers and understands images, how to name and describe them, which formats to use, how to keep file sizes small, and how to serve images that load quickly on every device.

In this guide
  1. What Is Image SEO?
  2. How Google Finds and Understands Images
  3. Name Image Files Descriptively
  4. Write Useful Alt Text
  5. Place Images in Context
  6. Choose the Right Image Format
  7. Compress and Size Images Correctly
  8. Serve Responsive Images
  9. Lazy Load Images Below the Fold
  10. Use Image Sitemaps and Structured Data
  11. Measuring Image SEO Results
  12. Frequently asked questions

What Is Image SEO?

Image SEO is the set of practices that help search engines find, understand, and rank your images, while keeping them fast for visitors. It has two halves. The discovery and understanding half covers markup, file names, alt text, captions, context, and sitemaps. The performance half covers formats, compression, dimensions, responsive delivery, and lazy loading.

Both halves matter. An image that Google understands perfectly but that takes several seconds to load hurts the page it sits on. A tiny, fast image with a meaningless file name and no alt text is invisible to search.

How Google Finds and Understands Images

Google’s image documentation is explicit about discovery. It finds images in the src attribute of standard HTML img elements, including img elements inside picture elements. It does not index images added through CSS, such as background images. If an image matters for search, it needs to be a real img element.

To understand what an image shows, Google combines several signals. It reads the alt text, the file name, the page title, captions, and the text around the image. It also uses computer vision to analyze the image itself. The surrounding page context is especially important, because it tells Google why the image is there.

Google Search supports images in BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF formats. AVIF was added in August 2024. Google also recommends that the file extension match the actual file type.

The Rule

If you want an image to appear in search, use an img element with a src attribute, place it near relevant text, and describe it with alt text. Images in CSS backgrounds are not indexed.

Name Image Files Descriptively

A file name is a small but useful clue. Google’s guidance contrasts a name like my-new-black-kitten.jpg with a generic one like IMG00023.JPG, and recommends short, descriptive names.

  • Describe the subject in a few words, such as cast-iron-pan-rust-removal.jpg.
  • Separate words with hyphens, the format Google recommends for URLs.
  • Avoid generic names such as image1.jpg or screenshot.png.
  • Do not stuff keywords into file names.
  • Translate file names when you localize a page for another language.

Rename files before uploading. Renaming after upload usually changes the image URL, which can break links and reset any search visibility the image had built.

Write Useful Alt Text

Alt text is the most important descriptive element for an image. It is read aloud by screen readers, shown when an image fails to load, and used by Google to understand the image. Google’s guidance asks for useful, information-rich alt text that fits the context of the page, and gives a keyword-stuffed example as something to avoid.

Good alt text describes what the image shows and why it matters on that page. A product photo might need the product name, color, and angle. A chart needs the main finding it shows. A purely decorative image should have empty alt text so screen readers skip it. Our full guide on what alt text is covers the rules and examples in detail.

Place Images in Context

Google uses the text around an image to understand it, so placement matters. Put images next to the paragraphs they illustrate, not in a gallery at the bottom of the page. Use captions where they help readers, because captions are among the most read text on a page and give Google another clear description.

The page itself also shapes how an image ranks. Google’s documentation notes that it uses the page’s content and title when ranking images. An image on a strong, relevant page is more likely to appear in image results than the same image on a thin one.

Choose the Right Image Format

Modern formats can cut file sizes dramatically without visible quality loss.

FormatBest forNotes
JPEGPhotographsUniversally supported, larger than modern formats
PNGGraphics needing sharp edges or transparencyOften large for photos
WebPPhotos and graphicsSupported by all major browsers, usually much smaller than JPEG or PNG
AVIFPhotos and graphicsOften smaller than WebP, supported in Google Search since 2024
SVGLogos, icons, simple illustrationsVector format that scales without blur
GIFVery simple animationsLarge files; video formats are usually better for animation

For most sites, WebP is the safe default today, with AVIF as a further step where your platform supports it. WordPress has supported uploading WebP since version 5.8 and AVIF since version 6.5, and many image optimization plugins and CDNs can convert images automatically.

Compress and Size Images Correctly

Large images are one of the most common causes of slow pages. Two fixes handle most of the problem.

The first is sizing. An image displayed 800 pixels wide does not need to be uploaded at 4,000 pixels wide. Resize images to roughly the largest size they will be displayed, allowing for high-density screens.

The second is compression. Tools such as Squoosh, TinyPNG, ImageOptim, and most WordPress optimization plugins reduce file size by removing unnecessary data. Lossy compression at a sensible quality setting is usually invisible to readers.

Always set width and height attributes on images. They let the browser reserve space before the image loads, which prevents the page from jumping around. That jumping is measured by Cumulative Layout Shift, one of the Core Web Vitals.

Serve Responsive Images

Responsive images give each device a file that fits its screen. The srcset attribute lists several sizes of the same image, and the browser picks the most suitable one. The picture element goes further, letting you offer different formats or crops.

Google supports both, but its documentation advises always including a fallback src attribute on the img element, because not every browser or crawler understands srcset. WordPress generates srcset automatically for images inserted through the editor, which handles most of this for you.

Lazy Load Images Below the Fold

Lazy loading delays images until a visitor scrolls near them, so the browser can focus on what is visible first. Modern browsers support it natively with the loading attribute set to lazy, and WordPress adds this automatically to many images.

Common Mistake

Lazy loading the main image at the top of the page. The hero image is often the Largest Contentful Paint element, and delaying it makes the page feel slower. Load above-the-fold images normally and lazy load only those further down.

Make sure lazy loading uses standard methods. Google can index lazy loaded images that use the native loading attribute or well-built JavaScript libraries, but images that only load after a user interaction such as a click may never be seen.

Use Image Sitemaps and Structured Data

An image sitemap, or image entries inside a standard sitemap, helps Google find images it might otherwise miss, such as those loaded by JavaScript. Google’s documentation notes that image sitemap entries can point to images on other domains, which is useful if you serve images from a CDN.

Structured data can also help. Product, recipe, and article markup can reference an image, which makes it eligible to appear with rich results. Google’s guidance suggests choosing a representative image for this rather than a logo or an image full of text.

Measuring Image SEO Results

Google Search Console lets you filter the Performance report by search type, including Image, to see impressions and clicks from Google Images. PageSpeed Insights and Lighthouse flag oversized images, missing dimensions, and opportunities to use modern formats.

Example

A recipe blog converts its photos from PNG to WebP, resizes them to the width its theme displays, and adds descriptive alt text. Page weight on its top recipes falls by more than half, its Largest Contentful Paint improves, and image search clicks grow over the following months.

Key takeaways

  • Image SEO helps search engines find and understand images while keeping pages fast.
  • Use real img elements; Google does not index images added through CSS backgrounds.
  • Give images descriptive file names, useful alt text, and placement next to relevant text.
  • Use efficient formats such as WebP or AVIF, resize and compress files, and set width and height.
  • Serve responsive images with a fallback src and lazy load only images below the fold.

Frequently Asked Questions

What is the best image format for SEO?

WebP is a strong default because it is widely supported and much smaller than JPEG or PNG. AVIF is often smaller still and is supported in Google Search.

Does Google index CSS background images?

No. Google indexes images in the src attribute of img elements, not images added through CSS.

Do image file names matter for SEO?

They are a small signal. Short, descriptive names with hyphens help Google understand an image better than generic names.

Should I lazy load all images?

No. Lazy load images below the fold, but load the main image at the top of the page normally so it appears quickly.

How do I see traffic from Google Images?

In Google Search Console, open the Performance report and set the search type filter to Image.

S
SEOAST Editorial Team

Researched from Google documentation, published studies and hands-on experience, then reviewed for accuracy before publishing. Learn how we work in our editorial policy.

Leave a Comment

Scroll to Top

Discover more from SEOAST

Subscribe now to keep reading and get access to the full archive.

Continue reading