Image Accessibility: How to Write Perfect Alt Text for SEO & Screen Readers

Advertisement

I audited a client's e-commerce website last year and found 2,847 images across the site. Of those, 2,231 had either no alt text at all, or alt text that said "image" or "photo" or "IMG_20240315_143022.jpg." That's 78 percent of their images being invisible to Google Image Search, useless to the 2.2 billion people globally who use assistive technologies, and a massive missed opportunity for organic traffic. When we properly wrote alt text for their top 500 product images, their image search traffic increased by 34 percent within three months.

Alt text (alternative text) is the text description that you assign to an image in HTML using the alt attribute. It serves two critical purposes: it's read aloud by screen readers for visually impaired users, and it's used by search engines to understand what the image contains and how it relates to the surrounding content. Getting alt text right is one of the simplest, most impactful things you can do for both accessibility and SEO — and yet it's one of the most consistently neglected aspects of web development.

This guide covers exactly how to write effective alt text, with real examples, a formula you can apply to any image, the specific mistakes that hurt rankings, and the WCAG guidelines that govern accessible image descriptions.

Illustration showing image accessibility concepts with descriptive text bubbles emerging from a photograph and screen reader icons

Why Alt Text Matters More Than You Think

For Accessibility

Approximately 285 million people worldwide are visually impaired. They navigate the web using screen readers — software that reads page content aloud. When a screen reader encounters an image, it reads the alt text. If there's no alt text, it either skips the image entirely (the user doesn't know it exists) or reads the filename, which sounds something like: "Image: DSC underscore zero four seven three dot JPEG." That's not just unhelpful — it's actively hostile to the user experience.

In many countries, web accessibility is a legal requirement. The Americans with Disabilities Act (ADA) in the US, the European Accessibility Act in the EU, and similar legislation worldwide increasingly require websites to meet WCAG (Web Content Accessibility Guidelines) standards. Missing or inadequate alt text is one of the most commonly cited accessibility failures in legal complaints.

For SEO

Google cannot "see" images. It relies on alt text, surrounding content, filenames, and structured data to understand what an image depicts. Well-written alt text tells Google: "This image shows a red leather crossbody bag with gold hardware." Google then knows to show this image when someone searches for "red leather crossbody bag" — and that's free, targeted traffic.

Google Image Search drives significant traffic for many websites, especially e-commerce, recipe, travel, and how-to content. According to multiple studies, Google Image Search accounts for roughly 20-25 percent of all Google searches. If your images don't have descriptive alt text, you're invisible in that entire search vertical.

The Alt Text Formula

Good alt text follows a simple formula: describe what you see, in context, concisely. Here's how to apply that formula:

Step 1: What Is the Image?

Start with a factual description of what the image shows. Not what it means, not how it makes you feel — just what's visually present. A product photo, a chart, a portrait, a landscape, a screenshot, a diagram.

Step 2: Add Context from the Page

The same image might need different alt text depending on where it's used. A photo of a dog on a veterinary website might need: "Golden retriever being examined by a veterinarian." The same photo on a pet adoption website: "Adoptable golden retriever, 3 years old, friendly temperament." The same photo on a photography blog: "Candid portrait of a golden retriever in natural light, shot at f/2.8." Context determines which details matter.

Step 3: Keep It Concise

Most screen readers pause or truncate after about 125 characters. Aim for one to two sentences that capture the essential information. Long, rambling alt text is worse than short, focused alt text because it forces screen reader users to listen to an essay before they can move on.

Good Alt Text vs Bad Alt Text: Examples

  • Bad: alt="image" — Tells the user nothing. What image? Of what?
  • Bad: alt="product photo" — Marginally better but still useless. What product?
  • Bad: alt="IMG_4832.jpg" — A filename, not a description. The default when alt text is copied from the filename.
  • Bad: alt="blue running shoes Nike Air Max 2026 best running shoes buy running shoes online free shipping" — Keyword stuffing. Google penalizes this, and screen reader users hate it.
  • Good: alt="Nike Air Max 2026 running shoes in midnight blue, side profile view" — Descriptive, includes the product name, color, and angle. Natural language.
  • Good: alt="Before and after kitchen renovation showing white cabinets replacing dark wood" — Describes the content and the comparison being shown.
  • Good: alt="Line chart showing website traffic growth from 10,000 to 45,000 monthly visitors between January and June 2026" — For charts and data visualizations, describe the data story, not the chart type.

The best test for alt text: close your eyes and have someone read it to you. If you can accurately picture the image from the description alone, the alt text is doing its job. If you can't, it needs work.

Special Cases

Decorative Images

If an image is purely decorative — a background pattern, a divider line, an ornamental border — it should have empty alt text: alt="". Not missing alt text (no attribute at all), but explicitly empty. This tells screen readers to skip the image entirely, which is the correct behavior for decorative content. An image with no alt attribute causes screen readers to read the filename or URL, which is disruptive.

Images of Text

If an image contains text (a banner, an infographic with text, a screenshot of a document), the alt text should contain the text shown in the image, or a summary of it. WCAG guidelines specifically require that all text content be available in text form, not just as pixels in an image.

Complex Images (Charts, Diagrams, Infographics)

For complex images that contain too much information for a brief alt text, use a short alt text summarizing the image's purpose, and provide a detailed text description elsewhere on the page (or via a "long description" link). For example: alt="Sales performance comparison chart for Q1 2026. Detailed data in the table below."

Linked Images

When an image is a link (wrapped in an anchor tag), the alt text should describe the destination or action, not the image itself. A logo that links to the homepage: alt="MyImgToolsPro homepage", not alt="company logo". A product thumbnail that links to the product page: alt="View Nike Air Max 2026 product details".

Alt Text for SEO: What Google Actually Uses

  • Google reads alt text as a primary signal for understanding image content. It's the single most important on-page factor for image SEO.
  • Include relevant keywords naturally. If you're writing alt text for a product image and the keyword is "wireless noise-canceling headphones," include that phrase — but only if it naturally describes the image. Don't force keywords into alt text for images where they don't apply.
  • Google also uses filename, surrounding text, captions, and page title to understand images. Alt text doesn't operate in isolation — it's one of several signals.
  • Don't stuff keywords. Google explicitly penalizes alt text that reads like a list of keywords rather than a natural description. One natural mention of the primary keyword is sufficient.
  • Unique alt text for each image. Duplicating the same alt text across multiple images (e.g., using the same product name for all ten product angles) tells Google less than unique descriptions for each angle: "front view," "side view," "close-up of zipper detail."

Common Alt Text Mistakes

  • Starting with "Image of" or "Photo of": Screen readers already announce "Image:" before reading the alt text. Writing alt="Image of a sunset" causes the screen reader to say "Image: Image of a sunset." Redundant. Just write alt="Sunset over the Pacific Ocean with orange and purple clouds".
  • Using the same alt text for every image: Especially common on e-commerce sites where every product photo has alt="product image". Each image should have unique, descriptive alt text.
  • Leaving alt text empty on meaningful images: Empty alt text (alt="") is correct for decorative images but a critical error on content images. It tells assistive technology the image is irrelevant — even when it's the most important element on the page.
  • Writing alt text that's too long: A 300-word paragraph crammed into an alt attribute is a terrible user experience for screen reader users. Keep it under 125 characters when possible, under 250 at maximum.
  • Ignoring context: The same image needs different alt text on different pages. A headshot on an "About" page needs different alt text than the same headshot on a press release or a team directory.

Alt text sits at the intersection of accessibility, SEO, and good web development practice. It takes about 10 seconds to write per image, it makes your site usable by everyone regardless of ability, and it opens up an entire search vertical that most of your competitors are ignoring. There's genuinely no reason not to do it right.

Optimize Your Images for the Web

After writing great alt text, make sure your images are properly sized and compressed for fast loading. Our free tools handle resizing, compression, and format conversion.

Explore All Image Tools →
← QR Code Design Guide...All Blog Posts →
Advertisement