Optimizing images is one of the most effective ways to improve both organic search rankings and user experience. However, many businesses make the mistake of prioritizing one goal over another: compressing images too much and losing quality, or ignoring lazy loading and harming page speed. This checklist offers technical and editorial criteria for making informed decisions that balance performance, accessibility, and SEO.
Fundamentals: Core Web Vitals
Before applying specific techniques, it is crucial to understand how Google evaluates user experience through Core Web Vitals. These three metrics define acceptable performance thresholds:
LCP (Largest Contentful Paint): Measures how quickly the largest element loads. The goal is to keep it below 2.5 seconds. Images are often the main factor affecting this metric.
INP (Interaction to Next Paint): Evaluates responsiveness to user interactions. It should be below 200 milliseconds. Although it does not depend directly on images, a heavy page can degrade overall interactivity.
CLS (Cumulative Layout Shift): Measures visual stability. The value should be below 0.1. Images that change size or load late cause layout shifts that frustrate users.
1. File selection and format
Choosing the right format is the first step in reducing page weight without sacrificing visual quality.
Modern formats: Use WebP or AVIF whenever possible. These formats offer significantly better compression than JPEG or PNG at the same perceived quality.
Content relevance: Avoid generic images. Google values images that represent the page content. A product image should show the actual product, not generic stock imagery.
Resolution and aspect ratio: Use high-resolution images with appropriate proportions. Avoid extreme aspect ratios (very wide or very narrow), as they may affect eligibility for certain search results.
2. Correct HTML implementation
How an image is inserted into the code determines whether search engines can index it correctly.
Standard <img> element: Google indexes images in the src attribute of a standard <img> element, including one contained within a <picture> element. It does not index CSS background images (background-image) as images in Google Search.
width and height attributes: Include these attributes in the HTML code so the browser can reserve space for the image before it loads. This helps reduce layout shifts and mitigate CLS, although it does not guarantee they will be avoided entirely.
srcset and sizes: To serve an appropriately sized image for each device, use srcset and sizes. This prevents mobile users from downloading a high-resolution desktop image, improving LCP.
Editorial illustration · Edition Business
3. Alternative text and accessibility
Alternative text (alt) is not just for screen readers; it provides crucial context for Google's computer vision algorithms.
Functional description: Write the alt text based on the image's function and context, not a keyword formula. If the image is informative, describe what it shows. If it is functional (for example, a search button), describe the action.
Decorative images: For purely decorative images that provide no information, use an empty attribute: alt="". This allows screen readers to ignore them, improving the accessibility experience.
Avoid keyword stuffing: Do not repeat keywords. Natural, descriptive alternative text is more effective than forced wording.
4. Loading strategies and performance
Not all images should be loaded in the same way. The loading strategy should match the image's initial visibility.
Exclude the LCP image from lazy loading: The main image on the page (the one most likely to be the LCP) should not use lazy loading (loading="lazy"). It should load immediately to minimize perceived load time.
Lazy-load below-the-fold images: Apply loading="lazy" to images that users cannot see when they first open the page. This frees up bandwidth and resources for critical elements.
Compression: Compress the file before uploading it and compare the result with the original. The size reduction depends on the image, format, and compression settings; higher compression can affect visual quality.
5. File names and metadata
Minor technical details can influence how search engines interpret content.
Descriptive file names: Use short, descriptive, lowercase file names separated by hyphens. For example, blue-running-shoes.jpg is preferable to IMG_20230512_001.jpg.
Preferred image metadata: Use structured data such as primaryImageOfPage and metadata such as og:image to guide Google on which image to show in search results and on social media. Keep in mind that these methods help guide the selection but do not guarantee Google will use that specific image, as the algorithm prioritizes relevance and quality.
Frequently asked questions
Can I use CSS images for SEO?
No. Google does not index CSS background images as images in Google Search. For an image to be indexable and optimizable for SEO, it must be in a standard <img> element with a src attribute. Keep in mind that, even if they do not appear in Google Images, Google may index CSS background images in other contexts or for other purposes.
Should alternative text contain keywords?
Not necessarily. Alternative text should describe the image naturally and in context. Although keywords may appear if they are relevant, forcing them can harm accessibility and the perceived quality of the content. Google uses computer vision and page context, not just alternative text.
What happens if I don't optimize images?
Failing to optimize images can result in slow loading (worse LCP), layout shifts (worse CLS), and reduced visibility in Google Images and Google Lens. In addition, if informative images lack suitable text alternatives, people who use screen readers may not be able to access the information they convey.
A method for detecting pages with potential, deciding whether to refresh, rewrite, or remove them, and measuring changes without confusing a new date with more useful content.
A press release presents a news story to journalists; it does not buy advertising space or guarantee publication. This guide explains how to choose a topic, organize the text, include a quote and make it easy to get in touch, as well as how to distribute it and which mistakes to avoid.