How to write good alt text (with examples for shops and websites)
When images need alt text, what to write for products, logos, icons and charts, when to leave it empty — and where to add it in Shopify and WordPress.
Updated
Alt text is the short description of an image that screen readers read aloud and search engines use to understand it. Missing alt text is the most common accessibility error on the web — and one of the easiest to fix. The rule of thumb: write what someone would need to know if they couldn't see the image.
Four questions that decide the alt text
- Is the image a link or a button? Then the alt text says what happens: where the link goes or what the button does.
- Does it contain text? Then the alt text contains that text (for logos: the company name).
- Does it add information? Then describe that information briefly, in context.
- Is it purely decorative? Then use an empty alt attribute (
alt="") so screen readers skip it. Don't leave the attribute out — then many screen readers read the file name.
Examples
- Product photo:
alt="Merino beanie in mustard yellow, ribbed knit, folded brim"— color, material and the details a shopper would look for. - Logo linking to the homepage:
alt="Northwind Outfitters home". - Icon button (search, cart, menu):
aria-label="Search"on the button, andalt=""oraria-hidden="true"on the icon itself. - Team or office photo:
alt="Our five-person support team in the Berlin office". - Chart: a short summary of the key point (
alt="Sales grew 40% from 2024 to 2026"), with the full data in a table or text nearby. - Decorative background, divider or stock mood image:
alt="".
Common mistakes
- Starting with “image of” or “picture of” — screen readers already announce that it's an image.
- Repeating the text right next to the image (e.g. the product name under the photo) — write what the photo adds, or use
alt="". - Stuffing keywords into alt text for SEO — it makes the page worse for screen reader users and doesn't help rankings.
- Using file names like
IMG_2041.jpgor the same alt text for every image. - Very long descriptions — one or two sentences is usually enough; put complex details in the visible text.
Where to add alt text
- Shopify: Products → open a product → click the image → Add alt text. Theme images (banners, logo) have an alt text field in the theme editor's image settings.
- WordPress: Media → Library → click the image → Alternative Text. In the block editor: select the image → block settings → Alternative text.
- Wix, Squarespace, Webflow: image settings → “Alt text” or “What's in the image?”.
- HTML:
<img src="beanie.jpg" alt="Merino beanie in mustard yellow">.
Find every image without alt text on a page in seconds: run the free accessibility checker. The full report does it for up to 100 pages and shows which images sit in your theme, so one fix covers every page.
Check your page in seconds
Free, no signup, no overlay: find missing alt text, unlabeled buttons and forms, ARIA errors — with plain-English fixes.
Scan your page with the free accessibility checker →