★ 5.0 on Google · No long contracts · You own every asset
Rathly

What is image alt text, and why does it matter?

Short answer

Alt text is a short written description of an image, stored in the page code. Screen readers read it aloud to people who cannot see the image, and it shows if the image fails to load. Google uses it to understand images. Describe what matters about the image in context, and leave decorative images empty.

In this answer
  1. 01How to write alt text
  2. 02Rules of thumb
  3. 03Alt text and the law

How to write alt text

Image typeWhat to writeExample
Informative photoWhat the image shows that matters hereTechnician replacing a water heater in a garage
Image link or buttonWhere the link goes or what it doesBook an appointment
Image with textThe text in the imageSpring tune-up, 20% off
Decorative imageNothing, with an empty alt attribute(empty)

The W3C's alt decision tree walks through these cases. The key question is what the image adds to the page. If it adds nothing a screen reader user needs, leave the alt text empty so screen readers skip it.

Rules of thumb

  • Keep it short, one sentence at most.
  • Skip "image of," since screen readers say it already.
  • Describe the content, not the file name.
  • Add the service and place when they matter.
  • Never stuff keywords into alt text.

Google's image guidance says it uses alt text, along with the page content, to understand images. Keyword stuffing alt text makes the experience worse and can look spammy.

Good example. "Rathly team planning a client's local SEO at the Orlando office."

Bad example. "SEO agency Orlando best SEO company Orlando SEO services."

Alt text and the law

Alt text is a basic WCAG requirement, and WCAG is the standard most accessibility rules point to. Missing alt text is one of the most common accessibility failures on business sites. It is also one of the easiest to fix.

We write alt text for every image on our sites and keep it under 125 characters. Read what website accessibility means. Our web design team checks every image before launch.

Keep reading

Related answers

All Web design questions →

Your agency isn't delivering? Talk to us.

  • ✓ You talk to the people who do the work
  • ✓ We handle 95% of requests the same or next day
  • ✓ You own every account, site and listing
Talk to usSTEP 1 OF 2
What isn't working?
No contract. Cloudflare Turnstile blocks spam.
Call usTalk to us →