UK web hosting · 24/7 live chat Black Friday + Cyber Monday: hosting + free domain £19.99 Open a ticket Client login

Guide

How to write good alt text for website images

By Limitless Hosting · 5 min read · Updated 18 November 2026

Alt text is a short written description of an image that screen readers read aloud and search engines can use, and good alt text says what the image shows in the context of the page. Keep it to a sentence, do not start with "image of", and leave it empty for purely decorative images so screen readers skip them.

See the plans

The basics

What alt text does and why it matters

Every image on a web page can carry an alt attribute, which is text that stands in for the picture. A blind or low-vision visitor using a screen reader hears that text instead of seeing the image. If the text is missing, the reader may announce the file name, which is usually meaningless, or skip the image entirely.

Alt text also shows if an image fails to load, and it gives search engines a clear description of what the image is about. It is one of the simplest and most useful accessibility fixes, and one of the most commonly missed.

The goal is not to describe every pixel. It is to give a visitor who cannot see the image the same useful information that a sighted visitor gets from it.

Examples

Alt text for common kinds of image

Kind of imageWhat to writeExample
A photo that adds informationWhat it shows, brieflyA plumber fitting a new boiler in a kitchen
A logo that links homeThe name and the actionSmith Plumbing, go to the home page
A chart or graphThe main point, with the data in text nearbyBar chart: web traffic doubled between January and June
An icon beside text that says the sameNothing: leave the alt empty(empty)
A button made from an imageWhat the button doesSearch
A decorative background or flourishNothing: leave the alt empty(empty)

An empty alt attribute tells screen readers to skip the image. It is not the same as leaving the attribute out, which may make them read the file name.

Good habits

Rules of thumb that work

Be specific and brief

Aim for a sentence. "Red brick shopfront with green door" beats "building".

Skip "image of"

Screen readers already announce that it is an image, so you do not need to say it.

Think about the context

The same photo can need different alt text on different pages, depending on why it is there.

Put text in text

If an image contains words, repeat them in the alt text, or better, use real text on the page.

Do not stuff keywords

Writing a list of search terms in alt text harms accessibility and does not help rankings.

Leave decoration empty

If an image adds nothing, an empty alt keeps the screen reader quiet and focused.

In WordPress

Where to add alt text in WordPress

In WordPress, open the Media Library, click an image and fill in the Alternative Text box. In the block editor, select the image block and you will see the same field in the settings panel. The text you enter is saved with the image and used wherever you insert it.

If your site already has hundreds of images without alt text, do not try to fix them all at once. Start with the pages that matter most: your home page, your services and your contact page. Then work through the rest as you update them.

Good file names help too, such as fitted-kitchen-leeds.jpg rather than IMG_4021.jpg. Our guide to optimising images for the web covers size and format as well.

Worked examples

Before and after: improving weak alt text

The best way to learn is to see weak alt text improved. Take a photo on a joiner's website showing a fitted oak staircase in a hallway. The file is called IMG_2231.jpg and has no alt text. A screen reader would read the file name, or nothing at all.

A first attempt might be "staircase". That is better than nothing, but vague. A good version is "Oak staircase with a glass balustrade in a bright hallway". It says what the image shows, in the way a visitor would describe it to a friend.

Now take a team photo on a Meet the team page. "Team photo" tells the visitor nothing. "Four members of the Jones Electrical team standing in front of a white van" gives the same information a sighted visitor gets at a glance. If the page also names the people in the text beside it, you do not need to repeat every name in the alt text.

Finally, a chart. "Chart" is useless. "Bar chart showing monthly website visits rising from 400 in January to 900 in June" gives the main point. For complex charts, put the full numbers in a table or paragraph on the page, and keep the alt text to the headline.

Common mistakes

Mistakes to avoid

Do not write the same alt text on every image. A page full of images all described as "company logo" or "photo" is confusing and unhelpful. Each description should be unique to what that image shows.

Do not use alt text to hide keywords. A list such as "cheap plumber leeds best plumber leeds emergency plumber" reads badly for a screen reader user, makes the page harder to use, and search engines are good at spotting it.

Do not rely on automatic captions from your camera or your media library. A file name or generated text such as "image 12" is not a description.

And do not forget images added by plug-ins and page builders, such as sliders and background pictures. Check that each one has alt text, or an empty alt if it is purely decorative. A quick pass through your most visited pages once a quarter keeps the problem from creeping back.

Before you publish

An alt text checklist

  • Every meaningful image has a short, specific description
  • Decorative images have an empty alt attribute
  • Alt text does not start with "image of" or "picture of"
  • Logos that link home name the business and the action
  • Charts have a one-line headline in alt text and the data in text
  • Images of text repeat the words, or are replaced by real text
  • Buttons made from images say what the button does
  • No two different images share identical alt text
  • File names are meaningful, not IMG_0001
  • Your top five pages have all been checked

Making it routine

Make alt text part of publishing

The easiest way to keep alt text under control is to write it at the moment you upload an image, while you still remember why it is there. Add it to your publishing checklist next to the page title and the meta description.

If several people edit your site, share a short style guide: one sentence, no "image of", empty for decoration. A few lines of guidance saves hours of cleaning up later, and helps every visitor, with or without a screen reader.

A fast, secure home for an accessible site

UK servers in London, free SSL and live chat open 24/7 on every plan, from 84p a month (£10.03 billed yearly).

See the plans

FAQ

Common questions

How long should alt text be?

Usually a short sentence. Aim for under about 125 characters, and use more only if the image carries complex information.

Should every image have alt text?

Every image should have an alt attribute. Meaningful images get a description. Decorative images get an empty one.

Does alt text help SEO?

It helps search engines understand the image and can help it appear in image search. Write it for people first and do not stuff in keywords.

What about images of text?

Repeat the words in the alt text, or avoid images of text and use real text so everyone can read, resize and translate it.

Can AI write my alt text?

It can give a first draft, but check it against the page. It may miss why the image is there, which is what makes alt text useful.

Run your accessible site on UK hosting

Free SSL and live chat on every plan, with a 15-day money-back guarantee.

See the plans .co.uk and .uk domains £9.99

From 84p a month, billed yearly
15-day money back
Get started