Lucid Brands Home
©Lucid Brands 2026
Website SEO resource article: Alt Text: How to Write It for SEO and Accessibility

Alt Text: How to Write It for SEO and Accessibility

Alt text (alternative text) is a short written description of an image, added in the image's HTML, that screen readers read aloud to people who cannot see the image and that browsers show if the image fails to load. Good alt text describes what the image shows and why it is on the page, usually in one sentence of about 125 characters or fewer. It also helps search engines understand your images, which supports image search and accessibility compliance.

What is alt text?

In code, alt text sits inside the image tag:

<img src="ac-repair-technician.jpg" alt="Technician checking refrigerant levels on a rooftop AC unit">

Most website builders and social platforms let you add it without touching code, in a field labeled "alt text," "alternative text" or "image description."

Why alt text matters

ReasonWhat it does
AccessibilityScreen reader users hear a description of the image instead of a file name or nothing
FallbackIf an image fails to load, the alt text appears in its place
SEOHelps search engines understand the image and the page, supporting image search visibility
ComplianceAlt text is part of WCAG, the accessibility standard referenced by Section 508 and by courts in website accessibility cases. See website accessibility.

How to write good alt text

Google's AI Overview, summarizing guides from Harvard, WebAIM and others, lists the core rules. Expanded:

  1. Describe what matters in context. Ask: why is this image here? WebAIM's guidance stresses that the right alt text depends on the image's purpose on the page.
  2. Be concise. Aim for about 125 characters or less. Longer descriptions belong in the page text or a caption.
  3. Skip "image of" or "picture of." Screen readers already announce that it is an image.
  4. Include text shown in the image. If a graphic says "Free estimates this week," the alt text should too.
  5. Describe the action for functional images. A search icon button should say "Search," not "magnifying glass."
  6. Leave decorative images empty. Use an empty alt attribute (alt="") so screen readers skip them.
  7. Use keywords only when natural. Describe the image accurately; if a relevant keyword fits, fine.
  8. Do not repeat nearby text. If the caption already says the same thing, keep the alt text brief or complementary.

Which images need alt text

Image typeWhat it isAlt text approach
InformativeShows information or content (a product, a person, a place)Describe the content and purpose
FunctionalActs as a link or button (logo linking home, icon buttons)Describe the action or destination ("Home," "Download price list")
Text imageContains words (banners, quotes, infographics)Include the words
ComplexCharts, graphs, maps, diagramsShort alt text plus a longer description on the page
DecorativePurely visual (background textures, dividers, stock mood images)Empty alt (alt="")
LogosYour or partners' logosThe company name, plus "home" if it links to the homepage

Alt text examples

Products

BadGood
"shoe""Women's white leather sneaker with a gum rubber sole"
"IMG_2041.jpg""Stainless steel 30 inch gas range with five burners"
"best coffee beans buy coffee beans online""12 ounce bag of medium roast Colombian coffee beans"

Services and work photos

BadGood
"roof""Crew installing gray architectural shingles on a two story home"
"dentist""Dentist showing a patient an X ray on a screen"
"before and after""Kitchen before remodel with oak cabinets, and after with white shaker cabinets and quartz counters"

People and team

BadGood
"team""Six members of the office team smiling outside the Phoenix office"
"John""John Rivera, lead electrician, holding a voltage tester"

Functional images

ImageGood alt text
Logo linking to homepage"[Company name] home"
Phone icon link"Call us"
Social media icon"Follow us on Instagram"
Download PDF button image"Download the 2026 price guide (PDF)"

Text images and graphics

ImageGood alt text
Promo banner"Spring tune up special: $20 off through April 30"
Quote graphic"Customer review: 'They showed up on time and explained every step.'"
Certification badge"Licensed and insured contractor badge"

Decorative images

ImageAlt text
Abstract background patternalt=""
Divider linealt=""
Stock photo of a sunrise used for mood onlyalt="" (or a brief description if it adds meaning)

Alt text for charts and complex images

Charts, maps and diagrams carry too much information for a single sentence. Use two layers:

  1. Short alt text that names the image and its main point: "Bar chart showing leads rising each month from January to June."
  2. A longer description in the page text, a caption or a linked data table that gives the key figures.

For maps, describe what the map is for: "Service area map covering Phoenix, Scottsdale, Tempe and Mesa." For videos, alt text does not apply in the same way; use captions and transcripts instead.

Alt text vs title attribute vs caption

Alt textTitle attributeCaption
Where it appearsIn the code; read by screen readers; shown if the image failsA tooltip on hover in some browsersVisible text under the image
Who it helpsScreen reader users, search enginesMostly sighted mouse usersEveryone
Required for accessibilityYes, for meaningful imagesNoNo
TipKeep it short and specificDo not rely on it for important informationUse it for context, credits or longer explanations

Does alt text help SEO?

Yes, modestly and in a specific way. Search engines cannot fully "see" images, so alt text helps them understand what an image shows and how it relates to the page. That supports visibility in image search and adds context to the page as a whole.

What alt text will not do: rank a weak page on its own, or reward stuffing keywords into every image. Write for people first. Our image SEO guide covers file names, compression, formats and image sitemaps, and on page SEO covers the rest of the page.

Is alt text the same as an image description?

They overlap. Alt text is the short description in the image's code. An image description can be longer and may appear on the page as a caption or extended description. Some social platforms call their alt text field "image description."

PlatformWhere to add it
WordPressClick the image in the block editor and fill in "Alternative text" in the block settings, or edit it in the Media Library. See our WordPress SEO guide.
ShopifyOpen a product, click the image and select "Add alt text." For theme images, edit them in the theme customizer.
WixClick the image, open the settings and fill in "What's in the image? Tell Google."
SquarespaceEdit the image block and add a description in the alt text or filename field, depending on block type.
InstagramWhen posting, open Advanced settings and choose "Write alt text."
LinkedInAfter adding an image, select "Alt text" before posting.
FacebookEdit the photo and choose the alt text option.
XTap "Add description" on the image before posting.
Microsoft Word and PowerPointRight click the image and choose "View Alt Text" or "Edit Alt Text."

Menu names change, so check the platform's help center if a label looks different.

Using AI to write alt text

Many platforms and plugins now generate alt text automatically. That can save time on large image libraries, but review the results:

  • AI describes what it sees, not why the image is on your page.
  • It may guess wrong about people, places or products.
  • It cannot know your product names or service details.
  • It sometimes produces long, generic descriptions.

Use AI drafts as a starting point, then edit the top pages and product images by hand.

How to audit alt text on your site

  1. Run a crawl with an SEO or accessibility tool to list images with missing alt text. An SEO audit usually includes this.
  2. Prioritize your homepage, service or product pages and top blog posts.
  3. Check quality, not just presence. File names and "image" are not useful alt text.
  4. Mark decorative images with empty alt so they are skipped.
  5. Fix templates so logos and icons have correct alt text site wide.
  6. Add alt text to your publishing checklist so new images are covered.

Missing alt text is one of the most common accessibility issues. It often sits alongside other technical SEO and accessibility fixes.

FAQ

How do you use alt text?

Add a short description of each meaningful image in the alt text field of your website or social platform. Describe what the image shows and why it is there, and leave decorative images empty.

Does adding alt text help SEO?

Yes. It helps search engines understand images and their context, which supports image search and page relevance. It works best when it accurately describes the image rather than repeating keywords.

Is alt text the same as image description?

Not exactly. Alt text is a short description in the image's code, read by screen readers. An image description can be longer and shown on the page. Some platforms use "image description" as the name of the alt text field.

How long should alt text be?

Aim for about 125 characters or fewer, usually one short sentence. Use the page text or a caption for longer descriptions of complex images.

Make your site accessible and searchable

Lucid Brands' free website audit flags missing alt text along with other SEO and accessibility issues. Our SEO and Content Management service starts at $500 a month and includes on page fixes like alt text, and our Design and Development team can fix templates and accessibility issues across your site.

Your path to lucidity

Get Started With a Free Website Audit

Not sure where to begin? Start with a free website audit. Our team analyzes your website's SEO, speed, content and user experience to identify what to improve first.