How to Write Alt Text for Images

Learn how to write alt text for images with simple rules, good and bad examples, and steps for WordPress. Improve SEO and accessibility.

Images make a website easier to read, but search engines and screen readers cannot see them the way people do. They need a short text description. That description is called alt text, and learning how to write alt text for images is one of the easiest SEO wins you can get.

Most beginners either skip alt text or stuff it with keywords. Both are mistakes. In this guide, you will learn what alt text is, why it matters, the simple rules for writing it, good and bad examples, and exactly where to add it in WordPress.

This guide is written for bloggers, small business owners and anyone who runs a WordPress website. You do not need any technical skill.

What Is Alt Text?

Alt text, short for alternative text, is a short written description of an image. It is added to the image in your website’s code, using the alt attribute. Visitors do not normally see it on the page. It appears only when the image fails to load, or when a screen reader reads it aloud to a person who cannot see the image.

Here is what it looks like in HTML:

<img src="red-running-shoes.webp" alt="Pair of red running shoes on a wooden floor">

The text inside alt="..." is the alt text. You do not have to write code, because WordPress gives you a simple box for it. We will show you where later in this guide.

Alt text is different from the image title and the caption. The caption is visible text under the image. The title shows as a small tooltip on some browsers. Alt text is the one that matters for accessibility and SEO.

Why Alt Text Matters

Alt text does three useful things at the same time.

It Makes Your Website Accessible

People who are blind or have low vision use screen readers. A screen reader reads the alt text out loud, so the person understands what the image shows. Without it, they hear nothing, or only a long file name. Good alt text is a basic part of a website that works for everyone.

It Helps Google Understand Your Images

Google can recognise many things in a picture, but it still uses alt text, the file name and the text around the image to understand the topic. Google’s own image SEO guidance says to write useful, information-rich alt text that fits the content of the page. Good alt text can help your images appear in Google Images, which can bring extra visitors.

It Helps When Images Do Not Load

If a visitor has a slow connection or a broken image link, the browser shows the alt text in place of the picture. The visitor still gets the point.

Alt text is one part of on-page SEO. If you want the full picture, read our beginner guide on what is on page SEO.

How to Write Alt Text for Images: 8 Simple Rules

Follow these rules every time you add an image. They take only a few seconds once you get used to them.

Rule 1: Describe What the Image Actually Shows

Look at the picture and write what a person would need to know if they could not see it. Be specific. “Woman typing on a laptop at a desk” is better than “person”.

Rule 2: Keep It Short

A good rule is to stay around 125 characters or less. Most images need only one short sentence or a phrase. Long alt text is hard to listen to and can look spammy.

Rule 3: Do Not Start With “Image of” or “Picture of”

Screen readers already announce that it is an image. Starting with “image of” wastes words. Just describe the content.

Rule 4: Use Your Keyword Naturally, Only When It Fits

If your target keyword truly describes the image, include it. If it does not, leave it out. Never repeat the same keyword in every image just to rank. Write for the person first.

Rule 5: Never Stuff Keywords

Alt text like “seo seo services best seo company cheap seo Pakistan” is keyword stuffing. Google can treat it as spam, and it is useless for screen reader users.

Rule 6: Match the Context of the Page

The same image can need different alt text on different pages. A photo of a laptop on a web design page might be “Web designer building a WordPress site on a laptop”. On a page about eye strain, it might be “Laptop screen showing a bright white page”.

Rule 7: Describe Text Inside the Image

If an image contains important words, such as a button or a banner, include those words in the alt text. If it is a chart, give the main point, for example “Bar chart showing website traffic growing from 200 to 1,000 visits in three months”.

Rule 8: Leave Decorative Images Empty

Some images are only decoration, such as a thin divider line or a background pattern. For these, the alt text should be empty (alt=""), so screen readers skip them. The W3C has a handy alt text decision tree that helps you decide whether an image needs a description.

Good and Bad Alt Text Examples

Examples make the rules easier to remember. Here are common cases.

ImageBad alt textGood alt text
Photo of a bakery countercakeFresh chocolate cakes on a bakery counter
Team photoimage of teamServicelink Solutions team at the office in Rawalpindi
Product photoshoes buy shoes best shoes cheapRed running shoes with white soles
Screenshot of a dashboardscreenshotGoogle Search Console performance report showing clicks and impressions
LogologoServicelink Solutions logo
Divider lineline(leave empty)

Notice that the good examples are clear, short and natural. They sound like something a person would say to describe the picture.

How to Write Alt Text for Different Types of Images

Not every image is the same. Use this simple guide for the common types.

Photos

Describe who or what is in the photo and what is happening. Add the place or detail only if it matters. For example, “Barista pouring milk into a latte at a cafe counter”.

Product Images

Name the product and mention one or two key details such as color, material or type. Keep it factual. For an online store, this helps shoppers and Google Images alike.

Screenshots

Say what the screenshot shows and the topic it supports. For a tutorial, “WordPress Media Library with the Alt Text field highlighted” is perfect.

Charts and Graphs

Share the main message of the chart. If the details are important, also write them in the text of your article, so everyone can read them.

Logos

Use the brand name followed by the word logo, for example “Servicelink Solutions logo”. If the logo is a link, describe where the link goes, such as “Servicelink Solutions home page”.

Buttons and Linked Images

When an image is a link, the alt text should explain where the link goes or what it does, not what the picture looks like.

Where to Add Alt Text in WordPress

WordPress makes it easy. There are three common places.

In the Media Library

  1. In your WordPress dashboard, go to Media, then Library.
  2. Click the image you want.
  3. Find the Alternative Text box on the right side.
  4. Type your alt text and click away. It saves automatically.

In the Block Editor

  1. Open your post or page and click the image block.
  2. In the right sidebar, find the Alt text (alternative text) box.
  3. Type your description and update the post.

In Elementor

In Elementor, the Image widget normally uses the alt text saved in your Media Library. The easiest way is to add the alt text when you upload the image, then insert it. If you change it later, update it in the Media Library and then refresh the page in Elementor. Always check the result by viewing your live page.

For your featured image, add the alt text in the Media Library when you upload it, before you set it as the featured image.

How to Check Whether Your Images Have Alt Text

You may already have many images with missing alt text. Here are two quick ways to find them.

  1. Media Library check. Open Media, Library, switch to list view and click through your most important images, such as those on your homepage and best posts.
  2. View page source. Open a page in your browser, right click, choose View page source and search for <img. Look for images with an empty or missing alt.

You can also run a free SEO audit tool or crawler to list all images without alt text across the site. Start with your most visited pages first, and fix the rest over time.

Alt Text and File Names: Do Both

Alt text works best with a good file name. Before you upload an image, rename it to something descriptive, such as red-running-shoes.webp, instead of IMG_4592.jpg. Use lowercase letters and hyphens between words.

It also helps to use a modern format such as WebP and to compress your images, because heavy images slow your pages down. We explain this in our guide on how to speed up a WordPress website.

Alt Text and Your Blog Posts

When you write a post, treat images as part of the article. Each important image should support the point of the section it sits in. Our guide on how to write a blog post for SEO shows how to structure a post so that headings, text and images all work together.

A simple routine for every new post:

  • Rename the image file before upload.
  • Compress it and use WebP.
  • Write alt text that describes the image in one short sentence.
  • Use your keyword in only one image, and only if it fits.
  • Check the live page after publishing.

Common Alt Text Mistakes to Avoid

  1. Leaving alt text empty on important images. Search engines and screen readers get no information.
  2. Using the file name as alt text. “IMG_4592” tells nobody anything.
  3. Stuffing keywords. It looks spammy and hurts the experience.
  4. Writing too much. A paragraph of alt text is hard to listen to.
  5. Starting with “image of” or “picture of”. It adds nothing.
  6. Copying the same alt text on every image. Each image should be described on its own.
  7. Describing decorative images. These should be left empty.
  8. Forgetting alt text on linked images and buttons. Explain where the link goes.

Does Alt Text Help SEO?

Yes, but it is only one small signal, so keep your expectations realistic. Alt text can help your images show up in Google Images and helps Google understand the topic of a page. It does not replace great content, a clear title or a useful page. Think of it as one more way of making your page clear, which is what Google rewards over time.

It also fits with other basics, such as writing a good title and snippet. If you want to improve how your page looks in search results, read our guide on how to write a meta description.

For a fuller list of basics that new websites should cover, see our SEO checklist for a new website.

A Quick Alt Text Checklist

Before you publish, ask yourself these questions for each image:

  • Does the alt text describe what is really in the image?
  • Is it short, clear and natural?
  • Does it avoid “image of” and keyword stuffing?
  • Is the keyword used only if it fits?
  • Is a decorative image left empty?
  • Is the file name descriptive and the file size small?

If you can answer yes to all of these, your image is ready.

 

Frequently Asked Questions

What is the best length for alt text?

A good rule is about 125 characters or less. Most images need one short sentence. Only go longer if the image carries important information.

Should I add keywords to alt text?

Only when the keyword naturally describes the image. Never repeat a keyword in every image. Write for people first.

Is alt text the same as an image title?

No. The alt text describes the image for screen readers and search engines. The title is a small tooltip that appears on some browsers and is not very important for SEO.

Do all images need alt text?

Every meaningful image should have it. Purely decorative images can have empty alt text, so screen readers skip them.

Does alt text help rank in Google Images?

It can help. Google uses alt text, file names and the text around an image to understand it. Good alt text is one of several signals for Google Images.

Can I write alt text in another language?

Yes. Write the alt text in the same language as the page. If your page is in English, write it in English.

Can I use AI to write alt text?

You can use a tool to get a first draft, but always read it and fix it. A tool may describe the picture wrongly or miss what matters on your page.

Conclusion

Now you know how to write alt text for images: describe what the image shows, keep it short, use your keyword only when it fits, skip “image of”, and leave decorative images empty. It takes less than a minute per image, and it makes your site better for visitors, screen readers and search engines.

Start with your homepage and your best articles, then make it a habit for every new post. If you would like expert help with your website’s SEO, you can read about our SEO services or explore SEO packages for small businesses. For a deeper look at how images, text and structure work together, the WebAIM guide to alternative text is also worth a read.

Have a question about your own images? Contact us and we will help.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like these