
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
| Reason | What it does |
|---|---|
| Accessibility | Screen reader users hear a description of the image instead of a file name or nothing |
| Fallback | If an image fails to load, the alt text appears in its place |
| SEO | Helps search engines understand the image and the page, supporting image search visibility |
| Compliance | Alt 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:
- 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.
- Be concise. Aim for about 125 characters or less. Longer descriptions belong in the page text or a caption.
- Skip "image of" or "picture of." Screen readers already announce that it is an image.
- Include text shown in the image. If a graphic says "Free estimates this week," the alt text should too.
- Describe the action for functional images. A search icon button should say "Search," not "magnifying glass."
- Leave decorative images empty. Use an empty alt attribute (alt="") so screen readers skip them.
- Use keywords only when natural. Describe the image accurately; if a relevant keyword fits, fine.
- 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 type | What it is | Alt text approach |
|---|---|---|
| Informative | Shows information or content (a product, a person, a place) | Describe the content and purpose |
| Functional | Acts as a link or button (logo linking home, icon buttons) | Describe the action or destination ("Home," "Download price list") |
| Text image | Contains words (banners, quotes, infographics) | Include the words |
| Complex | Charts, graphs, maps, diagrams | Short alt text plus a longer description on the page |
| Decorative | Purely visual (background textures, dividers, stock mood images) | Empty alt (alt="") |
| Logos | Your or partners' logos | The company name, plus "home" if it links to the homepage |
Alt text examples
Products
| Bad | Good |
|---|---|
| "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
| Bad | Good |
|---|---|
| "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
| Bad | Good |
|---|---|
| "team" | "Six members of the office team smiling outside the Phoenix office" |
| "John" | "John Rivera, lead electrician, holding a voltage tester" |
Functional images
| Image | Good 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
| Image | Good 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
| Image | Alt text |
|---|---|
| Abstract background pattern | alt="" |
| Divider line | alt="" |
| Stock photo of a sunrise used for mood only | alt="" (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:
- Short alt text that names the image and its main point: "Bar chart showing leads rising each month from January to June."
- 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 text | Title attribute | Caption | |
|---|---|---|---|
| Where it appears | In the code; read by screen readers; shown if the image fails | A tooltip on hover in some browsers | Visible text under the image |
| Who it helps | Screen reader users, search engines | Mostly sighted mouse users | Everyone |
| Required for accessibility | Yes, for meaningful images | No | No |
| Tip | Keep it short and specific | Do not rely on it for important information | Use 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."
How to add alt text on popular platforms
| Platform | Where to add it |
|---|---|
| WordPress | Click 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. |
| Shopify | Open a product, click the image and select "Add alt text." For theme images, edit them in the theme customizer. |
| Wix | Click the image, open the settings and fill in "What's in the image? Tell Google." |
| Squarespace | Edit the image block and add a description in the alt text or filename field, depending on block type. |
| When posting, open Advanced settings and choose "Write alt text." | |
| After adding an image, select "Alt text" before posting. | |
| Edit the photo and choose the alt text option. | |
| X | Tap "Add description" on the image before posting. |
| Microsoft Word and PowerPoint | Right 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
- Run a crawl with an SEO or accessibility tool to list images with missing alt text. An SEO audit usually includes this.
- Prioritize your homepage, service or product pages and top blog posts.
- Check quality, not just presence. File names and "image" are not useful alt text.
- Mark decorative images with empty alt so they are skipped.
- Fix templates so logos and icons have correct alt text site wide.
- 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.
Explore More
Related Resources

Anchor Text: Types and Best Practices
What anchor text is, how it looks in HTML, the eight types with examples, why it matters for SEO and accessibility, good vs bad examples, how to mix anchors for backlinks and internal links, jump links and a simple anchor text audit.
Read More
Meta Description: How to Write One That Gets Clicks
What a meta description is, ideal length, whether Google uses it, a simple formula, 20 examples by page type, how to add one in WordPress, Shopify and Wix, and common mistakes.
Read More
SEO Copywriting: How to Write for Search and People
What SEO copywriting is, a research, draft and edit process, before and after rewrites, page type guidance for service, product and blog pages, an AI workflow with guardrails and how to measure copy.
Read More