Write alt text that earns its keep
Learn how to write alt text with five practical checks, before-and-after examples, and guidance for decorative images, buttons and charts.

Good alt text tells someone what information or function an image adds to a webpage. To write it, decide why the image matters in context, then express that purpose in a short, useful description.
That sounds straightforward until you open your website editor and find a blank field labelled “Alternative text”.
Should you describe every colour? Mention the background? Include your target keyword? Write a miniature essay about the photograph?
Usually, none of those things is necessary.
Learning how to write alt text begins with a more useful question: What would a reader miss if this image disappeared?
Alt text is about meaning, not decoration
Alternative text, usually called alt text, provides a text alternative to an image. Screen readers can use it to communicate visual information to people who cannot see the image.
According to the W3C Web Accessibility Initiative, the appropriate description depends on whether an image is informative, functional, decorative or more complex.
Consider a blog article explaining how to organise a home workspace.
If the photograph demonstrates the arrangement of a desk, its alt text should describe that arrangement. If it is only there to make the page feel welcoming, describing every object may contribute nothing.
The difference is not the photograph itself. It is the photograph’s purpose on that particular page.
This is also why a useful description does not automatically need phrases such as “image of”, “picture of” or “photograph showing”.
Get to the information that matters.
The five-check method for writing better alt text
You do not need an elaborate accessibility workflow to improve your everyday website images. Start with these five checks.
- Identify the image’s job. Is it explaining something, showing a product, demonstrating a process or simply decorating the page?
- Imagine the image is missing. What essential information would the reader lose?
- Describe that information plainly. Name the relevant subject, action or relationship using familiar words.
- Remove unnecessary wording. Cut vague adjectives, repeated captions, filler phrases and keywords that do not help comprehension.
- Read it within the page. Check whether the description makes sense between the sentences surrounding the image.

Think of this method as editing for usefulness rather than trying to make every description sound impressive.
Alt text examples: before and after
The following examples are fictional and are provided to demonstrate how context changes an appropriate description.
Example 1: A photograph in a blog article
Imagine a blog post about preparing a simple workspace for video meetings. The photograph shows a laptop positioned beside a window, with a small lamp illuminating the person’s face.
Less useful:
“Beautiful modern workspace with an elegant laptop and lovely natural lighting.”
More useful:
“Laptop beside a window with a lamp positioned to light the speaker’s face.”
The improved version communicates the arrangement the article is discussing.
Words such as “beautiful” and “lovely” express an opinion but do little to explain the practical setup.
Example 2: An image explaining a website layout
Imagine a website tutorial comparing desktop and mobile navigation.
Less useful:
“Screenshot of responsive web design and modern navigation.”
More useful:
“Desktop navigation links collapse into a menu button on the mobile layout.”

The second description identifies the change that matters.
It also connects directly to the lesson, rather than simply naming the design topic.
Example 3: A decorative website illustration
Imagine a pale pink abstract shape behind a heading. It does not communicate information, perform an action or add meaning that the surrounding text has not already provided.
Less useful:
“Elegant pink flowing decorative shape on a soft cream website background.”
Better approach:
Leave the alternative text empty: alt="".
An empty alt attribute tells assistive technology that the image does not need to be announced.
An empty alt attribute is different from omitting the attribute entirely. Missing alt attributes can cause assistive technology to announce an unhelpful filename.
The W3C guidance on decorative images explains why this distinction matters.

The map label in this illustration identifies the type of image only. A real directions map also needs accessible route details, such as the starting point, destination and turns, in nearby text. “Walking route shown on a map” alone would not convey the directions.
Example 4: An icon that performs an action
Imagine a magnifying-glass icon used as a search button, without an accompanying visible label.
Less useful:
“Magnifying glass.”
More useful:
“Search.”
The button needs an accessible name such as “Search”. For an image inside an otherwise unlabelled button, that can come from its alt text. For an SVG or CSS icon, label the button itself, for example with aria-label="Search", and hide the decorative icon from assistive technology. If the button already has a visible text label, avoid repeating it.
The important detail is what the button does.
For functional images, the W3C recommends communicating the action or destination rather than only describing the appearance.
Does alt text need to be under 125 characters?
You may have encountered the advice to keep alt text under 125 characters.
It is a useful editorial guideline, not a universal technical limit or a specific character requirement imposed by the Web Content Accessibility Guidelines.
For example, the Government of British Columbia’s digital accessibility guidance uses 125 characters as a general rule of thumb.
The broader principle is concision.
Most ordinary photographs and simple illustrations need only a short phrase or sentence. If an image contains substantial information, such as a detailed chart, a short alt description alone may not be enough.
A chart might need its key finding expressed in alt text, followed by the data or a longer explanation elsewhere on the page.
Do not sacrifice essential meaning merely to reach an arbitrary character count.
Alt text is not an SEO keyword container
Images can support your website’s visibility, but alt text should not become a place to repeat search phrases.
Suppose your article targets “how to write alt text”.
Adding that exact phrase to every image description would make the page repetitive without necessarily helping a reader understand the images.
Describe each image accurately instead.
Accessible content is part of a wider approach to creating a website people can navigate and understand. This connects with our guide, Build a digital presence people can understand.
Clarity belongs in the structure, headings, links, images and decisions that shape the entire page.
The final check: read your page with images hidden
Before publishing, try one simple exercise.
Hide the images temporarily, then read the page aloud from beginning to end, speaking each alt description where the image would appear.
Does the explanation still make sense?
Are you hearing information that the surrounding paragraph has already covered?
Does a description interrupt the article with irrelevant visual details?
And if an image contains information necessary to follow a tutorial, can a reader understand that information without seeing it?
This is not a replacement for testing with assistive technology, but it is a practical editorial check.
You can include it in a 30-minute homepage review, alongside checking your headings, navigation, links and calls to action.
Make every description earn its place
You do not need to describe everything visible in an image.
You need to communicate what the image contributes to the page.
Some images deserve a thoughtful sentence. Some require an explanation elsewhere in the content. Others are purely decorative and should remain silent to assistive technology.
The next time you publish a blog post or update your website, choose three images and review their alt text using the five-check method.
A small edit can make your content clearer without changing the design at all.

