Image SEO Basics

What Is Alt Text? The Complete Beginner's Guide

Alt text — also called alternative text, alt tags, or alt attributes — is a short description added to an HTML image tag. It tells search engines and screen readers what an image shows. If an image fails to load, the alt text is displayed in its place.

Here is what it looks like in HTML code:

<img src="red-apple.jpg" alt="Fresh red apple on a white background">

That small piece of text does three critical jobs: it helps Google understand your images, it makes your site accessible to visually impaired users relying on screen readers, and it can appear when images fail to load on slow connections.

Why Alt Text Matters for SEO

Google cannot see images. It reads text. When you add descriptive alt text, you are giving Google a text description of a visual element — essentially translating your images into a language search engines understand.

This matters because Google Images drives roughly 22% of all web searches. Every image on your site without alt text is a missed opportunity to appear in image search results.

Pro Tip: Pages with properly optimised images rank higher in both standard and image search results. Alt text is one of the easiest wins in on-page SEO.

Alt Text vs Alt Tag vs Alt Attribute — What's the Difference?

TermMeaningCorrect?
Alt textThe actual descriptive text written for an image✅ Correct
Alt tagInformal term, technically refers to the attribute✅ Widely used
Alt attributeThe HTML attribute that holds the alt text✅ Technically precise
Alt descriptionAnother informal term✅ Understood

How to Write Perfect Alt Text

The Core Rules

Good vs Bad Alt Text — Real Examples

ImageBad Alt TextGood Alt Text
A dog catching a frisbeedogGolden retriever catching a blue frisbee in a park
A product photo of white trainersimage of shoeWhite Nike Air Max trainers on grey background
A bar chart showing saleschartBar chart showing monthly sales growth from January to June 2024
A portrait photophotoSmiling businesswoman in a blue blazer at a conference
Decorative divider lineline(empty alt="") — decorative images need empty alt

Alt Text for Different Image Types

Product Images (Etsy, Shopify, Amazon)

Include the product name, key feature, colour, and material. Example: Handmade ceramic coffee mug in sage green with leaf pattern

Infographics and Charts

Describe the key message the data conveys, not just the visual format. Example: Line graph showing 40% increase in organic traffic after adding image alt text

Decorative Images

Use an empty alt attribute: alt="". This tells screen readers to skip the image entirely. Never leave out the alt attribute completely — that causes screen readers to read out the filename instead.

Stock Photos

Describe the content with context: Diverse team of professionals in a meeting room brainstorming ideas

Where to Add Alt Text

PlatformWhere to add it
WordPressMedia Library → click image → Alternative Text field
ShopifyProduct page → image → click "Edit alt text"
EtsyListing → image → "Add alt text"
SquarespaceImage block → Design → Image Alt Text
WixClick image → Settings → What's in the image
Raw HTMLAdd alt="..." inside your img tag

Common Alt Text Mistakes to Avoid

Warning: Google can penalise pages with keyword-stuffed alt text. Always write for the human reader first, then consider SEO second.

How Alt Text Helps Accessibility

Over 7.7 million people in the UK and US alone use screen readers. When someone with visual impairment visits your site, their screen reader reads out the alt text for every image. Without alt text, the reader either says nothing or reads out the filename — providing zero useful information.

WCAG 2.1 (Web Content Accessibility Guidelines) requires meaningful alt text for all informative images. Failure to comply can expose businesses to legal risk in many jurisdictions including the US under the ADA and the UK under the Equality Act 2010.

Frequently Asked Questions

Does every image need alt text?

Every informative image needs descriptive alt text. Decorative images (borders, backgrounds, visual flourishes) should have an empty alt attribute: alt="".

How long should alt text be?

Under 125 characters is the widely recommended limit. Most good alt text is between 50-100 characters.

Does alt text directly affect Google rankings?

Yes — for image search rankings specifically. It also contributes to overall page relevance signals for standard web search.

Related Articles

Generate Alt Tags, Titles & Keywords Instantly

Our free AI-powered tool generates complete image metadata in one click. No subscription. No credit card.

Try the Free Tool →