Alt text is the short description of an image written into the page’s code. Screen readers read it aloud to people who cannot see the image; browsers show it when the image fails to load; and search engines use it to understand what the image shows. Good alt text takes a few seconds to write once you know what it is for, and it serves all three at once.
Where alt text goes
In HTML, alt text sits in the image’s alt attribute:
<img src="boiler.jpg" alt="Engineer replacing the pressure valve on a wall-mounted boiler">
Most website builders and content systems have an “alt text” or “alternative text” field for every image.
The one question to ask
What would someone miss if they could not see this image? The alt text should give them that, in the context of the page.
The same photo can need different alt text on different pages. A photo of a plumber fixing a sink might be:
- on a service page: “Plumber replacing a leaking kitchen tap”;
- on a team page: “Our senior engineer at work on a call-out”;
- on a page about a particular product: “Close-up of the ceramic cartridge inside a mixer tap”.
Guidelines for good alt text
- Be specific and brief. One sentence, usually well under 150 characters. Describe what matters, not every detail.
- Do not start with “Image of” or “Picture of”. Screen readers already announce that it is an image.
- Include text that appears in the image, if it matters, such as a sign or a figure on a chart.
- Use keywords only where they describe the image. Google’s image guidance warns that stuffing alt attributes with keywords gives a poor experience and can make a site look like spam.
- Describe function for linked images. If an image is a link or a button, the alt text should say where it goes or what it does, such as “Download the price list”.
When to leave alt text empty
Purely decorative images, such as background shapes, dividers or a photo that only adds mood next to text
that already says everything, should have an empty alt attribute: alt="". Screen readers then skip
them.
Empty is different from missing. An image with no alt attribute at all may have its file name read aloud, “IMG underscore two zero four one dot jpg”, which helps nobody.
Examples, weak and better
| Weak | Better |
|---|---|
| image1.jpg | Bathroom with a new walk-in shower and grey tiles |
| Photo of our team | Five staff in uniform outside the shop |
| plumber plumbing plumber London emergency plumber | Plumber repairing a burst pipe under a kitchen sink |
| Chart | Bar chart: monthly sales rose from 12,000 in January to 18,000 in June |
| Logo | Koit Academy home page |
The last example is a linked logo, so the alt text names where the link goes.
Alt text in common situations
- Product photos: describe what makes this view useful: “Navy backpack, side pocket open, holding a water bottle”. Several photos of the same product need different alt text for each view.
- People: describe what is relevant to the page, such as the role or activity. Avoid guessing details such as age or ethnicity unless they matter to the content.
- Icons with a text label: usually decorative, because the label already says it. Use
alt="". - Icons without a label, such as a magnifying glass on a search button: describe the action, “Search”.
- Screenshots: describe what the reader should notice, such as the setting being explained.
Charts, infographics and complex images
A chart or infographic carries more information than a short sentence can. Give the main point in the alt text, such as the trend or the conclusion, and put the full data in the page text or a table nearby, where everyone can read it.
Checking a whole page
The image alt text checker lists every image in a page’s HTML with its alt text, and flags missing alt attributes, alt text that looks like a file name or repeats keywords, alt text over 150 characters, alt text that starts with “image of”, and images without a width and height, which make pages jump as they load.
Alt text is one part of accessible images
- Contrast: text placed on images needs enough contrast to read. The colour contrast checker gives the ratio, and our guide on good colour contrast ratios explains the WCAG thresholds.
- Headings and structure help screen reader users move around a page; the heading structure checker shows whether headings are in order.
- Captions help everyone and can carry details the alt text leaves out.
Alt text and image search
Google uses alt text, along with the surrounding text, captions and file names, to understand images. A descriptive file name, a relevant caption and accurate alt text together give images the best chance of appearing in image search, which can bring visitors to pages about products, places and how-to topics.
Common questions
Does alt text help images rank? It is one of several signals Google uses, along with the file name, caption and nearby text. Accurate descriptions help; stuffed ones do not.
Should alt text repeat the caption? No. If a caption already describes the image, the alt text can be shorter or describe what the caption does not, so screen reader users do not hear the same words twice.
Should alt text end with a full stop? It is optional. Some screen readers pause slightly at a full stop, which can make longer descriptions easier to follow.
How long should alt text be? Long enough to say what matters. Many guides suggest keeping it under about 125 to 150 characters, because some screen readers handle long alt text awkwardly.
Should every image have alt text? Every image should have an alt attribute. Meaningful images need a description; decorative images need an empty one.
Is the title attribute the same as alt text? No. The title attribute shows as a tooltip for some users and is not a substitute for alt text.
Limits of this guide
Good alt text depends on context, so no rule replaces judgement. Review alt text when page content changes, and test with a screen reader if you can.
Sources, read November 15, 2026:
- Google Search Central, Google image SEO best practices: using descriptive alt text and avoiding keyword stuffing in alt attributes.