โ† Guides

How to optimize images for SEO in 2026

ImageToolkit ยท 2 min read ยท Updated 2026

Complete guide to optimizing images and improving Google rankings: size, format, alt text, lazy loading and more.

Why do images affect SEO?

Oversized images can slow down web pages, especially on mobile networks. Thoughtful optimization helps balance visual clarity, transfer size and the experience of visitors. Well-described images may also be discoverable in Google Images, although traffic is not guaranteed.

The 6 pillars of image optimization for SEO

1. Correct format

Compare WebP and JPG for photos. Which file is smaller depends on the image content and encoding settings. PNG can be useful for transparent graphics or sharp edges.

2. Ideal file size

There is no universal 100 KB or 200 KB cutoff for image SEO. Match the image's actual display size, compress appropriately and test the page with PageSpeed Insights.

3. Correct dimensions

Avoid serving images far larger than the display requires. Resize the image and consider responsive srcset options for different screen densities.

4. Descriptive alt text

The alt attribute conveys relevant image information to screen-reader users and search engines. Describe what the image shows, not a list of target search keywords. Empty alt text is appropriate for purely decorative images.

5. File name

Choose short, descriptive filenames, such as blue-product-photo.jpg rather than IMG_20240315.jpg. Avoid stuffing filenames with keywords.

6. Lazy Loading

Consider loading="lazy" for images well below the initial viewport. Do not lazy-load the main above-the-fold image, because that can delay the largest visible content.

SEO optimization checklist

  • โœ… WebP or JPG format (not PNG for photos)
  • โœ… File size and dimensions suited to actual display needs
  • โœ… Dimensions equal to display size on site
  • โœ… Meaningful alt text for informative images, empty alt for decorative images
  • โœ… Short, descriptive file name
  • โœ… Consider lazy loading only for offscreen images
  • โœ… width and height defined in HTML (prevents CLS)

Related tools

Compress imageConvert to WebPResize image