Alt Text
What is alt text?
Alt text is text placed in the img attribute of the alt tag that briefly describes an image in words. It’s often called an “alt tag.” It has three main uses.
- Accessibility (the original main purpose) – For users who can’t see the image, screen readers (programs that read the screen aloud) read the text in
altaloud or convert it to braille. - Fallback when loading fails – If an image is broken or fails to load, the alt text appears in its place.
- Image search – Google uses it as a signal to understand what the image shows.
The W3C, which sets the global web accessibility standards, specifies that every image should have alt text describing the information or function it conveys, so that people with various disabilities get the same information. This text is read aloud or converted to braille. W3C
<img src="dalmatian-puppy.jpg" alt="Dalmatian puppy playing fetch">
Not an alt “tag” but an alt “attribute”
The term “alt tag” is common in practice, but strictly speaking it isn’t accurate. The tag is <img>, and alt is one of several attributes inside that tag. Both Google’s official documentation and the W3C consistently call it the “alt attribute.” Google (official) Since everyone understands either way, there’s no need to correct people, but the accurate name is the alt attribute.
How Google uses alt text
Google uses alt text together with computer vision (technology that analyzes images) and the page’s content to understand what an image is about. In other words, alt is one of the key signals for understanding an image’s subject. Google (official)
Google doesn’t look only at alt. It also looks at the file name, surrounding text, captions and image titles. That’s why Google recommends giving files descriptive names, such as IMG00023.JPG rather than my-new-black-kitten.jpg, and placing images near related text. Google (official)
The writing principle is to describe the image usefully and informatively in the context of the page, with keywords used appropriately. Conversely, Google explicitly says to avoid stuffing alt with keywords (keyword stuffing), because it hurts the user experience and can cause the site to be treated as spam. Google (official)
However, alt text’s effect on rankings depends on the type of search. It’s a ranking factor in Google Image Search, but not a separate ranking factor in regular web search. Google’s John Mueller said that if you don’t care about image search, you don’t need to worry much about alt from a web search perspective, and that alt isn’t a magical SEO cure-all. Search Engine Journal
How to write it well
The key is finding the point that satisfies both goals, accessibility and search. John Mueller also pointed out that balancing these two aspects is the tricky part. Search Engine Journal Following these principles solves most cases.
- Be specific, but concise. The W3C recommends writing
altas the shortest description that conveys the image’s purpose. W3C Using Google’s example,alt="puppy"(puppy) is not as good asalt="Dalmatian puppy playing fetch"(Dalmatian puppy playing fetch). Google (official) - Keep it short. In the industry, 125 characters or fewer is widely used. Screen reader users can’t pause and skip partway through a reading, so long text gets annoying. Semrush
- Don’t add prefixes like “Image:”, “Photo:” or “Icon:”. Screen readers and Google already know it’s an image. W3C Ahrefs However, if the subject really is a printed photograph, it’s fine to say so as an exception. Semrush
- Don’t force keywords in. First describe the image accurately and specifically, and include one or two relevant keywords only when they fit the description naturally. Semrush
- Reflect the context. Even for the same image, the right alt text differs depending on the page’s purpose.
altshould convey the meaning the image is meant to communicate, not just a literal account of what’s visible. W3C - Leave decorative images with an empty
alt(alt=""). Pure decorative images that add no information to the content should get empty alt text so screen readers skip them. If you remove the attribute entirely, some screen readers read the file name instead, so the right approach is not to delete it but to leave it empty asalt="". W3C - Match the image type. For functional images inside links or buttons, describe the function, not the appearance (e.g., “Print” for a printer icon); for complex images such as graphs, provide a complete text equivalent of the data. If it’s hard to decide, follow the W3C’s “alt decision tree” and check in order: is it a link or button → does it add meaning to the page → is it purely decorative. W3C
Common mistakes
altLeaving out entirely – without the attribute, some screen readers read the file name as-is, confusing users. W3C- Keyword stuffing –
alt="puppy dog baby dog pup pups puppies...": filling the attribute by repeating the same meaning over and over like this, which Google treats as a spam signal. Google (official) - Filler prefixes like “Image:” or “Photo:” – generally unnecessary. Ahrefs
- Adding descriptions to decorative images – it becomes noise when read aloud and gets in the users’ way. W3C
altskipped in favor of thetitleattribute –titleis usually a tooltip that appears only on mouse hover, so keyboard and touch users can’t see it.titlecannot replacealt, and if you duplicate the same text inaltandtitle, screen readers read it twice and cause confusion. Put important information inaltor the body text. MDN
References
Jul.2026By Studio JT