What Is Alt Text and How Do I Write It for My Website?
Alt text describes images for screen readers and search engines. Learn what it is, why it matters for accessibility and SEO, and how to write good alt text.

Short answer: Alt text is a short written description attached to an image in your website's code, read aloud by screen readers for people who can't see the image, shown if the image fails to load, and used by search engines to understand what the picture shows. Good alt text describes what matters about the image in that context, in a sentence or less; decorative images should have empty alt text so screen readers skip them.
It's one of the smallest things on a web page and one of the most misunderstood. Done well, it makes your site usable for blind and partially sighted customers, helps your images appear in Google, and shows you've built your site with care. Done badly, it's either missing or stuffed with keywords. Let's get it right.
What alt text looks like under the hood
In HTML, an image looks like this:
<img src="boiler-install.webp" alt="Engineer fitting a new combi boiler in a kitchen cupboard">
The alt attribute is the alternative text. Visitors using screen readers (software that reads pages aloud, used by many people with visual impairments) hear: "Image, engineer fitting a new combi boiler in a kitchen cupboard." If the image fails to load on a weak connection, that text appears in its place. Search engines read it as a strong clue about the image's content.
Who actually relies on it
- Blind and partially sighted visitors using screen readers like VoiceOver, TalkBack, NVDA or JAWS.
- People with images turned off or on very slow connections.
- Search engines, which use alt text, surrounding text and the image itself to understand and rank images.
- AI tools and assistants that summarise pages, which increasingly use alt text as context.
Accessibility is also a legal and ethical issue. Laws such as the UK Equality Act, the Americans with Disabilities Act and equivalents elsewhere expect businesses not to exclude disabled people, and the WCAG guidelines, the international standard most accessibility rules point to, require text alternatives for meaningful images. This is general information, not legal advice. Our guide to accessibility and WCAG goes deeper.
The golden rule: context decides
The same photo can need different alt text depending on why it's there. That's the insight most guides skip.
Take a photo of a smiling woman holding a pair of scissors in a salon:
- On the team page, beside her bio:
alt="Sophie, senior stylist"might be enough, since her name and role matter. - On the services page, illustrating cuts:
alt="Stylist trimming a client's long layered haircut". - As a decorative background behind a heading with no information value:
alt="".
Ask: "If I were describing this page to someone over the phone, what would I say about this image, if anything?" That's your alt text.
Image types and how to handle them
| Image type | What to write | Example |
|---|---|---|
| Informative photo | What it shows that matters | "Finished loft conversion with skylights and oak flooring" |
| Decorative image | Empty alt: alt="" | Abstract background shape |
| Logo | The company name | "SiteDrum" (not "SiteDrum logo image") |
| Linked image or icon | Where the link goes or what it does | "Call us" on a phone icon link |
| Image containing text | The text itself | "20% off all spring bookings" |
| Chart or diagram | The key takeaway, with full detail nearby in text | "Bookings doubled between March and June" |
| Before and after photos | Describe the change | "Before: cracked patio. After: new sandstone paving" |
How to write great alt text: practical rules
- Be specific. "Kitchen" is weak. "Handleless grey kitchen with quartz worktops and island" is useful.
- Keep it concise. Usually one short sentence. Screen readers read it in full, so long paragraphs are tiring. Put long descriptions in visible text instead.
- Don't start with "image of" or "picture of". Screen readers already announce it's an image.
- Lead with what matters. Front-load the key subject.
- Include location or service naturally, where true. "Rewired consumer unit in a Leeds terraced house" is helpful and honest.
- Don't repeat nearby text. If the caption says it all, keep the alt text short or complementary.
- Use punctuation. It helps screen readers pause naturally.
A worked example: a roofing firm in Cork
An illustrative roofing company's gallery has 24 photos, all with alt text like "roofing Cork roofer best roofing company Cork roof repairs". Every image says the same thing. To a screen reader user, the gallery is 24 repetitions of keyword spam. To Google, it looks manipulative and tells it nothing about what each photo actually shows.
Rewritten:
- "Slate roof replacement on a two-storey house in Douglas, Cork"
- "Close-up of new lead flashing around a chimney stack"
- "Flat roof before repair, with pooling water and cracked felt"
- "Same flat roof after a new EPDM rubber membrane was fitted"
Now each image is meaningful, the work is described in a way that sells, and Google has genuine, varied context to understand the gallery. That's both better accessibility and better SEO from the same five minutes.
Accessible by default, not as a bolt-on.
We write proper alt text for every image on every SiteDrum site, as part of the build. Browse our plans to see what's included.
What most people get wrong
- Leaving it missing. Without any alt attribute, many screen readers read the file name instead: "IMG underscore 4 4 8 2 dot J P G". Awful.
- Keyword stuffing. It hurts users and offers no real SEO benefit. Google has said for years to write alt text for people.
- Describing decorative images. Every flourish described becomes noise. Use empty alt.
- Same alt text everywhere. Copy-pasted alt text on every image is nearly as bad as none.
- "Logo" or "icon" on its own. Say what it is or does.
- Text baked into images. Promo banners with important text only in the picture. Better to use real text over a background image.
- Relying on automatic AI alt text without checking. Auto-generated descriptions are improving, but often miss context or get details wrong. Review them.
How alt text helps SEO, honestly
Alt text helps images appear in Google Images and gives context to the page. It's a genuine but modest signal, not a magic ranking lever. Its bigger value is that well-described images on clearly written pages make the whole page easier to understand. Combine good alt text with descriptive file names, relevant surrounding text and properly optimised images.
How to audit your existing site's alt text
You don't need special software to find the gaps. Try this:
- Run a free accessibility checker or a Lighthouse audit in Chrome's developer tools. It lists images missing alt attributes.
- Right-click a few images and choose Inspect to see their actual alt text in the code.
- Turn on your phone's screen reader (VoiceOver on iPhone, TalkBack on Android) and swipe through your homepage. You'll hear exactly what blind visitors hear.
- List every image in a spreadsheet with its page, purpose and new alt text, then update them in one session.
Start with the pages that matter most: homepage, top services and contact. A focused hour usually covers a small business site completely.
Our take
We believe accessible websites are simply better websites. Writing good alt text costs a few minutes per page and opens your business to every customer, including the ones who browse with a screen reader. It also forces you to think about why each image is on the page at all, which often leads to cutting the filler and keeping the photos that really sell your work.
We'll be honest about limits: alt text is one piece of accessibility, not the whole thing. Colour contrast, keyboard navigation, form labels and heading structure matter too. If you need formal accessibility auditing for legal or contractual reasons, you'll want a specialist auditor alongside your web provider.
Quick checklist
- Check every image has an alt attribute (empty for decorative ones).
- Describe what matters in context, in one short sentence.
- Remove "image of" and keyword stuffing.
- Give linked images alt text describing the destination or action.
- Make logos say the company name.
- Replace text-in-images with real text where possible.
- Test a page with your phone's screen reader for two minutes. It's eye-opening.
The bottom line
Alt text is a short, context-aware description of an image for people and machines that can't see it. Write it like you're describing the image to someone on the phone, leave decorative images empty, and skip the keyword stuffing. It's a small habit that makes your site more inclusive, more professional and easier for Google to understand.
Frequently asked questions
Is alt text required by law?
Many accessibility laws, such as the UK Equality Act and the Americans with Disabilities Act, expect businesses not to exclude disabled people, and the WCAG standard they often refer to requires text alternatives for meaningful images. Requirements vary by country and sector. This is general information, not legal advice.
How long should alt text be?
Usually a short sentence, often under around 125 characters, though there is no strict limit. Screen readers read the whole thing, so keep it concise and put detailed descriptions, such as data from a chart, in visible text on the page.
Does alt text help with SEO?
Yes, modestly. It helps search engines understand images and can help them appear in image search, and it adds context to the page. It is not a major ranking factor, and stuffing it with keywords can be seen as spammy, so write it for people first.
What should I put as alt text for a decorative image?
Use an empty alt attribute, written as alt with empty quotes. This tells screen readers to skip the image entirely. Leaving the attribute out altogether is worse, because some screen readers then read out the file name.
Can I use AI to write alt text?
AI tools can produce a useful first draft, especially for large galleries, but they often miss context, such as why the image is on that page or the specific service shown. Always review and edit AI-generated alt text before publishing.
Want a website that brings you customers?
Tell us what you do on WhatsApp and we will send a fixed quote and a free mockup.
Get my free mockupRelated guides
Our products
Website design near you
Website design in LondonWebsite design in New YorkWebsite design in TorontoWebsite design in MiamiWebsite design in BergenWebsite design in SydneyWebsite design in CopenhagenWebsite design in BirminghamWebsite design in VallettaWebsite design in VancouverAll cities →
SiteDrum home · All guides · Sitemap · Contact us
More tech guides
- Why Is My Website So Slow? Common Causes and Fixes
- Do I Need a Privacy Policy on My Website?
- How Do I Check If My Website Is Mobile Friendly?
- How Do I Redesign My Website Without Losing SEO?
- How Do I Protect My Website From Hackers?
- What Is a CMS and Do I Need One for My Website?
- How Do I Choose a Good Domain Name for My Business?
- How Do I Update My Website Myself?