Skip to content
SeoWiki

The SEO encyclopedia

On-Page SEO

Image SEO King

**Image SEO** is the practice of optimizing images and image markup so search engines can discover, understand, index, and rank them more effectively.

Beginner3 min readUpdated 2026-07-26Reviewed by Lucía Marín

Key takeaways

  • Descriptive filenames and alt text help search engines understand images.
  • Compression and responsive sizes improve page speed and user experience.
  • Modern formats like WebP offer better quality at smaller file sizes.
  • Image sitemaps ensure Google can find all your images.
  • Avoid keyword stuffing in alt text; describe the image naturally.

Images can drive traffic from Google Images and support on-page relevance, but they also affect page speed and user experience.

Example: Optimizing a Product Image

Suppose you sell a red apple on your e-commerce site. - Before: `IMG_1234.jpg` (1.5 MB, 4000x3000px, no alt text) - After: `red-apple-organic.jpg` (120 KB, 800x600px, alt="Fresh organic red apple on white background") - Markup: `<img src="red-apple-organic.jpg" srcset="red-apple-organic-400.jpg 400w, red-apple-organic-800.jpg 800w" sizes="(max-width: 600px) 400px, 800px" alt="Fresh organic red apple on white background" loading="lazy">` - Result: Faster page load, better accessibility, and higher chance of appearing in Google Images.

Quick-Start: 5 Steps to Optimize Images

  1. Rename files – Use descriptive, hyphenated names (e.g., `red-apple.jpg`).
  2. Compress and resize – Use tools like Squoosh or TinyPNG. Target under 200 KB for most images.
  3. Write alt text – Describe the image and its page context. Keep it concise (under 125 characters).
  4. Use responsive images – Add `srcset` and `sizes` attributes to serve the right size for each device.
  5. Submit an image sitemap – Include image URLs in your sitemap to help Google discover them.

How to Judge If Your Images Are Optimized

  • File size – Is each image under 200 KB? (Larger for hero images, but still compressed)
  • Alt text – Does every meaningful image have alt text that describes it?
  • Filename – Is the filename descriptive and hyphenated (e.g., `red-apple.jpg`)?
  • Responsive – Are you using `srcset` or `<picture>` for different screen sizes?
  • Format – Are you using modern formats like WebP or AVIF where supported?
  • Lazy loading – Are below-the-fold images using `loading="lazy"`?

Common Image SEO Mistakes

  • Vague filenames – Using `IMG_1234.jpg` instead of descriptive names.
  • Keyword-stuffed alt text – Writing "red apple buy apple fruit" instead of "Fresh organic red apple on white background."
  • Oversized images – Uploading 4000px-wide photos without compression.
  • Missing context – Placing images on irrelevant pages or without surrounding text.
  • No image sitemap – Not helping Google discover images that are loaded via JavaScript.

Next step

FAQ

What is the best image format for SEO?

WebP and AVIF offer good compression and quality. JPEG is widely supported. Use SVG for logos and icons.

Does alt text help SEO?

Yes, alt text helps search engines understand image content and improves accessibility. It should describe the image, not just repeat keywords.

How do I optimize images for page speed?

Compress images, use responsive sizes with srcset, lazy load below-the-fold images, and choose modern formats like WebP.

Related topics

Sources

Reviewed by Lucía Marín, Founding editor.