Alt text

Alt text (short for alternative text) is a written description of an image that appears in place of the image on a webpage if the image fails to load, or is read aloud by screen readers for visually impaired users. It is an HTML attribute applied to the <img>tag.

Components

  • Accuracy – The alt text should accurately describe the image’s content and purpose.
  • Conciseness – It should be as brief as possible while still conveying the necessary information.
  • Keyword Inclusion – Where natural and relevant, keywords can be included to enhance SEO.
  • Contextual Relevance – The description should be relevant to the surrounding content on the page.

SEO Significance

Alt text provides search engines with context about images, helping them to better understand the content of a webpage and improve image search rankings. It also enhances accessibility, contributing to a better user experience, which can indirectly benefit SEO by reducing bounce rates and encouraging longer site visits.

How long should alt text be?

The industry standard is to keep alt text under 125 characters. This is because many popular screen readers stop reading alt text at this limit. Aim for a descriptive sentence that conveys the “why” of the image without rambling.

Should I include the words “image of” or “picture of” in my alt text?

No, it is best to avoid these phrases. Screen readers automatically announce that an element is an image, so saying “image of a red car” would result in the user hearing “Image: image of a red car.” Use that space instead to provide more specific details about the subject.

Do I need to add alt text to purely decorative images?

No. If an image is purely decorative and adds no information to the page (e.g., a background pattern or a divider line), you should use a null alt attribute (alt=""). This tells screen readers to skip the image entirely, preventing unnecessary noise for the user.

What happens if I leave the alt text blank?

If you omit the alt attribute entirely, some screen readers will read the file name of the image instead (e.g., “DSC1234.jpg”). This is a poor user experience and provides no context to search engines. Always include the attribute, even if it is empty for decorative images.

How many keywords should I include in my alt text?

You should prioritise description over optimisation. Including one primary keyword is helpful if it fits naturally, but keyword stuffing (listing several keywords like “best seo agency marketing portsmouth seo”) can be seen as spam by search engines and is frustrating for users with visual impairments.

Should I add alt text to my logo?

Yes. The alt text for a company logo should typically be the name of the company followed by the word “logo” (e.g., “Jelly SEO Logo”). If the logo is also a link to the homepage, the alt text should describe the destination, such as “Jelly SEO Home.”

Does alt text help with Google Image Search?

Yes, significantly. Google relies heavily on alt text to understand what is happening in an image. Descriptive, keyword-rich (but natural) alt text increases the likelihood of your images appearing in Google Image Search results, which can drive additional traffic to your site.

How do I write alt text for an image that contains text?

If an image contains important text (like a promotional banner or an infographic), the alt text should include the exact words written in the image. This ensures that users who cannot see the image still receive the same message or call to action.

Is alt text the same as an image caption?

No. A caption is visible to all users and provides additional context or credits, whereas alt text is hidden in the HTML code and intended for search engines and screen readers. They should be different; don’t just copy and paste your caption into the alt text field.

How can I check if my website is missing alt text?

You can use SEO auditing tools (like Screaming Frog, Ahrefs, or Semrush) to crawl your site and identify images with missing alt attributes. You can also manually inspect an image by right-clicking it in your browser, selecting “Inspect,” and looking for the alt="..." attribute within the <img> tag.

Back to the SEO glossary

Ready to start a project?

Call us maybe? Get in touch with Jelly