Images quietly govern page speed and visual search. This guide covers the format, compression, and delivery choices that actually move rankings.
Images are rarely the headline of an SEO strategy, yet they quietly govern two things Google weighs heavily: page speed (LCP is very often an image) and visual search discovery. On slower mobile networks common across many markets, an unoptimized hero image can push LCP past the 2.5s threshold and drag the whole page down. Done right, images also win image-pack and lens-style placements that text alone never captures.
Modern formats cut bytes by 30–70% versus legacy JPEG/PNG — the single highest-leverage change for image-heavy pages.
Target a perceptual balance: shrink file size until a side-by-side looks identical to a human, then stop. Tools like Squoosh, sharp, or ImageMagick let you set quality 70–85 for photos. Re-compress any asset uploaded by non-technical editors — CMS uploads are frequently uncompressed.
Never ship a 4000px-wide photo into a 600px container. Use srcset and sizes so each device pulls the smallest adequate version:
width/height attributes to reserve layout space (prevents CLS).Lazy-load below-the-fold images with loading="lazy". But keep the first viewport's LCP image eagerly loaded — lazy-loading the LCP element is a classic mistake that hurts the very metric you're trying to improve.
Alt text is for accessibility first, SEO second. Write it as a concise description of what the image shows and why it matters in context — not a keyword dump.
alt="" so screen readers skip them.A filename like blue-running-shoes-side.jpg is marginally better than IMG_4821.jpg, but the real ranking signal is the surrounding context (heading, caption, paragraph). Name files sensibly; don't obsess.
For image-heavy or gallery sites, an image sitemap helps discovery. Add ImageObject schema where images are central to the page (recipes, products). Licensable images can use the licensable badge to surface in image search.
Serve images from a CDN close to users. Set long cache headers (a year for versioned filenames) so repeat visitors don't re-download. For global audiences, edge-resized images remove the transcontinental round trip that slows first paint.