Skip to content
PeekWellThe Casebook
Join now

Alt text examples: what to write for every image on your site

Cheeky stands on a wooden stepladder in front of a gallery wall, screwing a small brass caption plate under a framed picture, with a coffee cup on the top step, a label maker and a tiny speaker floating nearby, and one swirl-pattern frame left without a plate.

You’ve got an empty box labelled “alt text” open in your shop or your CMS, and you want alt text examples that show what goes in it. Alt text is the short description a screen reader reads out in place of an image, and it shows when the image fails to load. Good alt text says what the image means in this spot, not what it looks like in general: “Blue linen shirt, front view” for a product, your company name for a logo that links home, the action for an icon button, and nothing at all (alt="") for a decorative image.

If you came for the tables, they’re in the third section. That last example is worth a minute first, though, because once you see that alt text is about the job an image does, the examples stop feeling like rules to memorise. After them: what the law asks in the EU, the UK and the US, where the field hides in your platform, and a prompt for doing hundreds of images at once.

What is alt text, and who hears it

So what is alt text, technically? It’s the alt attribute on an <img> tag. A blind visitor using a screen reader hears it, someone on a bad connection sees it where the picture should be, and search engines read it to work out what the picture shows. W3C notes that assistive technology can read text aloud, present it visually, or convert it to braille.

The rule behind it is WCAG 2.2 criterion 1.1.1, Non-text Content, at Level A, the floor: All non-text content that is presented to the user has a text alternative that serves the equivalent purpose. Two of its exceptions matter for a website. A button needs a name that describes its purpose, and pure decoration has to be implemented in a way that it can be ignored by assistive technology.

It’s also one of the most missed. WebAIM’s 2026 study of the top million home pages found missing alt text on 53.1 percent of them, and 45 percent of the images with no alt were links, which leaves a link that says nothing about where it goes.

How to write alt text in four questions

How to write alt text comes down to four questions, asked in order, condensed from W3C’s alt decision tree:

  1. Does the image contain text? If the words aren’t elsewhere on the page, put them in the alt. If they’re printed nearby, use an empty alt.
  2. Is it a link or a button? Then the alt says where it goes or what it does.
  3. Does it add meaning here? A simple photo gets a brief description of that meaning. A chart gets a short alt plus the information written out on the page.
  4. Is it just decoration? Then alt="", with nothing between the quotes.

The word “here” in the third question does a lot. W3C’s Understanding page for 1.1.1 uses a photo of two leaders shaking hands: a news story’s alt names them, while a page about diplomacy needs the date, the room and their expressions too. A shirt photo needs the colour and angle on its product page, and maybe nothing in a blog header about summer dressing.

Length follows from purpose. W3C’s tips page asks for the most concise description possible of the image’s purpose, important part first, and WCAG sets no character limit. The other alt text best practices are about what to leave out. Skip “image of” and “icon”, since screen readers already announce an image. And skip the keywords: Google’s image guidance says stuffing them in may cause your site to be seen as spam.

Alt text examples for a small company’s website

Questions are easier once you’ve seen them answered, so here are alt text examples for an imaginary tea shop, Northfield Tea, weak next to good.

Product photos

Product alt text tells a buyer what a sighted shopper sees at a glance: what it is, which colour, which view.

Image Weak Good
Main photo “IMG_4471.jpg” “Cast-iron teapot in matte black, side view”
Second angle “Cast-iron teapot” again “Same teapot with the lid off, showing the infuser”
Colour swatch you click “swatch” “Sage green”
Close-up “teapot cast iron teapot buy teapot” “Close-up of the bamboo-wrapped handle”

The second row is the common miss: when every photo in a gallery has the same alt, a screen reader user hears one sentence five times. The swatch is a control, so it gets the colour it picks.

Alt text for a logo depends on whether it’s a link and what else is in that link. W3C’s functional images page uses its own logo: when it’s the only thing in a link to the home page, the alt is “W3C home”.

Image Weak Good
Header logo, the only content of a home link “logo” “Northfield Tea home”
Logo next to the name, in the same link “Northfield Tea logo” alt=""
Client logo in a “trusted by” strip “client-logo-3.png” “Harbour Hotels”

The logo beside the name trips people up. The link text already says “Northfield Tea”, so the image goes quiet rather than make a screen reader say it twice.

Icon-only buttons matter most, because they do things. W3C’s rule is to name the action: “search” rather than “magnifying lens”.

Image Weak Good
Magnifying glass “magnifying glass” “Search”
Three-line menu “hamburger” “Menu”
X on a pop-up “x” “Close”
Instagram icon “Instagram logo” “Northfield Tea on Instagram”

Many themes draw these as inline SVG rather than images. The words stay the same, and W3C’s tips page puts them in a <title> inside the SVG.

Team photos, charts, screenshots and banners

The rest depend on what’s printed around them.

Image Weak Good
Founder photo, no caption “smiling woman” “Maya Ortiz, founder, tasting tea in the warehouse”
Team grid with names printed under each photo the names again alt=""
Bar chart of delivery times “chart” “Bar chart of delivery times by region, figures in the table below”
Help-page screenshot “screenshot” “Settings page with the Export button at the top right”
Banner reading “20% off all teapots until Sunday” “sale banner” “20% off all teapots until Sunday”

For charts, W3C’s complex images page says a two-part text alternative is required, so the table has to be on the page too. For banners, the images of text page says the alt must contain the same text presented in the image. Better still, set the words as real text over the picture.

Image alt text that should be empty: decorative images

You’ll have noticed how many good answers above were empty, and image alt text left blank on purpose has its own rules. W3C’s decorative images page explains why you write alt="" instead of leaving the attribute off: without it, some screen readers will announce the file name of the image instead. That’s how a visitor ends up hearing “hero underscore final underscore v3 dot jpg”. And keep the quotes truly empty: the tips page warns that a space between them can still get the image announced.

The page counts spacers, pictures beside link text, “eye-candy” and images the nearby text already describes. Here’s what decorative images alt text looks like on a shop:

Image Weak Good
Hero photo behind your headline “beautiful green tea plantation at sunrise” alt="", or a CSS background
Product card where picture and name link to the same page “Cast-iron teapot”, read twice alt=""

For the hero, W3C prefers CSS: Where possible, decorative images should be provided using CSS background images instead. But the call is a judgment that only the author can make. If that hero is your actual tea farm on a page about where your tea comes from, it’s informative and gets words.

Is alt text legally required?

So is any of this required, or just good manners? Where you sell decides, though all three places end up at the same WCAG line. This is a plain summary, not legal advice.

European Union

The European Accessibility Act applies to e-commerce services provided to consumers after 28 June 2025, through national law. Its Annex I asks for an alternative presentation of non-textual content. The standard behind it, EN 301 549, has a new version, V4.1.1, dated September 2026, whose clause 9.1.1.1 says a web page shall satisfy WCAG 2.2 Success Criterion 1.1.1 Non-text content. Ireland’s National Disability Authority says it becomes binding once cited in the Official Journal, expected on 16 December 2026, and V3.2.1, built on WCAG 2.1, stays in force until then. I couldn’t find the citation yet, so I’d treat that date as a forecast, and for alt text it hardly matters: 1.1.1 reads the same in both. One exemption matters: Microenterprises providing services shall be exempt from complying with the accessibility requirements, and Article 3 defines those as fewer than 10 staff and €2 million or less in turnover or balance sheet. More in EU-10, and the statement the Act asks for is in EU-17.

United Kingdom

The Equality Act 2010 gives service providers a duty to make reasonable adjustments: taking such steps as it is reasonable to avoid putting disabled people at a substantial disadvantage. The Act names no web standard, so as I read it, WCAG is the yardstick you’d point to. The explicit WCAG 2.2 rule is in the public sector regulations, which cover public bodies, not private businesses. More in UK-12.

United States

The Justice Department’s web guidance of March 2022 names images without alt text among its examples of barriers and says alt text should be short and descriptive. Businesses open to the public fall under Title III, where they have flexibility in how they comply, with WCAG as helpful guidance. State and local governments have a firmer rule: the 2024 Title II rule requires WCAG 2.1 AA, and an interim final rule of 20 April 2026 moved the deadlines to 26 April 2027 for entities serving 50,000 people or more and 26 April 2028 for the rest. Court cases are in the lawsuits post. More in US-06.

Where to add alt text in your tools

Whichever law applies, the work happens in one field. Here’s where each platform keeps it, from its own help pages.

Tool Where the field is
Shopify Products, the product, a media item, then Add alt text
WordPress Media Library Alt Text sets the default; Image block settings override it per page or mark it decorative
Webflow A default in the asset manager, overridden per image or set to decorative
Squarespace The Image alt text field on the image block’s Content tab
Plain HTML The alt attribute on each <img>

Platforms now offer to write alt text for you, too. Squarespace’s SEO report suggests descriptions to review and edit, and overlays such as UserWay or accessiBe add automatic alt text on top of your pages. Treat both as drafts. A tool can see a black teapot, but it can’t know your hero is decoration, so check every line by hand.

Alt text examples in bulk: a prompt and a build order

Most sites have hundreds of images, and working through them in upload order is how people give up halfway. Turning these alt text examples into a whole site goes faster like this:

  1. Export the image list from your media library, or a product CSV from your shop.
  2. Mark each image decorative, informative or functional.
  3. Write alt for the functional ones first (logo, icon buttons, linked images), then products.
  4. Set alt="" on everything decorative.
  5. Listen to one finished page with a screen reader before doing the rest.

An assistant can draft steps 2 and 3. It can’t see your images unless you attach them, and a CSV only gives it titles, so a person checks every line. This prompt works on its own:

Here is a list of images from my website. For each one I've given the page it
appears on, the text around it, and whether it is a link or a button.
[paste your list here, and attach the images if you can]

For each image:
1. Say whether it is decorative, informative or functional.
2. Write alt text that says what the image means in that spot, in 125 characters
   or fewer. For a link or button, say where it goes or what it does.
   For an image containing words, use those words.
3. If it is decorative, or the text next to it already says the same thing,
   answer alt="" instead.
4. Don't start with "image of", "picture of" or "icon".
5. Don't add keywords that aren't true of the image.
6. Flag any image whose purpose you can't tell from what I've given you.

The 125 is Shopify’s recommendation, not a WCAG rule, so loosen it for a chart summary.

So where should you start on your own site? With your logo and your icon buttons, because they’re links and buttons, and WebAIM found almost half the images missing alt text were links. Write product alt text from what a buyer needs to tell your variants apart, not from the keyword you want to rank for. And whatever drafts the words, an assistant, a plugin or an overlay, you decide which images say nothing at all.

Check your own site with a phone

You don’t need a tool for this, only your phone.

  1. Turn on the screen reader. On an iPhone, go to Settings, Accessibility, VoiceOver, or ask Siri. On Android, it’s Settings, Accessibility, TalkBack.
  2. Open your home page and swipe right, one item at a time.
  3. At every image, listen: something useful, nothing, or a file name?
  4. Stop on your logo, the basket and the search button. Do they say where they go and what they do?
  5. Open a product page and swipe through the gallery. Does each photo say something different?
  6. Turn the screen reader off and write down every image that said the wrong thing.

For the whole site rather than one element, the accessibility audit guide has the hour-long test, and the ADA compliance checklist lists what to fix next.

Peeky reads the public pages of your site for the barriers a screen reader runs into, and images with no alt text are among them. An image marked alt="" counts as decorative, the way W3C says to mark one, so it never counts against you. The checks are EU-10 for the European Accessibility Act, UK-12 for reasonable adjustments under the Equality Act, and US-06 for the ADA.

That empty box you started with is smaller than it looked. Open it on your logo first.

Questions people ask

Is alt text legally required?

In practice, often yes. In the EU, the European Accessibility Act covers consumer e-commerce services, and its standard, EN 301 549, requires WCAG success criterion 1.1.1, which is alt text. In the UK, the Equality Act's reasonable adjustments duty applies to service providers. In the US, the Justice Department lists missing alt text as a common barrier under the ADA.

How long should alt text be?

As short as it can be while still saying what the image does in that spot. W3C's images tutorial asks for the most concise description possible of the image's purpose, and WCAG sets no character limit. Shopify recommends 125 characters or fewer for product images. If you need more than a sentence, put the detail in the page text instead.

Does alt text help SEO?

It helps Google understand your images. Google's image guidance says it uses alt text along with computer vision and the page's content to work out what an image shows, and that alt text on a linked image works like anchor text. It also warns that stuffing alt attributes with keywords is a poor experience and may get a site seen as spam.

Should every image have alt text?

Every image needs an alt attribute, but not every alt attribute needs words. Decorative images, and images whose meaning is already in the text next to them, get an empty one: alt with nothing between the quotes. W3C's tutorial explains why the attribute can't simply be left out: without it, some screen readers read the file name aloud instead.

Can I use AI to write alt text?

As a first draft, yes. An assistant or a built-in tool can suggest a description, and Squarespace's own help page talks about suggestions you can review, edit, and save. What a tool can't know is why the image is on your page, and W3C says that choice is a judgment that only the author can make. Read every line before you publish it.

Filed with