Skip to content
Digimpact

Websites

Alt text for images: how to write it for accessibility and Google

How to write alt text for images on a small business website, based on Google's image guidance and the W3C's accessibility tutorials: what to describe, what to leave empty, how long it should be and mistakes to avoid.

By GP 14 minute read

TL;DR: Alt text for images is a short written description in the image’s alt attribute that screen readers read aloud and Google uses to understand the image. Write what the image adds to the page, keep it brief, name the action for images that are links, leave it empty for purely decorative images and never stuff it with keywords. Google’s example of the best alt text is Dalmatian puppy playing fetch.

Key takeaways

  • Alt text for images is the text in an image’s alt attribute. Screen readers read it aloud, it shows if the image cannot load and Google uses it to understand what the image shows.
  • Google calls alt text the most important attribute for giving more information about an image, and says to make it useful, informative and relevant to the page.
  • Write the meaning the image adds, not a literal description. Keep it short: a phrase or a sentence is usually enough.
  • Images that are links or buttons need alt text that names the destination or action, not the picture.
  • Purely decorative images should have an empty alt attribute, which is alt with nothing between the quotes. Leaving the attribute out is not the same.
  • Do not stuff keywords. Google says it makes the experience worse for screen reader users and can make your site look like spam.
Alt text for images in six rules: describe the meaning, keep it short, name the action on links, leave decorative images empty, use keywords only where natural and never stuff them
Short, useful and honest.

A photo of your best work, a logo that links to the homepage, a chart of your prices: every image on your website says something to the people who can see it. For people who cannot, whether because they use a screen reader or because the image failed to load, the alt text is all there is. For Google, it is one of the few clues about what a picture shows.

This guide explains how to write alt text for images on a small business website, with examples for photos, logos, icons, charts and decorative images. It uses Google’s own image guidance and the W3C’s accessibility tutorials, so the advice works for people first and search engines second.

What is alt text for images?

Alt text is the short description added to an image in the alt attribute of its HTML tag. Screen readers read it out to blind and low-vision users, browsers show it if the image fails to load, and Google reads it to understand the image. It is also called an alt attribute or, loosely, an alt tag.

Google’s page on image SEO best practices says alt text is the most important attribute when it comes to providing more metadata for an image. It adds that Google uses alt text, along with computer vision and the content of the page, to understand the subject of the image, and that when an image is a link the alt text works as anchor text.

In most website platforms you do not write HTML. You type the description into a field, often labelled alternative text or image description, when you upload the image. WordPress, Shopify and website builders all have one. The job is to fill it in properly, every time.

Why does alt text for images matter?

It matters for three reasons: people who use screen readers, people on slow connections or with images switched off, and search. A page full of images with no alt text is a page that is partly invisible to those users and harder for Google to understand.

Accessibility is the main reason. The Equality Act 2010 expects businesses to make reasonable adjustments for disabled customers, and a website that can be read aloud properly is part of that. Our guide to website accessibility in the UK explains the wider duty and the common failures.

Search is the second reason. Google Images can send visitors who are looking for photos of the kind of work you do. Good alt text, together with a sensible file name and the text around the image, helps Google match your picture to the right searches. It is not a ranking trick, and it cannot rescue a poor page, but it does no harm to be clear.

How do you write good alt text for images?

Describe what the image adds to the page, in plain words, as if reading the page to someone over the phone. Be specific, be brief and leave out what the surrounding text already says. Google’s example runs from missing alt text, which is bad, to puppy, which is better, to Dalmatian puppy playing fetch, which is best.

The W3C’s tutorial on informative images says alt text should convey the meaning or content displayed visually, which typically is not a literal description of the image, and that informative images usually convey an idea that fits in a short phrase or sentence. Some of its examples:

  • A telephone icon beside a phone number: Telephone.
  • A dog wearing a bell, next to text about guide dogs’ bells: Dog with a bell attached to its collar.
  • A diagram showing how to unscrew a cap: Push the cap down and turn it counter-clockwise.
  • A stock photo of a happy family used to convey a family-friendly brand: We’re family-friendly.

Notice the last one. The alt text describes the impression the image is meant to create, not the people in it. Ask what job the image is doing on the page, then write that.

Alt text examples for a local business: a photo of a finished bathroom, a staff photo, a menu icon and a price chart, each with weak and better wording
Describe the job the image does.

What does good alt text look like for a small business?

For local businesses, good alt text is specific about the work, the place and the people, in a sentence a person would say. A plumber might write Newly fitted walk-in shower with grey tiles in a Southsea bathroom. A salon might write Stylist applying a balayage colour to long brown hair. A restaurant might write Grilled sea bass with lemon and chips on a white plate.

Compare weak and better versions:

WeakBetter
image1.jpgTwo electricians fitting a consumer unit in a Fareham kitchen
plumber plumber Portsmouth cheap plumberPlumber replacing a radiator valve in a Portsmouth flat
PhotoBirthday cake with three tiers of pink icing
Our teamFour members of the Havant dental team at reception

The weak examples are either empty of meaning or stuffed with keywords. The better ones tell a visitor, and Google, what the picture shows, and they happen to include the sort of place and service words that real customers search for, because they are true. That is the right order: write for the person, and let the useful words follow.

How long should alt text for images be?

As short as it can be while still doing its job. For most photos that is a phrase or one sentence. Google and the W3C do not set a number of characters. The W3C says informative images usually convey a simple idea that fits in a short phrase or sentence, and that dense information needs a different method.

Many guides quote a limit of around 125 characters. Neither Google’s nor the W3C’s guidance sets one, so treat it as a reminder to be concise rather than as a hard cap. If your description is a paragraph, either the image is complex and needs a different treatment, or you are describing too much.

Avoid starting with image of or picture of. Screen readers already announce that it is an image, so those words only add noise. The sources above do not rule on that phrasing, but it is standard advice in accessibility practice and it costs nothing to follow.

If an image is a link or a button, the alt text should say where it goes or what it does, not what it looks like. The W3C’s tutorial on functional images gives examples: a logo linking to the home page uses W3C home, a printer icon that opens the print dialogue uses Print this page and a magnifying glass button uses Search.

The functional images page also warns that missing or empty alt values can leave screen reader users hearing only a file name or a web address. If the logo sits beside visible text that already names the destination, the logo can have empty alt text to avoid repetition.

On a small business site, the common functional images are the logo in the header, social media icons, a phone icon that calls you, a book now button made as an image, and a map pin. Give each an alt that names the action: Digimpact home, Call us, Find us on Google Maps, Book a table.

Which alt text to use: informative images get a short description, functional images name the action, decorative images get an empty alt attribute and complex images get a short alt plus a longer description on the page
Four kinds of image, four answers.

When should alt text for images be empty?

Use an empty alt attribute, written as alt with two quotation marks and nothing between them, for images that add no information: borders, spacers, background textures and pictures that only repeat what the nearby text says. The W3C says this tells screen readers to skip the image.

The W3C’s tutorial on decorative images is clear that omitting the alt attribute entirely is not the fix, because some screen readers will read out the file name. It adds that where possible decorative images should be provided as CSS backgrounds rather than image elements, and that only the author can decide whether an image is decorative or informative.

A useful test: if you removed the image, would anyone miss any information? If not, it is decorative. A stock photo of a smiling team beside text about your services is a judgment call. If it conveys nothing about you in particular, empty alt is fine. If it is a photo of your real team, describe it.

How do you handle charts, infographics and complex images?

Give the image a short alt text that says what it is, and put the full information in text on the page. The W3C calls this a two-part text alternative: a short description that identifies the image and says where the long description is, and a long description that conveys the essential information.

The W3C’s complex images page lists options, including a text link beside the image, naming the location of the long description in the alt text, or putting the long description in a figure caption. It recommends showing long descriptions to all users as part of the main content and referring to the image in nearby text.

For a small business, this applies to price tables saved as images, opening-hours graphics, menus as pictures and infographics. The simplest fix is to avoid putting important information in an image at all. Write the prices and hours as text, so everyone can read them, search engines can index them and phones can resize them.

What else helps Google understand your images?

Alt text works alongside other signals. Google recommends short descriptive file names, placing images near relevant text, using standard image elements, keeping files a sensible size and using an image sitemap if Google might not find them. Good alt text on a poor page with a slow image is only half the job.

From the same Google page:

  • File names. my-new-black-kitten.jpg is better than IMG00023.JPG. Avoid generic names like image1.jpg.
  • Placement. Put images near the text that explains them, on pages related to their subject.
  • Standard HTML. Use image elements with a src. Google does not index CSS background images.
  • Formats. Use supported formats such as JPEG, PNG, WebP, SVG and AVIF.
  • Balance quality and speed. Sharp images help, but large files slow pages. See our guide to checking website speed.
  • Structured data. Add the image property to relevant structured data where it applies.

Our local SEO checklist shows how photos fit into the wider job of being found locally, and our guide to Google Business Profile photos covers images on your Google listing.

How do you add alt text in common platforms?

In every mainstream platform there is a field for it. In WordPress, open the image in the Media Library or the block settings and fill in Alternative Text. In Shopify, edit the product media and add alt text. In website builders, select the image and open its settings. The job is the same, so make it part of uploading.

A simple routine for any site:

  1. Before uploading, rename the file to something descriptive.
  2. When uploading, fill in the alt text straight away.
  3. For linked images, write the destination or action.
  4. For decorative images, leave it empty on purpose.
  5. Once a year, audit the site for images with no alt text.
A five step routine for alt text: rename the file, describe it as you upload, name the destination for links, leave decorative images empty and audit once a year
Do it at upload, not later.

You can check for missing alt text by running a free accessibility checker, or by viewing the page source and searching for img tags. If your site was built by an agency, ask them to confirm that every image has alt text and to explain how decorative images are handled.

How do you audit the alt text for images on an existing site?

Start with the pages that matter most: the homepage, your main service pages and the contact page. Open each on a phone and ask whether every image that carries meaning has a sensible description. Then use a free accessibility checker to list images with missing alt text across the whole site.

For each image on the list, decide which of the four kinds it is. If it is informative, write a short description. If it is a link, name the destination. If it is decorative, mark it empty on purpose. If it is a chart or table saved as a picture, replace it with real text. Fix the important pages first, and then work through the rest in batches.

Keep a short note of what you decided, so that the next person who uploads an image follows the same approach. A one-page checklist stuck to the wall next to the person who runs the website is worth more than a long policy.

If your site has hundreds of images, such as a shop with a large catalogue, write a pattern for product images, for example the product name, colour and view, and then add detail where it helps. Do not paste the same text on every image, because it tells a screen reader user nothing about the differences.

What are the common mistakes with alt text for images?

The common mistakes are leaving it blank by default, repeating the file name, stuffing keywords, writing a paragraph, describing a decorative image at length, using the same text on every image and putting important information in an image with no text version. Each one is easy to fix with a short audit.

  • Missing alt. Screen readers may read the file name.
  • Keyword stuffing. Google says it can make your site look like spam.
  • Same text everywhere. Every image says Our work.
  • Too long. A paragraph on a decorative border.
  • Starting with image of. Redundant noise.
  • Text in images. Prices and hours that nobody can search or resize.

Frequently asked questions

What is alt text for images?

It is a short description of an image in the alt attribute of its HTML tag. Screen readers read it aloud, browsers show it if the image does not load and Google uses it to understand the image.

How long should alt text be?

As short as possible while still conveying what the image adds. A phrase or a sentence is usually enough. Neither Google nor the W3C sets a character limit.

Should I put keywords in alt text?

Only where they fit naturally in a true description. Google says filling alt attributes with keywords makes the experience worse for screen reader users and can make your site look like spam.

What should I do with decorative images?

Give them an empty alt attribute so screen readers skip them. The W3C says omitting the attribute entirely is not the fix, because some screen readers read out the file name.

Does alt text help SEO?

Google says it uses alt text, with computer vision and page content, to understand an image, and as anchor text when the image is a link. It helps Google Images and general understanding, but it is not a shortcut to ranking.

Want a website that is fast, accessible and easy for Google to read?

We build websites with descriptive alt text, sensible file names and fast images from day one. Websites start from £300 a year per site, including hosting, your domain and five pages, with one fixed price in writing. See our website design service, or start with a free website check.

Free website check

How does your own website do?

Enter your website and see a quick check on screen in about 20 seconds: speed, Google, phones and the details that win the click. A full written report follows within two working days, free and with no sales call unless you ask.

Want help with this?

Tell us about your business. We reply within one working day with a time for a 30-minute call, and a fixed quote afterwards.

Rather talk now? Call 07551 079787.

What do you need?

We use your details only to reply to you. Privacy policy

Get a fixed quote