Guide

How to write good alt text, with examples

A simple rule, a before-and-after table, and where to add alt text in WordPress and website builders. Includes when to leave it empty.

3 min readBy Wiredeo

Two hands holding a phone with a website open
Photo: Thought Catalog, Unsplash

Picture someone listening to your website with a screen reader. When it reaches a photo with no description, they hear the file name, something like “IMG underscore 4032 dot jpg”, or nothing at all. Alt text is the short description that fixes this. You add it in your website editor; screen readers read it aloud, and search engines use it to understand the picture. Good alt text says what matters about the image in context, in one short sentence or less.

Why it matters

Missing alt text is one of the six most common detectable accessibility errors on the web, according to the WebAIM Million 2026 report. It is also one of the easiest to fix. See our plain-English accessibility guide for the rest. You can find missing alt text on your own pages with our free alt text checker.

The core rule

Ask: if I were reading this page aloud to someone on the phone, what would I say about this image so they weren’t missing anything? Say that.

Examples

Image Weak alt text Better alt text
Photo of a finished bathroom renovation image1.jpg Bathroom with white tiles, a walk-in shower and a wooden vanity
Portrait of the owner on the About page team photo The owner standing behind the shop counter, smiling
Photo of a lunch special food Grilled chicken sandwich with side salad
Logo that links to the homepage logo [Your business name], home
Phone icon beside a number phone icon (leave empty if the number is written beside it)
Chart showing opening hours as an image hours Better: write the hours as text and don’t use an image

These are examples of the style; use your own details.

Rules of thumb

  • Be specific, but short. Around a sentence. Roughly under 125 characters keeps most screen readers happy, though there is no strict limit.
  • Don’t start with “image of” or “photo of”. Screen readers already say it is an image.
  • Describe the purpose. A photo of a person using a product on a product page should describe the product and use, not the person’s clothes.
  • Include text that’s in the image. If a banner says “Sale ends Friday”, the alt text should say so, though it is better to put important text on the page as real text.
  • Be honest. Don’t stuff keywords. “Plumber best plumber cheap plumber near me” is poor alt text for everyone, and search engines discourage it.
  • Linked images describe the destination, not the picture. A logo link says where it goes.

Decorative images get empty alt text

If an image adds nothing, such as a divider line, a background texture, or an icon beside text that says the same thing, give it an empty alt (alt=""). Screen readers skip it. Leaving the alt attribute out completely is different and worse: some readers then read out the file name.

Where to add it

  • WordPress: in the Media Library, or in the block settings, there is an “Alternative text” field.
  • Wix, Squarespace and similar: click the image and look for settings called “alt text” or “image description”.
  • Product images in an online shop: each product image has its own field. Describe the product’s colour, material and angle.

Photos of people and sensitive subjects

Describe what is relevant and avoid assumptions about people. Use names only for people who have agreed to be named. For photos in a photo set, vary descriptions rather than repeating one phrase.

Quick audit

  1. Run the alt text checker on your homepage.
  2. Fix images with no alt text first.
  3. Replace file names like “IMG_2041.jpg” with descriptions.
  4. Check logos, buttons and icons that act as links.
  5. Move any important text out of images.

When to get help

If you have hundreds of images, such as a shop catalogue, a developer can find all the gaps at once and help you write a pattern for product descriptions. Run the free check or ask for a free review.

Filed under Accessibility

Next step

Not sure where your own business stands?

A two-minute check-up shows where you are losing time and customers, and what to fix first.

Take the check-up Request an audit