Alt text is a short written description of an image, stored in the image’s HTML. Screen readers read it aloud to people who can’t see the image, browsers show it when the image fails to load, and search engines use it to understand what the image shows.
Does alt text help SEO?
Yes. Google calls alt text the most important attribute for providing information about an image. It uses alt text together with what it sees in the image and the text around it to understand the picture. That matters most for Google Images, where good alt text helps your photos appear for relevant searches, but it also helps Google understand the page the image sits on.
When an image is a link, its alt text also works like the anchor text of that link.
What alt text won’t do is lift a weak page on its own. It’s one small, reliable signal, and it’s worth getting right mainly because it costs so little.
How to write good alt text
Describe what the image shows, in the context of the page, in one short sentence. A few rules:
- Be specific. “Three-tier white wedding cake with fresh peonies” beats “cake”.
- Keep it short. A sentence or less. Many screen readers handle long alt text awkwardly.
- Use the page’s words naturally. If the page is about wedding cakes, the alt text probably mentions a wedding cake. That’s relevance, not stuffing.
- Don’t start with “image of” or “picture of”. Screen readers already announce it as an image.
- Don’t stuff keywords. Google’s guidelines call this out specifically: it’s a poor experience and can be treated as spam.
Examples
| Alt text | Verdict |
|---|---|
| (empty) on a product photo | Missing: no description at all |
cake | Too vague |
wedding cake wedding cakes leeds best wedding cake bakery | Keyword stuffing |
Three-tier white wedding cake decorated with fresh pink peonies | Good |
When alt text should be empty
Purely decorative images, such as a background flourish, a divider line or an icon next to text that already says the same thing, should have an empty alt attribute (alt=""). That tells screen readers to skip them. Leaving the attribute out completely is different: some screen readers then read the file name aloud.
A quick test: if the image disappeared, would the page lose information? If yes, describe it. If no, leave alt empty.
File names matter a little too
Google says file names give it “very light clues” about an image. three-tier-wedding-cake.jpg is better than IMG_4027.jpg. Rename images before you upload them; renaming afterwards changes the URL.
How to add alt text in WordPress
- In the media library: go to Media → Library, click an image, and fill in Alternative Text. This becomes the default whenever the image is inserted later.
- In the block editor: select the Image block, and in the settings sidebar fill in Alternative text.
- Already-published posts: changing alt text in the media library doesn’t always update images already inserted into posts, because the alt text is saved in the post content. Check important pages directly.
How to check which images are missing alt text
- Browser: right-click an image, choose Inspect, and look for the
altattribute. - A crawler or site audit lists every image with missing alt text across the site, which is the only practical way on a site with hundreds of images.
On most sites we audit, missing alt text is one of the most common issues, simply because nobody fills in the field when uploading in a hurry. OnPage Agent finds images with missing or unhelpful alt text in its daily audit, writes a description for each, and saves it on both the media library item and the copy inside the post, with every change reversible. It’s part of our on-page SEO checklist.