Image alt text: what to write, with examples
Last updated
The short answer
Alt text is the short description you give an image, so people who can't see it, and search engines, know what it shows. Write what the picture shows and why it is on this page, in one short sentence: "Technician fitting a tankless water heater in a garage", not "IMG_4821.jpg" or "image". Leave it empty (alt="") for pictures that only decorate. Don't start with "image of", and don't stuff it with keywords.
What alt text is
Most pictures on a web page are added with an <img> tag, and its alt attribute holds a text version of the picture:
<img src="tankless-install.jpg"
alt="Technician fitting a tankless water heater in a garage">
<!-- A decorative divider: empty alt, so screen readers skip it -->
<img src="wave-divider.svg" alt="">You rarely type that by hand: every website builder has an "alt text" or "image description" box for each picture. The words go in that box.
Pictures can also be set as a background in the page's design, or drawn as an SVG. Those have no alt box, so a background that carries meaning, such as a banner with your offer written on it, needs the same words on the page or another text alternative your developer adds (W3C images tutorial).
Why it matters
- Blind and low-vision visitors. A screen reader reads the alt text aloud in place of the picture. Without it, the visitor hears the file name or nothing. Giving images a text alternative is the first rule of the Web Content Accessibility Guidelines, success criterion 1.1.1 (W3C), the standard accessibility audits measure websites against.
- Google. Google uses alt text, along with the page around the image, to understand what the picture shows, and treats alt text on a linked image like the link's words (Google Search Central). That is how your photos turn up in image search.
- AI assistants. Assistants that read your page get your words, not your pictures. Alt text is the only way a photo of your finished kitchen remodel says anything to them.
- Broken or slow images. When a picture fails to load, the browser shows the alt text in its place.
How to write it
- Say what matters in this picture, on this page. The same photo of a dentist can be "Dr. Lee, our lead dentist" on the team page and "Dentist explaining an X-ray to a patient" on the services page. WebAIM puts it simply: context decides the words (WebAIM).
- Keep it short. A phrase or one sentence. Say the important thing first.
- Skip "image of" and "picture of". The screen reader already says it is an image.
- Don't repeat the text beside it. If a caption already says "Our Austin showroom", the alt text shouldn't say the same words again, or a screen reader reads them twice.
- Use a keyword only where it is the honest description. "Emergency plumber fixing a burst pipe under a kitchen sink" is fine. A string of "plumber Austin plumbing best plumber" is keyword stuffing, which Google warns against.
- Put text from the picture in the alt text. If an image shows words, such as a flyer with your opening hours, the alt text must carry those words. Better still, put the words on the page as real text.
Examples: weak and better
| Picture | Weak | Better |
|---|---|---|
| A finished bathroom on a remodeler's site | IMG_4821.jpg | Walk-in shower with gray tile and a glass door, after our remodel |
| The owner at the front desk of a bakery | photo | Maria, the owner, at the counter of our Main Street bakery |
| A product photo in an online store | candle candles soy candle gift candle | Lavender soy candle in an amber glass jar |
| A team photo on an accountant's site | image of people | Our five accountants outside the office in Columbus |
Logos, links, buttons and decoration
W3C sorts images into a few kinds, each with its own rule (W3C images tutorial), and its alt decision tree walks you to the right one:
- Decorative (background patterns, dividers, a stock photo that adds nothing): empty alt,
alt="". Empty is not the same as missing: missing makes some screen readers read the file name. - Your logo: your business name, such as "Rivera Roofing". The word "logo" is usually not needed.
- An image that is a link or button: say where it goes or what it does, not what it looks like. A magnifying glass on a search button is "Search"; your logo linking home can be "Rivera Roofing home".
- Charts and diagrams: a short alt text with the main point ("Bookings rose each month after we added online scheduling"), and the full numbers in the page text or a table.
How to add it on your platform
- WordPress: click the image in the editor and fill in Alternative text in the block settings, or set it once in the Media Library so the image carries it wherever it is used.
- Shopify: for products, open the product, click the image and choose Add alt text; for theme images, use the image setting in the theme editor.
- Wix: click the image, open Settings and fill in What's in the image?
- Squarespace: edit the image block and fill in the image's alt text or description field.
- Hand-built sites: add
alt="…"to each<img>tag, as in the example above.
Image alt text is one part of making a site work for everyone; the accessibility guide covers the rest, from color contrast to form labels.
How the scan checks it
- It reads the images on your homepage and the other pages it visits, and lists ones with no
altattribute at all. - Of the images that have alt text, it flags alt text that is only a file name ("IMG_4821.jpg", "DSC_0032"), a placeholder word ("image", "photo", "banner"), or the same sentence pasted across many different photos.
- Logos and icons named after what they are pass, however often they repeat. Empty alt counts as decorative, not missing, but only you can confirm the picture really carries no information. Giving a meaningful image an empty alt silences the warning without fixing anything for the visitor.
- It shows each image with its alt text and page, so you can judge the descriptions yourself.
Checklist
- Each meaningful image has alt text that says what it shows, in this page's context.
- No alt text is a file name or a word like "image" or "photo".
- Decorative images have an empty alt, not a missing one.
- Linked images and image buttons say where they go or what they do.
- Your logo's alt text is your business name.
- Words shown in a picture are in its alt text, or better, on the page as text.
- No alt text is a list of keywords.
Questions people ask
- What is alt text?
- A short written description of an image, stored in the image's alt attribute. Screen readers read it aloud to blind visitors, browsers show it when the picture fails to load, and search engines use it to understand what the picture shows.
- How long should alt text be?
- As short as it can be while still saying what the picture shows in this context: usually one short sentence or a phrase. There is no official character limit. If a picture needs a paragraph, such as a chart, give a short alt text and put the full detail in the page text.
- Does alt text help SEO?
- Yes. Google says it uses alt text, together with the page around the image, to understand what an image is about, and alt text on a linked image works like the link's words. Write it for people first; Google warns against stuffing it with keywords.
- Should every image have alt text?
- Every img tag needs an alt attribute, but not every one needs words in it. A picture that only decorates, like a background pattern or a divider, should have an empty alt (alt="") so screen readers skip it.
- Should I start with 'image of' or 'picture of'?
- No. Screen readers already announce that it is an image, so 'image of' only adds words. Start with what it shows.
What the free scan checks for this
These are the FocalScore checks that cover this guide's subject. Each one in your report says what it found, shows the evidence and gives the fix.
- Alt text says what the picture shows
- Image alt text sitewide
- Image alt text
Sources
Last checked . Documentation, settings and rules change; if one of these pages now says something different, it is right and this guide is out of date. Tell us at info@focalscore.com.
- W3C WAI: Images tutorial
- W3C WAI: An alt decision tree
- W3C WAI: Understanding Success Criterion 1.1.1 Non-text Content
- Google Search Central: Google image SEO best practices
- WebAIM: Alternative text
More guides
- How to get your business recommended by ChatGPT and other AI assistants
- Why can't ChatGPT see my website? 5 reasons and how to fix them
- robots.txt for small businesses: what to allow, what to block
- What is IndexNow, and why does it matter for your website?
- The pages every small-business website needs
- How to turn more website visitors into enquiries
- Why your site is slow, and what to fix first
- How your business shows up in Google: titles, descriptions and headings
- One address for each page: www, https, canonical tags and redirects
- A sitemap for any site, including one built by hand
- Making your site usable by everyone
- Making your site work on a phone
- Security headers for a small business website: what to set, by platform
- Stop people sending email as your business: SPF, DKIM and DMARC
- Cookies and consent: what your site sets and when you need a banner
- How your links look when people share them
- Getting your business details right for Google Maps and AI assistants
- What is GEO (generative engine optimization)? A plain-English guide
- llms.txt: what it is, and does your business need one?
- AI crawler blocked? Fixing 403, 404 and 405 errors for GPTBot, ClaudeBot and PerplexityBot
- How to see if ChatGPT visits your website
- GEO vs SEO: what's the difference for a small business?
- AI SEO for small businesses: where to start
- Answer engine optimization (AEO), explained
- SPF record: what it is and how to set one up
- DMARC record: what it is and how to set one up
- DKIM record: what it is and how to set it up
- Why do my emails go to spam? How to check SPF, DKIM and DMARC
- Content Security Policy (CSP) for a small business website
- Website caching and CDNs: what they are and do you need one?
- security.txt: what it is and how to add one to your site
- What is DNSSEC, and should you turn it on?
- CAA record: what it is and how to set one up
- Largest Contentful Paint (LCP): why your page feels slow and how to fix it
- Local business schema: structured data for a small business, with a template
- Accessibility statement: what to write, with a template
- Trust badges and testimonials that help a website win customers
- Why isn't my website showing up on Google? How to get it there
- Google Business Profile: a checklist to make it match your website
- Custom 404 page: what a good one does, and the soft 404 trap
- Meta description length: how long should it be?
- Broken links: how to find and fix them on your website
- Website audit checklist: a free check-up for a small business site
- Why does my website say 'Not secure'? How to fix it
- Is my website ADA compliant? An accessibility checklist for US small businesses
- Has my website been hacked? How to check, and what to do next
- Core Web Vitals explained: LCP, INP and CLS in plain English
- Interaction to Next Paint (INP): why your site feels slow to tap, and how to fix it
- Cumulative Layout Shift (CLS): why your page jumps while it loads, and how to stop it
- What should a small business privacy policy include? A checklist
- Contact form emails not arriving? Find where enquiries get lost
- Website monitoring: catch downtime, broken enquiries and expired certificates
- Moving or redesigning your website: a checklist so nothing gets lost
- How to audit a WordPress website: a checklist for owners
- Why isn't my business showing up on Google Maps?
- Does ChatGPT recommend your business? How to check, and how to fix what it gets wrong
- Why isn't my website getting customers? A three-question diagnosis
- How to get more Google reviews without breaking Google's rules
- Google Search Console for a small business: set it up and read the three reports that matter
- Who owns your domain and website? How to check, and how to get them back
- How to show up in Google AI Overviews and AI Mode: what Google's own guide asks for
- What is a good PageSpeed score? What the number means for a small business site
- How much should a small business website cost, and what to check before you pay the final invoice
- Is my website down, or is it just me? What to check, in order
- Is my SEO company actually doing anything? How to check, and how to spot a scam email
- Should I redesign my website or just fix it?
- Does your website still need an FAQ page now that Google's FAQ rich results are gone?