Every image on your website has a short piece of hidden text attached to it, called alt text. Most visitors never see it. But search engines read it, and screen readers read it aloud to people who cannot see the image. Good alt text helps your website appear in image searches, and it makes your site usable for blind and partially sighted visitors.

Writing alt text is a small job, and it is easy to get right once you know the rules. It takes a minute per image, and the habit is worth building. This guide explains what alt text is, when to use it, and how to write it well.

What alt text is and why it matters

Alt text, short for alternative text, is a short description of an image that is stored in your website's code. If an image fails to load, the browser shows the alt text instead, so the visitor still understands what was meant to be there. If a blind visitor uses a screen reader, the software reads the alt text aloud, so they can follow the page.

Search engines also use alt text to understand what an image shows. A search engine cannot see a photo the way a person can, so it relies on the words you provide. Clear alt text can help your images appear in image search results, which can bring extra visitors to your website.

Alt text is not the same as a caption. A caption is visible text shown beneath an image for everyone to read. Alt text is hidden, and it is mainly there for people and search engines that cannot see the image. You can use both, but they do different jobs, and they do not need to say the same thing.

Describe what is in the image, plainly

The basic rule is simple: say what the image shows, as if you were describing it to someone on the phone. A photo of a red bicycle leaning against a brick wall could be described as "red bicycle leaning against a brick wall". A photo of a plumber fitting a tap could be "plumber fitting a new kitchen tap". Short, factual, and specific is what works.

Include the details that matter. If the image shows a particular product, a place, or an action, name it. "A wooden dining table with six chairs in a bright living room" is more useful than "table". But do not list every tiny detail. The reader needs enough to understand the image, not a full inventory of everything in it.

Keep it reasonably short, usually under about 125 characters. Screen readers can handle longer descriptions, but most images do not need them. If an image is complex, such as a chart or a diagram, a short alt text plus a fuller description in the page text nearby is a better approach than a very long alt text.

Use keywords naturally, never force them

It is fine for alt text to include a relevant keyword, if the keyword genuinely describes the image. A photo of your shop could reasonably be described as "front of our bakery shop in Leeds". That is honest, useful, and it happens to include words people search for.

What does not help is stuffing alt text with keywords. Writing "plumber Leeds, best plumber Leeds, cheap plumber Leeds, emergency plumber" as the alt text for a photo of a tap is not useful to anyone, and search engines can tell the difference. It also sounds terrible when read aloud by a screen reader.

Think of the blind visitor first and the search engine second. If the alt text is a clear, honest description, it will serve both purposes. If you write it only for search engines, it will serve neither purpose well. A simple test is to read the alt text aloud. If it sounds like a normal description, it is right.

Know when to leave alt text empty

Not every image needs alt text. Decorative images, such as a background pattern, a divider line, or a small icon that sits next to a text label, add nothing to the meaning of the page. For these, the alt text should be left empty, so that screen readers skip them instead of reading out something pointless.

In most website systems, leaving the alt text field empty is different from not filling it in at all, so ask your web designer how your site handles it. The aim is the same either way: the screen reader should ignore the decoration and focus on the content that matters.

Images that act as links need special care. If a picture is also a button or a link, the alt text should say where the link goes, not just describe the picture. A logo that links to the homepage, for example, should have alt text such as "home page" rather than a description of the logo itself. Our guide to whether your business website needs a blog covers images in blog posts, where the same alt text rules apply.

Build the habit into your routine

The easiest way to keep alt text up to date is to write it at the moment you upload each image. It takes less than a minute, and it becomes automatic after a few images. Trying to add alt text to hundreds of old images in one go is a much bigger job, so start with your most important pages: the homepage, your main service pages, and your most visited blog posts.

If your website has many old images, work through them a few at a time. Fix the homepage first, then the service pages, then the rest. You do not need to finish everything in one day. Steady progress is enough, and each image you fix makes your website a little more accessible and a little easier to find.

Finally, check your work by reading the alt text back. Does it describe the image clearly? Would a blind visitor understand the page from it? Would it make sense if the image did not load? If the answer is yes, you have done it well. If you would like help reviewing the images on your website, our services page explains how we help small businesses build websites that work well for every visitor.

Frequently asked questions

What is alt text?

Alt text is a short written description of an image, stored in your website's code. It is shown if the image fails to load, read aloud by screen readers for blind visitors, and used by search engines to understand what the image shows.

How long should alt text be?

Usually one short sentence, under about 125 characters, is enough. Describe what the image shows in plain words. If an image is complex, such as a chart, give a short alt text and a fuller description in the page text nearby.

Should I put keywords in my alt text?

Only if they describe the image honestly. A photo of your bakery in Leeds can reasonably be described that way. Stuffing alt text with repeated keywords does not help your ranking and makes the text useless for screen reader users.

Do decorative images need alt text?

No. Decorative images, such as background patterns or divider lines, should have empty alt text so screen readers skip them. Only images that add meaning to the page need a written description.

If you would like help writing alt text for your website images, or a website that is easy to use for every visitor, please contact Shehryar Noor. We will review your images together and help you describe them clearly.