Image Alt Text: How to Write It for Accessibility and SEO (With Examples)
How to write image alt text that helps people using screen readers and search engines: what alt text is for, a simple decision process, examples for products, charts, logos and decorative images, and common mistakes.

On this page
For a visitor using a screen reader, an image without alt text is announced as "image", or worse, as a file name like "IMG_4832.jpg". For a search engine, it's a picture it has to guess about. Image alt text fixes both with one short line of description. It takes seconds per image, helps people with visual impairments use your site, and helps your images and pages appear in search.
What alt text is for#
Alt text is a text alternative for an image, written in the image's alt attribute, that conveys the same information or function as the image for someone who can't see it.
<img src="basket-medium.jpg" alt="Handwoven sisal basket with lid, natural and black stripes">
It serves three audiences:
- Screen reader users, who hear it read aloud.
- Everyone, when images fail to load on slow connections.
- Search engines, which use it with the surrounding text to understand the image. Google's guidance on image SEO recommends descriptive alt text.
A simple decision process#
For each image, ask:
- Is it purely decorative? A background pattern, a divider, a stock photo that adds nothing. Use an empty alt:
alt="", so screen readers skip it. - Is it a link or button? Describe where it goes or what it does: "Download the price list", not "arrow icon".
- Does it contain text? Include the text, such as a banner that says "Weekend sale, 20% off".
- Does it show information? Describe what matters about it in this context.
- Is it complex, like a chart? Give a short alt text, and put the full details in the page text or a caption.
The W3C's alt decision tree walks through the same questions in more detail.
Write for the context#
The same photo can need different alt text on different pages. A photo of a baker holding a loaf:
- On a product page for the loaf: "Sourdough loaf with a dark, crackled crust".
- On the "About us" page: "Head baker Jean holding a fresh sourdough loaf in the bakery".
- On a recruitment page: "Baker at work in our kitchen at dawn".
Ask what the image is doing on this page, and describe that.
Examples by image type#
| Image | Weak alt | Better alt |
|---|---|---|
| Product photo | basket | Handwoven sisal basket with lid, medium, natural and black stripes |
| Logo in header, linking home | logo | [Business name] home |
| Team photo | team | Our five-person support team in the Dublin office |
| Chart | chart | Bar chart: monthly sales rose from €2,000 in January to €3,400 in June |
| Map screenshot | map | Map showing our shop on 11 Grafton Street, opposite the bus park |
| Decorative wave | blue wave decoration | (empty alt) |
Rules of thumb#
- Be specific and concise. Describe what's important, usually in one phrase or short sentence.
- Don't start with "image of" or "picture of". Screen readers already announce it as an image.
- Include key details: colour, size, material, action, when they matter to the reader.
- Use keywords only where they describe the image. "Blue linen shirt, men's, short sleeves" is fine; a list of search terms is not.
- Don't repeat the caption word for word; complement it.
- End with a full stop if it's a sentence, so screen readers pause naturally.
Common mistakes#
- Missing alt attributes, so screen readers read the file name.
- Keyword stuffing: "shoes cheap shoes best shoes Dublin shoes".
- Describing decorative images, which clutters the experience.
- The same alt text on every image in a gallery.
- Important text only inside an image, such as prices on a banner, with no text version.
Beyond alt text: other image SEO basics#
- Descriptive file names:
sisal-basket-medium.jpgrather thanIMG_4832.jpg. - Right size and format: compress images and serve modern formats so pages load fast; our guide to improving website speed covers this.
- Relevant surrounding text: images near related text are easier for search engines to understand.
- Clean product images: see our guide to white background product photos.
Alt text in everyday tools#
You don't need to edit HTML to add alt text. Most tools have a field for it, usually called "alt text", "alternative text" or "description":
- WordPress: select the image in the media library or editor and fill in the "Alternative text" field.
- Shopify and similar shop builders: open the product image and choose the option to add alt text.
- Social media: most platforms let you add alt text to an image before posting, often under an "accessibility" or "alt" option.
- Documents and slides: Word, Google Docs and PowerPoint let you right-click an image and add alt text, which matters when the file becomes a PDF.
Make it part of the upload routine, not a clean-up job later. Writing one line while the image is fresh in your mind takes seconds; going back through 300 images a year later takes a day.
If several people upload images, write a short house guide with three or four examples from your own site, so everyone describes products the same way.
Checking your site#
Most content systems have an alt text field for every image; fill it in when you upload. To find images that are missing alt text across your site, run a site audit; the Tekservix SEO tools include an audit that checks on-page basics. You can also test a page with a screen reader, such as the one built into your phone, and listen to how it reads your images.
A worked example#
Imagine an online craft shop with 120 product photos, all with alt text "product". The owner rewrites them in an afternoon, a few seconds each: "Handwoven sisal basket with lid, medium, natural and black stripes", "Set of four banana-leaf coasters, round", and so on. Decorative background images get empty alt attributes, and the header logo gets "[Shop name] home". A visitor using a screen reader can now browse and buy without guessing, and over the next months several products start appearing in image search for specific searches such as "sisal basket with lid".
Frequently asked questions
What is image alt text?
Alt text is a short written description of an image, added in the HTML alt attribute. Screen readers read it aloud to people who can't see the image, browsers show it if the image fails to load, and search engines use it to understand the image.
How long should alt text be?
Usually a short sentence or phrase, often under about 125 characters. Describe what matters about the image in its context. Complex images such as charts need a short alt text plus a fuller description nearby.
Should every image have alt text?
Every image needs an alt attribute, but decorative images that add no information should have an empty one (alt=""), so screen readers skip them. Images that carry information or links need a meaningful description.


