Image SEO is the set of techniques that make a website’s images more visible in search engines and more useful to the user experience. It is not just about ranking in image searches: it also matters how much images help the page load fast, stay accessible and remain relevant. A well-optimized image brings direct visits, makes the page more useful and can even help the page itself rank better.

Many professionals treat images as a graphic detail, forgetting that search engines analyze them as content in their own right. The file name, the alt text, the caption and the page context tell the search engine what the image is about. When these elements are handled well, the image becomes an additional acquisition channel, often underestimated compared to text. Here you will find the main concepts, the mistakes to avoid and the best practices for optimizing images according to search engine guidelines.

Why optimize images

Images account for a significant share of a web page’s weight and, at the same time, are an often overlooked source of traffic. Optimizing them means working on two fronts: visibility in search results and the site’s technical performance. An image that is too heavy slows down loading, hurts the experience on mobile devices and can reduce the conversion rate. Conversely, a light, well-described image is indexed correctly and can appear in image results, generating additional visits.

Another aspect concerns accessibility. Assistive technologies, such as screen readers, use alt text to describe images to those who cannot see them. Accurate alt text is not just a good inclusion practice: it is also a signal that helps search engines understand the visual content. Optimizing images, therefore, produces benefits that go beyond ranking and touch the usability and overall quality of the site.

Key elements of optimization

To optimize an image you need to take care of the elements that search engines look at to understand what it shows. Each of these elements must be handled carefully, avoiding automatic filling or out-of-context keywords. Consistency between file, alt text and page content is what makes optimization effective.

File name

The file name is the first clue a search engine encounters. A descriptive name, written in lowercase with words separated by hyphens, immediately communicates the image’s topic. Names generated automatically by the camera, such as sequences of letters and numbers, provide no useful information and should always be renamed before publishing.

Alt text

Alt text, set in the dedicated attribute of the image tag, describes the visual content for those who cannot see it. It must be concise, relevant and free of unnecessary keyword repetition. If the image is purely decorative, the alt text can be left empty, so as not to disturb the experience of screen reader users.

Caption and context

The visible caption below the image and the surrounding text provide further context. Search engines evaluate the image together with the page that hosts it: a relevant image placed in coherent content is more likely to rank well than an isolated or off-topic image. The hyperlink associated with the image, if present, also contributes to defining its meaning.

Formats and performance

The choice of format and compression directly affects page weight. Traditional formats, such as JPEG for photographs and PNG for images with transparency, remain widespread, but alongside them newer formats like WebP and AVIF have established themselves, designed to reduce weight without losing perceived quality. The choice depends on the type of image and the context of use.

Beyond format, pixel dimensions matter. Serving an image much larger than it is displayed wastes bandwidth and slows loading. Lazy loading postpones the download of images not yet visible, but it should not be applied to the main image at the top, which affects Largest Contentful Paint. Responsive images (srcset attribute) adapt resolution to the screen, and specifying width and height prevents layout shifts (Cumulative Layout Shift).

Format Typical use Transparency Compression
JPEG Photographs and complex images No Lossy
PNG Graphics, logos, screenshots Yes Lossless
GIF Simple animations Yes Lossless
WebP General web images Yes Lossy and lossless
AVIF Photographs and lightweight web images Yes Lossy and lossless
SVG Icons and vector illustrations Yes Vector

How Google finds images

Google Images and Google Lens use the images on pages. The image must be inserted with an img tag (or equivalent) and have a crawlable URL. An image sitemap can help discover them when they do not appear in the page code, and structured data can enrich the result.

Common mistakes to avoid

Many problems arise from habits repeated without thinking. Recognizing these mistakes helps quickly fix pages already published and set up a more orderly workflow. Below is a sequence of useful steps to review a site’s images.

  1. Rename files with descriptive names, in lowercase and separated by hyphens.
  2. Write short, relevant alt texts, avoiding keyword repetition.
  3. Compress images without compromising perceived quality.
  4. Resize images to the actual display size.
  5. Adopt modern formats when compatible with the target browsers.
  6. Add captions and textual context consistent with the page content.
  7. Check that decorative images have no redundant alt text.
  8. Periodically check for broken or no-longer-relevant images.

Frequently asked questions

What is an image’s alt text?

Alt text is a short written description that replaces the image when it cannot be displayed. It serves screen readers and helps search engines understand its content.

Does the file name affect ranking?

The file name is one of the signals search engines consider to interpret the image. A descriptive, relevant name provides a useful indication, although on its own it is not enough to guarantee good ranking.

Which format should I choose for site images?

The choice depends on the type of image: JPEG is suitable for photographs, PNG for graphics with transparency, SVG for vector illustrations, and WebP or AVIF for general lightweight web images.

Should decorative images have alt text?

No, purely decorative images can have empty alt text. This avoids disturbing screen readers with meaningless descriptions.

Why does image weight affect SEO?

Images that are too heavy slow down page loading and worsen the experience. Page experience (including Core Web Vitals) is a signal Google considers, and a heavy main image particularly worsens LCP.

Can images bring direct traffic to the site?

Yes, well-optimized images can appear in image search results and generate additional visits. Traffic from image search is often a complementary channel to text search.

From glossary to projectAre your site’s pages optimized as they should be?On-page and off-page SEO works on pages and signals external to the site to improve visibility.Discover on-page and off-page SEO

Related entries:

Image SEO optimization SEO images SEO for images Image optimization Image SEO optimization