Learn how to optimize images for SEO — from alt text and file naming to compression, modern formats, and Core Web Vitals. Actionable steps to boost your image search rankings.
Images are the largest contributor to page weight on most websites. According to the 2024 Web Almanac (HTTP Archive), images account for roughly 40% of total page weight — with a median of about 1,054 KB of image data on desktop pages alone. And over two-thirds of mobile pages have an image as their LCP element, the metric Google uses to measure perceived loading speed.
That means optimizing images for SEO isn’t optional — it directly affects your Core Web Vitals, your ranking in Google Search, and your visibility in Google Images.
This guide covers every aspect of image SEO, from metadata and file naming to compression, modern formats, and technical delivery.
Google uses Core Web Vitals as a ranking signal. The three metrics and their “good” thresholds are:
| Metric | Good | What It Measures |
|---|---|---|
| LCP (Largest Contentful Paint) | ≤ 2.5s | Perceived load speed — often an image |
| INP (Interaction to Next Paint) | ≤ 200ms | Responsiveness to user input |
| CLS (Cumulative Layout Shift) | ≤ 0.1 | Visual stability during loading |
Images affect all three: a slow-loading hero image hurts LCP, an image without dimensions causes layout shift (CLS), and unoptimized images can block the main thread and delay interactions (INP).
Beyond Core Web Vitals, images appear directly in Google Images search results — a significant traffic source that most sites under-optimize.
Google’s image SEO documentation calls alt text “the most important attribute when it comes to providing more metadata for an image”. Google uses alt text — combined with computer vision and surrounding page content — to understand what an image depicts.
Best practices:
alt="Golden retriever puppy playing fetch in a park" is better than alt="dog".alt="" — screen readers and search engines will skip it.Google says descriptive file names provide “very light clues about the subject matter of the image”. It’s a minor signal, but it costs nothing to implement.
Example:
macbook-image-compression-app.jpgIMG_20260415_001.jpgUse hyphens to separate words (Google treats hyphens as word separators). Avoid underscores, spaces, or URL-encoded characters.
For sites with many images, automate descriptive naming in your CMS or build pipeline rather than renaming files manually.
Large image files are the #1 cause of slow LCP. Compression reduces file size while preserving visual quality — the most impactful single optimization you can make.
How to approach compression:
Google’s image SEO documentation lists both WebP and AVIF as supported formats for Google Search. Google’s Chrome performance documentation explicitly recommends these formats:
“AVIF and WebP are image formats that have superior compression and quality characteristics compared to their older JPEG and PNG counterparts.”
The impact is significant. According to Google’s WebP documentation, WebP lossless images are 26% smaller than PNGs, and WebP lossy images are 25–34% smaller than comparable JPEGs. AVIF pushes this further — roughly 60% smaller than JPEG and 35% smaller than WebP for comparable visual quality.
How to implement:
<picture> element for format fallback on your website:<picture>
<source srcset="hero.avif" type="image/avif">
<source srcset="hero.webp" type="image/webp">
<img src="hero.jpg" alt="Descriptive alt text">
</picture>
<picture> element ensures older browsers still work.Important: Using modern formats doesn’t directly boost your ranking. The SEO benefit is indirect: smaller files → faster LCP → better Core Web Vitals → improved page experience signal.
Serving a 4000×3000 photo when the layout renders it at 800×600 wastes bandwidth and hurts LCP. Google’s Lighthouse audits flag this as “Properly size images” — oversized images are one of the most common performance issues.
Best practices:
srcset and sizes attributes to let the browser choose the right image size:<img
srcset="photo-400.webp 400w, photo-800.webp 800w, photo-1200.webp 1200w"
sizes="(max-width: 800px) 100vw, 800px"
src="photo-800.webp"
alt="Descriptive alt text"
>
When the browser doesn’t know an image’s dimensions before it loads, the page content jumps around as images appear — causing Cumulative Layout Shift (CLS). Google’s “good” threshold for CLS is ≤ 0.1.
Fix: Always include width and height attributes on <img> tags:
<img src="photo.webp" width="800" height="600" alt="Descriptive alt text">
Modern browsers use these attributes to calculate the aspect ratio and reserve the correct space before the image loads. Combine with CSS max-width: 100%; height: auto; for responsive behavior.
Google explicitly advises against lazy-loading above-the-fold images. In a Google Search Off the Record podcast, Martin Splitt noted that even the developers.google.com website had this problem — all images were lazy-loaded by default, which hurt LCP.
The rule is simple:
| Image Position | Recommendation |
|---|---|
| Hero/banner (above the fold) | loading="eager" or omit the attribute, add fetchpriority="high" |
| Logo (above the fold) | loading="eager" |
| All images below the fold | loading="lazy" |
For LCP images, also consider preloading:
<link rel="preload" as="image" href="hero.webp" fetchpriority="high">
Google still supports image sitemaps and recommends them for images loaded via JavaScript, images hosted on CDNs, or any images that standard crawling might miss.
The current required tags are simple:
<url>
<loc>https://example.com/page.html</loc>
<image:image>
<image:loc>https://example.com/images/photo.webp</image:loc>
</image:image>
</url>
Each <url> can contain up to 1,000 <image:image> entries. You can add image extensions to your existing sitemap or create a separate image-only sitemap.
Note: Google deprecated several image sitemap tags in 2022, including <image:title>, <image:caption>, <image:geo_location>, and <image:license>. Only <image:image> and <image:loc> are currently needed.
Use this checklist for every image you publish:
width and height attributes on <img> tagsloading="lazy" for below-fold, loading="eager" for above-foldManually optimizing every image is unsustainable for content-heavy sites. Zipic automates the most time-consuming parts:
The free tier covers 25 images/day with 5 formats. Zipic Pro starts at $19.99 one-time for unlimited compressions, all 12 formats, and the full automation suite.
Ready to optimize your images for SEO? Download Zipic free and start compressing, converting, and resizing in one workflow.