Image SEO: Optimize Images for Google Search
Why Image SEO Matters
Google Image Search drives significant traffic for visual industries - ecommerce, food, travel, design, and fashion. Google Discover shows images prominently and rewards pages with high-quality, large images. Within regular web search, pages with optimized images often earn image carousels and visual enhancements that increase click-through rate. For ecommerce specifically, product images in Google Shopping require clean product images with proper schema markup.
Descriptive File Names
Rename images before uploading. blue-running-shoes-nike-air-max.jpg ranks in image search for those terms. IMG_4521.jpg tells Google nothing. Use hyphens between words, include the primary subject and relevant attributes, and keep names under 5-6 words. For product images, include the product name, color, and key feature. This is one of the easiest image SEO improvements and takes seconds per image.
Alt Text: Write for Accessibility and SEO
Alt text serves two purposes: describing the image to screen readers, and giving Google a text signal about the image content. Write descriptive alt text that accurately describes what is in the image. For product images: Nike Air Max 90 running shoes in blue, side view. For editorial images: construction workers building a wooden frame house. Avoid: keyword stuffing multiple terms, leaving alt text blank, writing just the image filename, or using the same alt text on multiple different images.
Compression and Format
Uncompressed images are the number one page speed problem. Use WebP format - it delivers 25-35% smaller file sizes than JPEG at equivalent quality, with broad browser support. AVIF is even smaller but less universally supported. Target under 100KB for most images, under 200KB for hero images. Tools: Squoosh (free browser tool), ImageOptim (Mac), TinyPNG (web). In Next.js, the Image component automatically converts to WebP and resizes to the display dimensions.
Image Dimensions and Responsive Images
Always specify width and height attributes on img tags. This reserves the correct space during page load, preventing layout shift (CLS). Use srcset and sizes attributes for responsive images - serve smaller images to mobile users and larger ones to desktop. The browser automatically selects the most appropriate image based on device pixel ratio and viewport size. This reduces wasted bandwidth on mobile and improves Core Web Vitals on all devices.
Image Sitemaps
For sites with a large number of important images - ecommerce product photos, photography portfolios, news sites - an image sitemap helps Google discover and index images it might otherwise miss. Extend your existing sitemap with image:image tags inside each URL entry. Include image:loc (the image URL), image:title, and optionally image:caption. Submit your image sitemap separately in Google Search Console to monitor image indexing status.
Related Guides
- Title Tag SEO: Write Titles That Rank
- Meta Descriptions: How to Write Them for SEO
- Video SEO: Get Videos to Rank in Google
- Anchor Text SEO: Types & Best Practices
- Breadcrumbs SEO: How They Help Rankings
- Image Sitemap: How to Add Images to Your XML Sitemap
- Image Alt Text SEO: How to Write Alt Tags That Help Rankings