Image Optimization for SEO: What Actually Matters
Image SEO is mostly about doing a few simple things well: fast files, good descriptions and clear context.
By the Universal Image Compressor Team
Why images matter for search
Images matter for search in two ways. First, they appear in image search results, and a good picture with the right description can bring visitors who would not have found the page otherwise. Second, they affect the speed and quality of the page that contains them, and a slow page is a disadvantage for visitors and for search engines. Both reasons lead to the same advice: use good images and make them light.
Google documents its recommendations in its Search Central guidance for images. They are short, and most are about clarity, not tricks.
File size and speed
A smaller file loads faster, and fast loading is part of what Google calls page experience, which includes the Core Web Vitals. A large image at the top of a page can delay the Largest Contentful Paint, which is considered good at 2.5 seconds or less. Compress images before uploading them, resize them to the size at which they are displayed and choose an efficient format.
Page speed is one signal among many, and it will not rescue weak content. But it is one of the few factors that you control completely, and it improves the experience for every visitor.
Formats
According to Google, Search supports images in the formats BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. All the formats that this tool handles are therefore fine for indexing. Google also recommends that the extension of the file name matches its real type, so do not save a JPEG with a .png name. WebP gives smaller files than JPEG in many cases, and it is a good choice for modern sites.
There is no ranking bonus for a particular format. The benefit of a better format is indirect, through faster loading.
Alt text
Google calls the alt attribute the most important piece of metadata for an image. It tells search engines what the picture shows, and it tells screen reader users and anyone whose images fail to load. Write a short, factual description in the context of the page, for example a Dalmatian puppy playing fetch, and not a list of keywords. Never leave the attribute out; if an image is purely decorative, use an empty alt attribute.
Keyword stuffing in alt text does not help and makes the page worse for people who rely on it. Describe the picture as you would to a person who cannot see it.
File names and context
Use short, descriptive file names with words separated by hyphens, such as black-kitten-on-sofa.jpg, instead of IMG_20231.jpg. If your site has several languages, translating the file names is recommended. The compressor keeps the base name of your file and adds -compressed to files it has changed, so rename the file before you upload, if the name is generic.
Place images near the text that relates to them. Search engines use the surrounding words, the caption and the heading to understand what a picture is about. A picture that sits next to a relevant paragraph is easier to understand than one that appears in an unrelated place.
Responsive images and discovery
Use the picture element or the srcset attribute for responsive images, and always include an img element with a src attribute as a fallback, because some crawlers and browsers do not understand the newer attributes. Make sure that images are loaded in a way that search engines can find; images that appear only after a user action may be missed.
An image sitemap can help Google discover images that it might not find otherwise, including images hosted on another domain such as a content delivery network. For the most important image of a page, you can indicate it with the og:image tag or with structured data.
Myths to skip
Several beliefs about image SEO are not supported by the guidance. Hiding keywords in file metadata does nothing, and compressing an image does not change how search engines read it, only how fast it loads. Very low quality can hurt, since Google advises sharp, high-quality images, and tiny pixelated pictures are less attractive in search results.
A balanced approach is the best: images at the right size, compressed to a quality that still looks sharp, with a good name, a clear alt text and a meaningful place on the page.
Measuring the effect
If you want to know whether your work pays off, measure before and after. Test the page with a tool such as PageSpeed Insights, note the Largest Contentful Paint and the total page weight, optimize the images, and test again. For search, look at the image search performance report in your search console over the following weeks.
Do not expect overnight changes: search engines need time to recrawl images, and the effect of speed on rankings is gradual and modest. The benefits for visitors, however, are immediate.
A practical way to begin is to sort your pages by traffic, open the top ten and check the largest image on each. Compress those first, upload the new files under the same names or update the references, and make sure that the old addresses are not left behind in your pages. Then continue with the rest in the order of importance.
Make your images light and fast with the free image compressor.
Open the image compressor