How to Write Alt Text for Website Images

How to Write Alt Text for Website Images

Good alt text explains an image’s purpose in its specific context. It helps people using screen readers understand meaningful visuals, and it gives search engines clearer context. The aim is not to describe every pixel or squeeze in keywords: write the short replacement for the image that a reader would actually need.

Start with the image’s purpose

Before writing anything, ask what the image contributes to this page. A product photograph may help someone choose; a chart may communicate a result; a decorative flourish may add no information at all. W3C’s alt-text decision tree is a useful way to make that choice: meaningful images need a concise alternative, while purely decorative images should have empty alt text so assistive technology can ignore them.

A quick decision tree for alt text

  • Does the image add meaning? Describe the relevant meaning, not every visual detail.
  • Is it a link or button? Describe the action or destination, such as “View web design plans”.
  • Is it a chart, diagram or other complex visual? Give a brief alt text and put the detailed information in nearby page text or a table.
  • Is it decorative? Use empty alt text rather than a filename or a generic label.

How to write useful alt text

1. Say what matters in context

Imagine the image has disappeared. What information would be missing from the sentence or section around it? That is the part the alt text should restore. “Woman holding a coffee” is technically accurate, but on a café’s wholesale page “Barista pouring latte art at a café counter” explains why the image is there.

2. Keep it specific and natural

Use concrete nouns and verbs. Skip “image of” or “picture of”: a screen reader already announces that it has reached an image. If a key word genuinely identifies the subject, include it naturally; do not repeat a service name or location just for SEO.

3. Include important words shown in an image

If text inside the graphic is needed to understand it, include that text or provide the same message as real text nearby. That matters for promotional graphics, screenshots and charts. It also makes the key message more robust on small screens and for visitors who cannot see the image.

Alt text examples

  • Weak: “SEO image”
    Better: “Illustrated dashboard showing a rising search-traffic chart and the headline ‘WordPress SEO Tips’.”
  • Weak: “Team photo”
    Better: “Three bakery staff packing pastries into labelled collection boxes.”
  • Weak: “Button”
    Better: “Start a website project” when the image is the only content of that link.
  • For a decorative leaf illustration: use empty alt text, because it adds atmosphere rather than information.

Common mistakes to avoid

Do not use filenames such as “IMG_2481.jpg”, repeat surrounding copy verbatim, or list keywords separated by commas. Google’s image SEO guidance says that useful, information-rich alt text and relevant page context help it understand an image, while keyword stuffing creates a poor experience. Avoid adding an alt description simply because a CMS asks for one: if the image is decorative, an empty alternative is more helpful.

A practical WordPress check

When uploading media in WordPress, name the file descriptively, add alt text for images that carry meaning, and check the page on mobile. For a homepage banner, consider whether the text in the image is also readable as live page text. For a product gallery, make each view distinct enough to identify the product, colour, material or detail being shown. If you are reviewing a broader site issue, our guide to why a website may not show on Google covers the indexing checks that sit alongside on-page improvements.

Make alt text part of your publishing checklist

Writing alt text for website images is a small editorial habit with a real usability payoff. Decide whether the image is informative, functional, complex or decorative; then write only the information a visitor needs in that moment. That keeps your pages clearer for people and gives image search a better description of what is actually on the page.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top