Image Alt Text for SEO: How to Write It (With Examples)

How to write image alt text that helps SEO and accessibility: what to describe, how long, when to use keywords, examples and the mistakes that waste it.

Alt text is the short description in an image's alt attribute, for example <img src="red-ankle-boot.jpg" alt="Women's red leather ankle boot with side zip">. Screen readers read it aloud, browsers show it when the image does not load, and Google uses it to understand what the image shows. Good alt text helps your images appear in Google Images and makes the page usable for everyone. You can see how many images on your site lack it with the free SEO checker.

Does alt text help SEO?

Yes, mostly through image search. Google's image guidelines say it uses alt text together with the page content and the file name to understand images. For normal web rankings it is a small signal: missing alt text is rarely the reason a page does not rank. For web shops, recipes, travel and anything visual, though, image search brings real visitors, and alt text is one of the few parts of it you control.

How to write good alt text

  1. Describe what is in the image, as you would to someone on the phone.
  2. Be specific: product name, colour, model, what is happening.
  3. Keep it short: usually one sentence, roughly under 125 characters, because many screen readers cut longer text.
  4. Use the keyword only when it fits the image naturally.
  5. Skip "image of" and "picture of": screen readers already announce that it is an image.
  6. Leave decorative images empty (alt=""): dividers, background shapes and icons next to text need no description.

Alt text examples

ImageWeak alt textBetter alt text
Product photoshoeWomen's red leather ankle boot with side zip
Team phototeamFive people from the support team in a stand-up meeting
ChartchartLine chart of organic clicks rising from January to June
Logo in the headerlogo best agency seo companyThe company name
Decorative wavewave background seo(empty alt)

Alt text mistakes I see most often

When I check client sites, the same problems come back: shop themes that leave every product image without alt text, camera file names such as IMG_4821 copied into the alt, and keyword lists stuffed into every image on the page. The last one is the worst, because it helps nothing and reads badly to anyone using a screen reader. In WordPress and WooCommerce the alt text field is in the media library, so a product image gets its alt text there, not in the product description.

Alt text, file name and title: what is the difference?

  • Alt text describes the image. This is the one that matters for SEO and accessibility.
  • File name (red-ankle-boot.jpg) is a small extra hint. Rename files before you upload them.
  • Title attribute shows as a tooltip on hover. It is optional and has little SEO value.

Alt text is one part of on-page SEO. For where to put the main keyword on the rest of the page, see keyword placement.

Key takeaways

  • Write alt text for people first: short, specific and true to the image.
  • It matters most for image search, web shops and accessibility.
  • Leave decorative images empty and never stuff keywords.

Frequently asked questions

Usually one short sentence. Around 125 characters is a practical limit, because many screen readers stop reading after that.

Every image that carries information should. Decorative images should have an empty alt attribute (alt="") so screen readers skip them.

Only if the keyword describes the image. A photo of a red leather ankle boot can simply say so, which is often the keyword anyway. Lists of keywords count as spam.

About the author
Balint Somos
Balint Somos

Balint Somos is the founder and project lead of Somos Media. He has built websites and run SEO for more than ten years, and leads the development of Melini's international stores.

Back to all resources