Images affect two separate things: how fast your page loads (a ranking factor) and whether your images themselves can be discovered through Google Images. Optimizing for both is straightforward once you know the checklist.
Table of Contents
Write Descriptive Alt Text
Alt text describes an image for screen readers and search engines, per Google’s image SEO best practices. Write a concise, accurate description that naturally includes relevant context, never a stuffed list of keywords. Every meaningful image should have alt text; purely decorative images can use an empty alt attribute.
Use Descriptive File Names
Rename files before uploading. blue-widget-front-view.jpg tells Google far more than IMG_4821.jpg.
Choosing the Right Image Format
- WebP — the modern default for most photos and graphics; strong compression with minimal quality loss
- AVIF — even smaller file sizes than WebP, though support and encoding tooling are slightly less mature
- JPEG — still fine for photographs where broad legacy compatibility matters
- PNG — best reserved for graphics needing transparency or sharp edges, like logos
- SVG — ideal for icons and simple illustrations, since it’s vector-based and scales without quality loss
Compress Images for Page Speed
- Use modern formats like WebP or AVIF where supported
- Resize images to the actual display dimensions, not just the original upload size
- Use lazy loading for images below the fold
Page speed feeds directly into crawl efficiency, covered in our guide to how Google crawls and indexes websites.
Responsive Images
Use the srcset attribute (or the <picture> element) to serve differently sized versions of the same image depending on the visitor’s screen size. This avoids forcing a mobile visitor to download a full desktop-resolution image, which directly helps page speed and Core Web Vitals scores. Always include a fallback src attribute, since not every crawler processes srcset.
Add Images to Your XML Sitemap
Image sitemaps (or image entries in your existing sitemap) help Google discover images it might otherwise miss, especially those loaded via JavaScript. See our XML sitemap guide for setup details.
Frequently Asked Questions
Does alt text affect rankings?
It is not a major direct ranking factor for the page itself, but it strongly affects image search visibility and accessibility, both of which drive additional traffic.
What image format is best for SEO?
WebP generally offers the best balance of quality and file size for most websites today.
Do I need captions on every image?
No — captions are a UX choice, not an SEO requirement. Alt text is what matters for search engines; captions are for visible, on-page context for human readers.
Image SEO is one piece of the puzzle — see our SEO Basics guide for the complete foundation.
Want your image library audited for SEO and speed issues? Our team in Dubai can help.
