Alt text (alternative text) is a written description of an image that appears in place of the image if it fails to load and is read aloud by screen readers for visually impaired users. Also known as “alt attributes,” “alt descriptions,” or “alt tags,” this HTML attribute serves two critical purposes: making your website accessible to people with disabilities and helping search engines understand image content for better image SEO.
Every image on your website should have descriptive alt text that accurately conveys what the image shows. Beyond accessibility compliance, well-written alt text helps your images rank in Google Images, drives additional organic traffic, and provides context when images don’t load properly. Alt text is a fundamental element of on-page SEO.
Key Takeaways: Alt Text
- Definition: Alt text is an HTML attribute that describes image content for screen readers and search engines
- Accessibility: Required for ADA/WCAG compliance; helps visually impaired users understand images
- SEO benefit: Helps images rank in Google Images and provides context for page content
- Best practice: Be descriptive and specific (125 characters or less), include keywords naturally
- When to skip: Decorative images that add no information can have empty alt attributes (alt=””)
6 Rules for Writing Effective Alt Text
- Be descriptive and specific – Describe exactly what the image shows
- Keep it concise – Aim for 125 characters or less
- Include keywords naturally – Only when relevant to the image
- Don’t start with “image of” or “picture of” – Screen readers already announce it’s an image
- Consider context – Describe the image in relation to surrounding content
- Skip decorative images – Use empty alt (alt=””) for purely decorative elements
What Is Alt Text?
Alt text (alternative text) is the text description added to an image’s HTML tag using the alt attribute. It appears when an image cannot be displayed and is read by screen reader software to describe images to blind or visually impaired users. Search engines also use alt text to understand image content since they cannot “see” images the way humans do. The proper HTML syntax is: <img src=”image.jpg” alt=”Description of the image”>.
Egochi, America’s #1 digital marketing agency headquartered in New York City, optimizes alt text for both accessibility and SEO on every client project. From our offices in NYC, Milwaukee, Madison, and Miami, we’ve audited thousands of websites and consistently find that proper alt text implementation improves Google Images rankings and overall organic visibility.
What is alt text used for?
Alt text is used for two primary purposes: web accessibility and SEO. For accessibility, alt text provides descriptions of images for people using screen readers or who have images disabled. For SEO, alt text helps search engines understand image content, which improves rankings in Google Images and adds context to your page. Alt text also displays when images fail to load due to slow connections or broken links.
How do I write good alt text?
Write good alt text by describing the image specifically and concisely. Focus on what the image shows and why it matters in context. Keep descriptions under 125 characters when possible. Include relevant keywords naturally, but don’t stuff them. Avoid starting with “image of” or “photo of” since screen readers already announce it’s an image. For complex images like charts, provide the key data or conclusion.
Does alt text help SEO?
Yes, alt text helps SEO in several ways. It helps images rank in Google Images, which accounts for 22% of all Google searches. Alt text provides additional context about your page content, helping search engines understand what your page is about. Well-optimized images can drive significant traffic through image search. See our guide on image SEO for more optimization strategies.
Table of Contents
Why Alt Text Matters
Alt text serves multiple important functions for your website:
Accessibility Compliance
Required for ADA, WCAG 2.1, and Section 508 compliance. Ensures visually impaired users can understand your content.
Image SEO Rankings
Helps images appear in Google Images search results, driving additional organic traffic to your site.
Page Context
Provides additional signals to search engines about page content, supporting overall SEO relevance.
Fallback Display
Shows descriptive text when images fail to load due to slow connections, errors, or user settings.
User Experience
Improves experience for all users, including those on slow connections or with images disabled.
Legal Protection
Reduces risk of accessibility lawsuits, which have increased significantly in recent years.
How to Write Alt Text
Follow these guidelines to write effective alt text for any image:
Alt Text Example
Good Alt Text
“Golden retriever jumping to catch a red frisbee in a park”
Why It Works
Specific breed, action, object color, and location. Paints a clear picture without unnecessary words.
<img src="dog-frisbee.jpg" alt="Golden retriever jumping to catch a red frisbee in a park">
Alt Text Best Practices
Be Specific and Descriptive
Describe exactly what the image shows. “Dog” is vague; “Golden retriever puppy sleeping on a blue couch” is specific.
Keep It Concise
Aim for 125 characters or less. Screen readers may cut off longer text. Be thorough but efficient with words.
Include Keywords Naturally
If your target keyword relates to the image, include it. Don’t force keywords into unrelated images.
Consider Context
The same image might need different alt text depending on the page topic and surrounding content.
Skip Redundant Phrases
Don’t start with “image of” or “photo of.” Screen readers already announce it’s an image.
Use Empty Alt for Decorative Images
Purely decorative images (borders, spacers) should have alt=”” so screen readers skip them.
Describe Charts and Graphs
For data visualizations, describe the key takeaway or trend rather than every data point.
Don’t Duplicate Caption Text
If an image has a visible caption, alt text should complement, not repeat, that information.
Alt Text Examples: Good vs Bad
Learn from these examples showing effective and ineffective alt text:
Product Image
GoodWhy it works: Includes brand, model, product type, and key attributes. Helpful for both users and SEO.
Product Image
BadWhy it fails: Too vague, file name, or keyword stuffed. None of these help users or search engines.
Team Photo
GoodWhy it works: Describes who, what, and where. Adds context relevant to the page (about page, careers).
Infographic
GoodWhy it works: Conveys the key data point. Users who can’t see the chart still get the essential information.
Decorative Image
Correct HandlingWhy it works: Empty alt attribute tells screen readers to skip this image. It adds no informational value.
Logo Link
GoodWhy it works: When an image is a link, alt text should describe the link destination or action.
How to Add Alt Text (HTML)
Alt text is added using the alt attribute in the HTML img tag:
<!-- Basic image with alt text -->
<img src="photo.jpg" alt="Description of the image">
<!-- Image with additional attributes -->
<img
src="team-photo.jpg"
alt="Marketing team brainstorming in conference room"
width="800"
height="600"
loading="lazy"
>
<!-- Decorative image (empty alt) -->
<img src="decorative-border.png" alt="">
Adding Alt Text by Platform
| Platform | How to Add Alt Text |
|---|---|
| WordPress (Block Editor) | Click image → Settings panel → Alt Text field |
| WordPress (Classic) | Click image → Edit → Alternative Text field |
| Shopify | Products → Edit → Click image → Add alt text |
| Wix | Click image → Settings icon → What’s in the image? |
| Squarespace | Click image → Edit → Image tab → Alt Text / Filename |
| HTML | Add alt="description" attribute to img tag |
When adding images to WordPress, fill in the alt text field in the Media Library when you first upload. This saves time and ensures every use of that image has alt text automatically applied.
Alt Text for Different Image Types
Different types of images require different alt text approaches:
| Image Type | Alt Text Approach | Example |
|---|---|---|
| Product Photos | Brand, product name, key attributes, color | “Apple MacBook Pro 16-inch laptop in Space Gray” |
| People/Portraits | Who they are, what they’re doing, context | “CEO John Smith speaking at company conference” |
| Charts/Graphs | Type of chart, key data point or trend | “Pie chart showing 45% market share for Company X” |
| Screenshots | What the screenshot shows, relevant details | “Google Analytics dashboard showing traffic sources” |
| Icons | What the icon represents or its function | “Search icon” or “Shopping cart with 3 items” |
| Logos (linked) | Company name and link destination | “Egochi logo – Return to homepage” |
| Decorative | Empty alt attribute | alt=”” |
| Complex Images | Summary + link to full description | “Flowchart of SEO process. Full description below.” |
When to Use Empty Alt Text (alt=””)
Use empty alt attributes only for purely decorative images that add no information: background patterns, decorative borders, spacer images, and icons that are already labeled with adjacent text. Screen readers will skip these images entirely. Never leave the alt attribute missing; always include it, even if empty.
Common Alt Text Mistakes to Avoid
Missing alt attributes: Leaving images without any alt attribute. Always include alt, even if empty for decorative images.
Using file names: alt=”IMG_2847.jpg” or alt=”header-banner-final-v2″ provides no useful information.
Keyword stuffing: alt=”SEO services best SEO company SEO agency New York SEO” is spammy and unhelpful.
Starting with “image of”: Screen readers already announce it’s an image. “Image of a dog” is redundant.
Being too vague: alt=”photo” or alt=”banner” tells users nothing about the actual image content.
Identical alt text for different images: Every image should have unique alt text describing that specific image.
Alt Text Audit Checklist
- ✓ All informational images have descriptive alt text
- ✓ Decorative images have empty alt attributes (alt=””)
- ✓ Alt text is under 125 characters where possible
- ✓ No alt text starts with “image of” or “photo of”
- ✓ Keywords are included naturally where relevant
- ✓ Product images include brand, name, and key attributes
- ✓ Linked images describe the link destination
- ✓ Complex images have adequate descriptions or long descriptions
- ✓ No file names or placeholder text used as alt text
- ✓ Each image has unique, specific alt text
Tools for Checking Alt Text
These tools help you audit and manage alt text across your website:
Screaming Frog
Crawls site, finds missing alt text
WAVE
Free accessibility checker
Semrush Site Audit
Identifies missing alt attributes
Ahrefs Site Audit
Image optimization issues
Chrome DevTools
Inspect individual images
axe DevTools
Accessibility testing extension
Lighthouse
Google’s built-in accessibility audit
Yoast SEO
WordPress image optimization
For more SEO tools, see our technical SEO tools guide.
People Also Ask About Alt Text
What is an example of alt text?
An example of good alt text: For an image of a chef preparing pasta, the alt text could be “Chef in white uniform tossing fresh pasta in a stainless steel pan.” This describes who (chef), what they’re wearing (white uniform), what they’re doing (tossing pasta), and relevant details (fresh pasta, stainless steel pan).
How long should alt text be?
Alt text should be 125 characters or less for optimal compatibility. Some screen readers cut off alt text around 125 characters. For most images, aim for a concise but descriptive phrase. If an image requires more explanation, consider using a long description (longdesc) or describing it in the surrounding text.
Is alt text the same as image title?
No, alt text and image title are different. Alt text (alt attribute) is for accessibility and SEO; it describes the image for screen readers and search engines. Image title (title attribute) creates a tooltip on hover. Alt text is essential; title is optional and rarely used. Focus on getting alt text right first.
Should every image have alt text?
Every image should have an alt attribute, but not all need descriptive text. Informational images need descriptive alt text. Decorative images (borders, spacers) should have empty alt (alt=””) so screen readers skip them. The key is every <img> tag must include the alt attribute.
Does alt text affect Google rankings?
Alt text affects Google Images rankings and provides page context. Well-optimized alt text helps images appear in Google Images search results. It also helps Google understand page content, supporting overall SEO. While alt text alone won’t dramatically change rankings, it’s part of a complete on-page optimization strategy.
Alt Text Optimization from Egochi
Egochi, America’s #1 digital marketing agency headquartered in New York City, provides complete image optimization including alt text as part of our SEO services.
Full Image Audits: Our SEO audits identify every image missing alt text, using file names, or with poor descriptions. We prioritize high-value images and provide optimized alt text recommendations.
Accessibility Compliance: Beyond SEO, we ensure your alt text meets WCAG 2.1 accessibility standards. This protects your business from accessibility lawsuits while improving user experience for all visitors.
Image SEO Strategy: Alt text is one part of complete image optimization. We also optimize file names, compression, lazy loading, and structured data to improve Google Images rankings.
Proven Results: From our offices in NYC, Milwaukee, Madison, and Miami, we’ve helped clients increase Google Images traffic by 200%+ through proper image optimization. Combined with our SEO services, image optimization contributes to 300%+ organic traffic growth.
Need Help with Alt Text and Image SEO?
Get a free SEO audit from Egochi. We’ll identify every missing or poor alt text on your site.
Get a Free SEO AuditOr call (888) 644-7795






Comments are closed.