Image Alt Text: The Invisible Words That Make Your Website Truly Visible

7 min read

What is Image Alt Text?

Imagine you're having a conversation with someone who can't see the photos you're showing them—how would you describe what's in the images so they could fully participate in the conversation? That's essentially what alt text does on the web.

Alt text (alternative text) is a written description of an image that appears in the HTML code rather than visually on the page. This text serves as a replacement for the image when it cannot be seen—whether that's by a person using a screen reader, someone with a slow internet connection where images haven't loaded, or in cases where the image file itself is broken.

Alt Text Implementation Levels:

  • Comprehensive: All images have appropriate, descriptive alt text that conveys both content and function
  • Partial: Most important images have alt text, but it may be generic or missing for some images
  • Inadequate: Missing alt text on many images, or using unhelpful descriptions like "image" or "photo"

Why Alt Text Matters: Three Crucial Benefits

Adding proper alt text to your images delivers three significant benefits that extend far beyond basic accessibility compliance:

  • Accessibility: For the estimated 253 million people worldwide with visual impairments, alt text is often the only way to understand the content and context of images. Screen readers announce alt text to users, making your visual content accessible to everyone.
  • SEO Improvements: Search engines can't "see" images, but they can read alt text. Well-crafted alt text helps search engines understand image content, potentially improving your rankings for image searches and providing additional context for your overall content.
  • Fallback for Technical Issues: When images fail to load due to slow connections, broken links, or blocked content, alt text appears in place of the image, ensuring your message still reaches all users regardless of technical limitations.

Beyond these practical benefits, alt text represents something more fundamental: a commitment to ensuring everyone has equal access to the information and experiences your website provides, regardless of their abilities or the technology they use.

The Legal Imperative

While the user experience benefits of alt text are compelling on their own, there's also a legal dimension to consider. Many jurisdictions around the world now require digital accessibility compliance, including proper image descriptions. The Americans with Disabilities Act (ADA), European Accessibility Act, and similar laws worldwide have been interpreted to apply to websites, leading to a significant increase in accessibility-related lawsuits. Properly implemented alt text is one of the most basic requirements checked during legal reviews.

The Art and Science of Writing Effective Alt Text

Writing good alt text is both an art and a science. It requires balancing completeness with conciseness while focusing on what's truly important about the image. Here are the core principles:

  • Be Specific and Descriptive: Vague descriptions like "image" or "photo" provide no value. Instead, describe the actual content with sufficient detail.
  • Convey Purpose and Context: Explain why the image matters in its context, not just what it shows.
  • Keep It Concise: Most screen reader experts recommend keeping alt text under 125 characters when possible. If more detail is needed, consider also providing a longer description in the surrounding text.
  • Don't Start With "Image of" or "Picture of": Screen readers already announce that an element is an image, so including these phrases is redundant.
  • Include Keywords Naturally: While alt text can help SEO, keyword stuffing makes for poor accessibility. Include relevant keywords only if they fit naturally in the description.
  • Consider Emotional Impact: If an image is meant to evoke certain feelings or reactions, try to capture that in the description.
  • Match the Tone of Your Site: Alt text should feel like a natural extension of your content's voice and style.

The ultimate test for good alt text is whether a person who cannot see the image gets the same essential information and experience as someone who can.

Examples: The Good, The Bad, and The Transformative

To illustrate the principles of effective alt text, let's look at some concrete examples:

Image ContextPoor Alt TextGood Alt TextProduct photo of a red leather wallet"Wallet""Slim red leather bifold wallet with six card slots and coin pocket"Chart showing rising customer satisfaction over 5 years"Chart""Line graph showing customer satisfaction increasing from 72% in 2020 to 94% in 2025"CEO portrait on About page"John Smith""John Smith, CEO, smiling in a business suit against office backdrop"Decorative divider between sections"Divider"Empty alt attribute (alt="") as it's purely decorativePhoto in recipe of finished chocolate cake"Chocolate cake recipe""Three-layer chocolate cake with ganache frosting and raspberry garnish"

Notice how the good examples provide specific, relevant details that help the user understand what they're missing visually, while still being concise.

How to Add Alt Text to Your Images

Implementation is straightforward once you understand the principles. Here's how to add alt text in different contexts:

1. Adding Alt Text in HTML

In standard HTML, alt text is added as an attribute to the img tag.

<!-- Basic image with alt text -->
<img src="red-leather-wallet.jpg" alt="Slim red leather bifold wallet with six card slots and coin pocket">

<!-- Decorative image that should be ignored by screen readers -->
<img src="decorative-divider.png" alt="">

<!-- Complex image with brief alt text and longer description elsewhere -->
<img src="quarterly-sales-chart.png" alt="Q2 2025 sales chart showing 27% year-over-year growth" aria-describedby="chart-description">
<p id="chart-description">The chart details regional sales increases: North America (+32%), Europe (+24%), Asia (+29%), and other regions (+18%).</p>

Note that using an empty alt attribute (alt="") is different from omitting the alt attribute entirely. Empty alt text tells screen readers to skip the image, while missing alt attributes will often cause screen readers to read the file name instead.

2. Adding Alt Text in Content Management Systems

Most popular CMS platforms make it easy to add alt text:

  • WordPress: When uploading or selecting an image, fill in the "Alternative Text" field in the attachment details.
  • Shopify: In the image uploader or editor, look for the "Alt text" field.
  • Wix: Click on any image, select "Settings", then add your alt text in the "What's in the image? Tell Google" field.
  • Squarespace: After adding an image, click "Edit" and fill in the "Image Alt Text" field.

Most platforms now prominently feature alt text fields, recognizing their importance for accessibility and SEO.

3. Adding Alt Text in Email Marketing

Email clients often block images by default, making alt text even more important:

  • Mailchimp: Select any image in your template, click the edit icon, and fill in the "alt text" field.
  • Constant Contact: Click on an image, then enter alt text in the "Description" field.
  • HubSpot: After inserting an image, click on it and look for the "Alt text" field in the right sidebar.

For email marketing, alt text serves double duty—it helps with accessibility and ensures your message comes through even when images are blocked.

4. Adding Alt Text on Social Media

Many social platforms now support alt text for images:

  • Twitter: After adding an image to your tweet, click "Add description" to insert alt text.
  • Facebook: After uploading an image, click "Edit" and then "Alternative text" to add your description.
  • Instagram: After selecting a photo, tap "Advanced Settings" at the bottom, then "Write Alt Text".
  • LinkedIn: Once you've selected an image, click "Add alt text" below the image.

Adding alt text on social media helps your content reach a wider audience and demonstrates a commitment to accessibility.

Special Considerations for Different Types of Images

Different types of images require different approaches to alt text:

Complex Informational Graphics

Challenge: Charts, graphs, infographics, and diagrams often contain too much information to concisely describe in alt text.

Solution: Use a two-part approach:

  1. Brief alt text that summarizes the key takeaway (e.g., "Chart showing smartphone usage increasing 37% from 2020-2025")
  2. A longer description in the surrounding text or linked to a detailed description page

<img src="complex-data-visualization.png" alt="2025 Market Share Analysis: Our company leads with 34%" aria-describedby="viz-description">

<div id="viz-description" class="sr-only">
  This chart breaks down market share as follows:
  - Our Company: 34%
  - Competitor A: 27%
  - Competitor B: 22%
  - Competitor C: 12%
  - Others: 5%
  
  Year-over-year trends show our growth accelerating in Q3 and Q4.
</div>

Purely Decorative Images

Challenge: Some images serve only aesthetic purposes and provide no informational content.

Solution: Use empty alt text (alt="") for purely decorative images to indicate screen readers should skip them entirely. Common examples include:

  • Decorative borders or dividers
  • Background textures or patterns
  • Stylistic elements that repeat throughout the site
  • Images that are already described in the surrounding text
<!-- Decorative flourish that should be ignored by screen readers -->
<img src="decorative-flourish.png" alt="">

<!-- Even better, use CSS background images for purely decorative elements -->
<div class="decorative-background"></div>

Images Containing Text

Challenge: Screenshots, memes, or graphics that contain important text present special challenges.

Solution: Include all important text from the image in your alt text:

<!-- Screenshot of error message -->
<img src="error-screenshot.png" alt="Error message: 'Database connection failed. Error code 5331. Contact system administrator.'">

<!-- Meme with text -->
<img src="distracted-boyfriend-meme.jpg" alt="'Distracted boyfriend' meme with labels: Boyfriend looking at 'New JavaScript Framework' while girlfriend 'Existing Project' looks disappointed">

Product Images

Challenge: E-commerce and product images need to balance promotional language with factual description.

Solution: Focus on specific, distinguishing features that would help a customer make a purchasing decision:

<!-- Specific product features -->
<img src="headphones.jpg" alt="Wireless over-ear headphones in matte black with cushioned earpads and 30-hour battery life">

<!-- Multiple product views -->
<img src="jacket-front.jpg" alt="Navy blue waterproof hiking jacket with reflective strips, front view">
<img src="jacket-back.jpg" alt="Navy blue waterproof hiking jacket showing adjustable hood and ventilation zippers, back view">

Common Pitfalls and How to Avoid Them

Even with the best intentions, these common mistakes can undermine your alt text efforts:

  • Keyword Stuffing: Forcing too many SEO keywords into alt text makes it unnatural and less useful for people using screen readers.
    Fix: Write for humans first. Include keywords only where they naturally fit in the description.
  • Redundant Information: Repeating information that's already in the surrounding text or image caption.
    Fix: If the image is already fully described in a caption, consider using empty alt text or focusing on aspects not covered in the caption.
  • Overly Technical Descriptions: Using jargon or technical terms that most users wouldn't understand.
    Fix: Match the language level of your alt text to your target audience, just as you would with your main content.
  • Missing Emotional Context: Describing only the literal content without conveying the emotional impact when relevant.
    Fix: For images meant to evoke emotions, include brief references to the mood or feeling (e.g., "Smiling family embracing on beach at sunset, conveying warmth and togetherness").
  • Inconsistent Implementation: Adding alt text to some images but not others.
    Fix: Create a systematic process for adding alt text to all images, whether during content creation or as part of your quality control.

Remember that the ultimate goal is to provide an equivalent experience to all users, regardless of whether they can see the images.

The Business Impact of Implementing Alt Text

When implemented properly, alt text brings multiple benefits to businesses:

  • Improved SEO: Search engines use alt text to better understand and index images, potentially improving visibility in image search results.
  • Broader Audience Reach: Making content accessible to people using screen readers expands your potential customer base.
  • Enhanced User Experience: Alt text provides context when images fail to load due to connectivity issues or when users have images disabled to save data.
  • Legal Compliance: Proper alt text helps meet accessibility requirements in many jurisdictions, reducing legal risk.
  • Brand Reputation: Demonstrating commitment to accessibility can positively impact how your brand is perceived.

These benefits combine to create both tangible and intangible improvements to your website's performance and your business's bottom line.

Examples of Effective Alt Text Implementation

Here are some examples of how organizations have approached alt text implementation:

  • Online retailers can focus on describing product details that customers need to make purchasing decisions, such as color, material, style, and key features.
  • Healthcare websites can ensure medical diagrams and instructional images include clear, informative descriptions to assist all users in understanding important health information.
  • Tourism websites can use descriptive alt text for destination photos that convey both the visual elements and the experience of the location.
  • Educational platforms can implement comprehensive alt text for instructional diagrams and charts to ensure learning materials are accessible to all students.

By applying thoughtful alt text strategies appropriate to your industry and content type, you can create a more inclusive user experience while potentially improving your site's performance.

Conclusion: Making the Invisible Visible

Alt text represents one of the most fundamental principles of an accessible, inclusive web: ensuring that everyone has access to the same information, regardless of how they interact with your content. It's a small implementation detail that makes a world of difference to millions of users.

What makes alt text particularly valuable is its multiple benefits. Unlike some accessibility features that solely benefit specific groups, alt text improves the experience for people with visual impairments, SEO performance, and the experience for all users under less-than-ideal conditions like slow connections or technical failures.

The practice of writing good alt text also encourages a valuable mindset shift among content creators and designers. It prompts us to think more deeply about why we're including specific images, what purpose they serve, and how they contribute to our overall message—considerations that ultimately lead to better content for everyone.

As we build an increasingly visual web, let's ensure that these visual experiences aren't creating new barriers. With thoughtful implementation of alt text, we can ensure that the power of visual communication is available to all of our users, creating a more inclusive and effective web for everyone.

Ready to make your images accessible to everyone?

Greadme's easy-to-use tools can help you identify missing or inadequate alt text on your website and provide simple, step-by-step instructions to fix these issues—even if you're not technically minded.

Check Your Website's Alt Text Today