What is alt text? It is a short written description of an image, added to the page's HTML through the alt attribute, so screen readers can read the image aloud and search engines can understand what it shows. If the image fails to load, the browser shows the alt text in its place.
Key takeaways
- Alt text exists first for people who can't see the image. SEO is a useful side effect, not the main job.
- Describe the purpose of the image in its context, not every pixel. Usually a few words to one sentence is enough.
- Decorative images should have an empty alt attribute (
alt=""), not a missing one. - Google uses alt text, along with computer vision and the page content, to understand images. Stuffing keywords into it can be treated as spam.
- Alt text is part of WCAG success criterion 1.1.1, which most web accessibility laws point to.
What alt text looks like in the code
Alt text lives inside the image tag:
<img src="black-leather-office-chair.jpg" alt="Black leather office chair with chrome base and padded armrests">
You rarely need to touch the code. WordPress, Shopify, Wix, Squarespace and most other platforms have an "Alt text" or "Alternative text" field in the media library. Word, PowerPoint, Instagram, LinkedIn and X also have alt text fields for the images you post.
People often mix alt text up with three other image fields. Here is how I explain the difference to clients:
| Field | Who sees it | What it is for |
|---|---|---|
Alt text (alt) |
Screen reader users, search engines, anyone whose image fails to load | A replacement for the image when it can't be seen |
| Caption | Every visitor, printed under the image | Extra context, credits or commentary |
Title attribute (title) |
Mouse users as a hover tooltip, in some browsers | Optional extra info; not a substitute for alt text |
| File name | Search engines, and anyone who downloads the image | A short label for the file itself |
Why alt text is important for images

Alt text does three jobs.
- Accessibility. Blind and low-vision users rely on screen readers. When the reader reaches an image, it announces the alt text. With no alt attribute, many screen readers fall back to reading the file name, so the user hears something like "IMG underscore 4021 dot jpg". WebAIM's alt text guide covers this behaviour.
- Fallback. On a slow connection, a broken image link or with images blocked, the browser shows the alt text instead of the image.
- Search understanding. Google's image SEO best practices say Google uses alt text along with computer vision and the content of the page to work out what an image is about.
Where does alt text appear?
For most sighted visitors, it doesn't appear at all. Alt text is invisible on a normal page load. It shows up in these places:
- Read aloud by screen readers such as JAWS, NVDA and VoiceOver
- In the empty box where an image failed to load
- In the source code and in SEO crawlers like Screaming Frog, which flag images with missing alt text
- On social platforms, where users of assistive tech hear the description you entered
If you want to see it for yourself, right-click an image, choose "Inspect" and look for alt="..." in the highlighted tag.
Does alt text help SEO?
Yes, but in a narrower way than many SEO blogs suggest. Here's what Google's own documentation supports:
- Image search. Alt text is one of the signals Google uses to decide which queries an image is relevant for in Google Images.
- Context for the page. WebAIM notes that search engines factor alt text into their reading of the page's purpose and content.
- Linked images. Google's image guide says alt text works as anchor text when an image is used as a link. A logo linking to your home page with empty alt text is a link with no anchor.
What alt text won't do is lift a weak page into the top three for a competitive keyword. I treat it as a basic hygiene item: missing alt text across a site is a sign that nobody has looked at the images properly, and fixing it helps image search and accessibility together.
Google is clear on keyword stuffing. Its own example of a bad alt attribute is a list of puppy synonyms, and it warns this can make your site look spammy. Its "best" example is simply "Dalmatian puppy playing fetch". My rule of thumb: if the keyword describes what is in the image, use it once. If it doesn't, leave it out.
How to write good alt text
This is the process I use when writing alt text for client sites.
- Ask why the image is there. A photo of a team at a desk could be there to show the office, a specific person, or just to break up text. The answer changes the alt text.
- Describe what matters in this context. The W3C images tutorial and Harvard's digital accessibility guidance both stress context: the same image can need different alt text on different pages.
- Put the important words first. Screen reader users can skip ahead, so lead with the subject.
- Skip "image of" and "picture of". Screen readers already announce that it is an image. Do say "logo", "illustration", "chart" or "screenshot" when the type matters.
- Include any text that is in the image. If a banner says "Free delivery over ₹999", the alt text should say the same.
- Don't repeat the text next to it. If the caption already says everything, a short alt text or an empty one is fine.
- Read it aloud. If it sounds odd spoken, or you'd skip it as a listener, rewrite it.
How long should alt text be?
There is no official character limit. You'll often read that screen readers cut alt text off at 125 characters. Accessibility specialist Eric Eggert has explained why that's a myth: JAWS splits long alt text into chunks rather than cutting it.
That said, short is still better. WebAIM says that typically only a few words are needed, and rarely a sentence or two. My working range is 5 to 15 words, or under about 150 characters. If I need more than that, the image is probably a chart or diagram, and the detail belongs in the body text or a table next to it, with a short alt text that names what the chart shows.
Can alt text be too long? Yes. A paragraph of alt text is tiring to listen to, can't be skimmed and starts to look like keyword stuffing to a search engine.
Which images need alt text?
Every <img> needs an alt attribute. Not every image needs words in it. The W3C alt decision tree is the best tool I know for this. Here is my condensed version:
| Image type | What the alt text should do | Example |
|---|---|---|
| Informative photo or illustration | Describe what the image adds | alt="Epoxy garage floor with grey flake finish" |
| Icon or image inside a link or button | Describe the action or destination, not the picture | A magnifying glass icon: alt="Search" |
| Logo | Name the organisation; mention the link target if it's linked | alt="AlgoBlueprints home" |
| Image containing text | Repeat the text | alt="Sale: 30% off all chairs until Sunday" |
| Chart, graph or diagram | Give the main takeaway; put the data on the page | alt="Bar chart: organic clicks doubled from January to June" |
| Decorative image, spacer, background flourish | Empty alt so screen readers skip it | alt="" |
So, do icons need alt text? If the icon does something on its own, yes, and it should describe the function. If it sits next to a visible text label such as "Cart", it is redundant and can have alt="".
And do decorative images need alt text? They need the attribute, left empty. An empty alt tells assistive tech to skip the image. A missing alt can make it read the file name instead.
Alt text examples: good vs bad

| Image | Weak alt text | Better alt text |
|---|---|---|
| Product photo of a phone case | phone case phone cover best phone case India |
Matte black iPhone 15 case with a printed mountain sunset design |
| Blog hero image of a laptop | image of laptop |
Laptop showing a Google Search Console performance report |
| Team photo on an About page | team |
The five-person content team at a whiteboard planning a launch |
| Download icon in a button | arrow icon |
Download the PDF |
| Divider line between sections | divider line graphic |
alt="" |
A template for product photos. When someone asks me to write alt text for a product photo, I use this pattern: [colour/material] + [product name] + [key visible feature] + [angle or context, if more than one image]. For example: "Brown leather messenger bag, front view, with brass buckles." Each gallery image should describe what is different about that shot, not repeat the product name five times. I cover product images in more depth in my guide to ecommerce product page content.
Image file names and other image SEO basics
Alt text is the biggest image SEO item, but it isn't the only one. Since this is the one guide on this site that covers image SEO, here are the basics I check on every audit, all taken from Google's image SEO best practices:
- Descriptive file names. Google gives
my-new-black-kitten.jpgas better thanIMG00023.JPG. Rename files before you upload them; renaming later changes the URL. - Use real
<img>tags for content images. Google says it doesn't index CSS background images. Background images are fine for decoration, not for products. - Place images near relevant text. Google pulls context from the surrounding text, captions and headings.
- Use supported formats. Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. Make sure the file extension matches the file type.
- Consider an image sitemap if images load in ways Google might not discover, for example through JavaScript galleries.
- Keep files light. Large images slow pages down; I cover image weight and LCP in my Core Web Vitals guide.
On product and recipe pages, the image URL is also used in your structured data. If you're adding that, my schema markup guide explains how it fits together.
Is alt text a legal requirement?
In many cases, yes, though it is rarely the law itself that says "alt text". Laws tend to point to WCAG, and WCAG success criterion 1.1.1 (Non-text content) is the Level A requirement that covers text alternatives for images. A few examples:
- United States, federal agencies. Section508.gov states that alt text is required for digital content under the Section 508 standards.
- United States, state and local government. The DOJ's ADA Title II rule requires WCAG 2.1 Level AA. An interim final rule in April 2026 moved the deadlines to April 2027 for larger public entities and April 2028 for smaller ones and special districts (Plante Moran summary).
- European Union. The European Accessibility Act has applied since 28 June 2025 and covers many e-commerce services sold to EU consumers (National Disability Authority, Ireland).
- Australia. In 2000, a blind user's complaint about the Sydney Olympics website, which included missing alt text, led to a finding under the Disability Discrimination Act and an order for AUD 20,000 in damages (W3C case summary).
This is a summary, not legal advice. If your business has legal exposure, speak to a lawyer who works on accessibility.
Who writes alt text?

The person who knows why the image is on the page. On most sites that's the content writer or editor, not the developer. Developers make sure the alt field exists and that decorative images output alt="". Writers fill it in.
AI tools can draft alt text quickly, and I use them for first drafts on large product catalogues. But Section508.gov warns that default and AI-generated descriptions often miss the image's purpose. Read every one before it goes live.
My alt text checklist
Run through this before you publish any page:
Alt text is one line on my full SEO checklist, which covers the rest of the on-page and technical items.
Frequently asked questions
Is alt text visible to visitors?
Not normally. It appears only when an image fails to load, or when a screen reader announces it. Some older browsers showed it as a hover tooltip, but modern ones use the title attribute for that.
Can alt text and the image caption be the same?
They can, but it wastes the screen reader user's time, because they hear the same words twice. If the caption already describes the image fully, use a brief alt text that adds something, or leave it empty.
How can I tell if an image already has alt text?
Right-click the image and choose "Inspect" to see the alt attribute. For a whole site, run a crawler such as Screaming Frog and filter for images with missing alt text.
What happens if I leave the alt attribute out completely?
Screen readers may read the file name or the image URL instead, which is confusing. Crawlers and accessibility checkers will also flag it as an error. If the image is decorative, add alt="" rather than leaving it out.
Should I write alt text for images on Instagram or LinkedIn?
Yes. Both platforms have an alt text field, and screen reader users rely on it there just as they do on websites. The same rules apply: describe what matters and keep it short.
Does every image need a keyword in its alt text?
No. Add a keyword only when it accurately describes what is in the image. Forcing the same keyword into every image on a page is the stuffing pattern Google warns against.
Sources
- Google Search Central: Google image SEO best practices
- W3C WAI: Images tutorial and An alt decision tree
- W3C WAI: Understanding SC 1.1.1 Non-text content
- WebAIM: Alternative text
- Section508.gov: What is alternative text?
- Harvard University Digital Accessibility: Write helpful alt text to describe images
- Eric Eggert: There is no character limit for alt text
- Plante Moran: DOJ extends ADA Title II web accessibility compliance deadlines
- National Disability Authority (Ireland): European Accessibility Act
- W3C WAI: SOCOG case study
Connect with Akif on LinkedIn, Instagram and Facebook.
Driven by advanced SEO expertise, deep marketing analytics, high-impact content strategy
With 2+ years of hands-on SEO experience, I specialize in holistic search strategies that don’t just rank—they drive real, measurable business growth. I’ve worked across industries including healthcare, hospitality, legal, e-commerce, and professional services, helping brands dominate their target markets. My approach bridges the gap between raw data and creative execution. Every strategy I build is rooted in rigorous market analysis, structured SEO frameworks, and tailored content ecosystems—no templates, no shortcuts. Whether you’re a single-location brand or scaling across multiple cities, I create data-driven marketing systems designed to compound results and grow with you.
Want Every Image on Your Site Working for SEO?
Get an image and accessibility audit that finds missing alt text, oversized files and weak file names across your whole site.
Book a Free SEO Audit →