New website or upgrading an existing one? Book a free video consultation.
Englishen
Login Configurator

Image alt text and optimisation

Images on a page have a dual role worth exploiting: they describe what is in the image to screen readers and the search engine (through alt text), and with optimisation (format, size) they speed up page loading. Well-managed images thus improve accessibility, bring traffic from image search, and support speed.

Alt text: accessibility and SEO

Alt text (alternative text) is a description of the image that screen readers and the search engine read. It tells visually impaired users what is in the image, and helps the search engine understand the image and show it in image search - an additional source of traffic for a store.

Images as a traffic source (Google Images and Lens)

Image search is not a side matter: Google Images accounts for roughly a quarter of all searches, and visual search through Google Lens (now built into shopping) is growing, with a large share of those queries having clear purchase intent. For a store this is a valuable channel: a visitor who finds your image in image search and clicks has already seen the product and is closer to buying than a typical search visitor. A well-optimised image (clear alt text, descriptive file name, large and fast enough) therefore has a real chance of bringing customers straight to the product page.

How to write good alt text

  • Concise and descriptive: usually up to about 125 characters; describe what is in the image and how it relates to the page content.
  • No "image of..." at the start: the screen reader already announces that it is an image, so do not start with "image" or "photo".
  • Keyword naturally: include a relevant keyword (product name, colour, material), but without stuffing.
  • Decorative images: if an image conveys nothing (purely decorative), give it empty alt text (alt="") so the screen reader skips it.

An example for a product: instead of "image", prefer "Black canvas sneaker with white sole, side profile".

File names

Image file names should be short and descriptive: black-canvas-sneaker.jpg is better than IMG00023.JPG. This too helps the search engine understand the content of the image.

Format and speed

Large images slow down the page, which hurts the experience and indirectly SEO (speed is a factor). So compress images and use modern formats such as WebP or AVIF, which take up significantly less at high quality. Also add lazy loading, so images lower on the page load only when the visitor reaches them.

How to handle it in Magento

Set the alt text for each product image in the media gallery, and similarly for the category image. With a large catalog, writing by hand is not feasible - then use a dedicated SEO module to create a pattern that automatically builds the alt text from product attributes (name, category, brand) and adds it in bulk to all images. For modern formats (WebP), automatic compression on upload, and lazy loading, an image-optimisation module is usually required, since core Magento does not fully offer this.

How to measure whether it works

In Google Search Console, in the performance report, check the images tab (Google Images) - it shows how much traffic comes from image search. With a crawler find images without alt text and fill them in. Track the speed and weight of images with a speed-measurement tool (e.g. PageSpeed).

Sources

Frequently Asked Questions

What is alt text on images for?

Alt text (alternative text) is a description of the image that screen readers and the search engine read. It tells visually impaired users what is in the image, and helps the search engine understand the image and show it in image search, which is an additional source of traffic for a store. It also supports the page's topic and thus its SEO.

How do I write good alt text?

Concise and descriptive, usually up to about 125 characters: describe what is in the image and how it relates to the page content. Do not start with "image" or "photo" (the screen reader already announces that). Include a relevant keyword (product name, colour, material) naturally, without stuffing. Give decorative images that convey nothing empty alt text (alt="") so the screen reader skips them. Example: instead of image, prefer "Black canvas sneaker with white sole, side profile".

Do I really get traffic from Google Images?

Yes, and it is not a side channel: Google Images accounts for roughly a quarter of all searches, and visual search through Google Lens (built into shopping) is growing, with a large share of those queries having clear purchase intent. A visitor who finds your image in image search and clicks has already seen the product and is closer to buying than a typical search visitor. A well-optimised image (clear alt text, descriptive file name, large and fast enough) therefore has a real chance of bringing customers straight to the product page.

Do file names and image format matter too?

Yes. File names should be short and descriptive (black-canvas-sneaker.jpg instead of IMG00023.JPG), which helps the search engine understand the content of the image. Large images slow down the page, which hurts the experience and indirectly SEO, so compress them and use modern formats (WebP or AVIF) that take up significantly less at high quality. Also add lazy loading.

How do I set this up in Magento (bulk alt and speed)?

Set the alt text for each product image in the media gallery, and similarly for the category image. With a large catalog, use a dedicated SEO module to create a pattern that automatically builds the alt text from product attributes (name, category, brand) and adds it in bulk to all images. For modern formats (WebP), automatic compression on upload, and lazy loading, an image-optimisation module is usually required, since core Magento does not fully offer this. Check the effect with a speed tool (PageSpeed) and in Google Search Console (image-search traffic).

Stop browsing. Start selling. Contact me now at anze@degriz.net.

Access Premium Content for Free

Subscribe to our newsletter and get free access to premium content. Discover valuable insights and exclusive resources available only to our subscribers.

Privacy Policy: Newsletter Subscription

By entering your email address, you are subscribing to the newsletter, through which Degriz will inform you about new online and in-store offerings, marketing activities, and other promotions.

By subscribing to the newsletter, you are also enrolled in the benefits database that Degriz offers to its users.

For the newsletter subscription, Degriz d.o.o. collects the following information: email address, IP address, and if you subscribe as a registered member, your name, surname, address, and phone number.

After submitting the form with your email address, you will receive a confirmation message at the specified address – by confirming this, you will be subscribed to the Degriz newsletter until you unsubscribe (so-called opt-in approval). You can request, in writing or by clicking the Unsubscribe button in the newsletter, that the data controller permanently or temporarily stops using your personal data for direct marketing purposes. Your request will be fulfilled within 15 days of receiving it, as prescribed by law. You can also request the transfer or access to your data.

Degriz d.o.o. is committed to protecting your data in accordance with the legislation governing personal data protection.

The sender of the newsletter and controller of your personal data is: Degriz, d.o.o., Gorica pri Šmartnem 45a, 3000 Celje, SI 67287743

Check out the full Privacy Policy

Newsletter

My name is Anže, and I am a Magento certified expert in solutions and a creator of multiple award-winning online stores.

I am the architect behind all Degriz projects. You will surely come across me if we collaborate. Even though the phone keeps ringing, you can always tap me on the shoulder if you need advice regarding online stores and their functioning.

I specialize in building custom online stores and I am a master of unique techniques to enhance conversion on your website.

© 2010 - 2026 Degriz. All rights reserved. Built with love on Magento.
Partial use of the content is permitted with mandatory attribution. The content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0) or under our own license.