What Is Alt Text? Meaning, Examples and How to Write It
Alt text (alternative text) is a short written description stored in an image's alt attribute. Screen readers read it aloud to people who cannot see the image, browsers show it when the image fails to load, and search engines use it to understand what the picture shows. Good alt text says what the image contributes to the page in one or two plain sentences.
Try the free alt text generator
Alt text meaning in one sentence
The meaning of alt text is simple: it is the words that stand in for a picture when the picture cannot be seen. "Alt" is short for "alternative", and the text lives in the alt attribute of an HTML image tag. You will also hear it called an alt tag, alt attribute, alt description or image alternative text. They all mean the same thing.
Here is what alt text looks like in the code of a web page:
| Code | What a screen reader says |
|---|---|
<img src="mug.jpg" alt="Speckled sage-green ceramic mug on an oak table"> | "Speckled sage-green ceramic mug on an oak table, image" |
<img src="divider.png" alt=""> | Nothing — the empty alt marks the image as decorative, so it is skipped |
<img src="IMG_4821.jpg"> | Often the file name, "IMG underscore 4821 dot jpg" — the alt attribute is missing |
Most people never see alt text. In a content management system such as WordPress or Shopify you type it into a field called Alternative Text or Alt text, and the system writes the attribute for you. On social platforms it is usually under an accessibility or "Add alt text" option when you upload a photo.

Who reads alt text, and why it matters
Alt text has three audiences, and they explain why every meaningful image on a page needs it.
- Screen-reader users. People who are blind or have low vision use software such as JAWS, NVDA, VoiceOver or TalkBack, which reads the page aloud. When it reaches an image, it reads the alt text. Without it, the listener hears a file name, the word "image", or nothing at all, and misses whatever the picture was there to show.
- Everyone, when images fail. On a slow connection, in an email client that blocks images, or when an image link breaks, the browser shows the alt text in place of the picture. A clear line keeps the page understandable.
- Search engines and other software. Search engines cannot look at pixels the way people do, so they use alt text, together with the text around the image, to understand what it shows. It helps an image appear in image search for the right queries.
Alt text and accessibility rules
Alt text is the first requirement in the Web Content Accessibility Guidelines. WCAG success criterion 1.1.1, Non-text Content, is a Level A requirement: every image that carries meaning needs a text alternative that serves the same purpose. WCAG is the standard that many accessibility laws and procurement rules point to, including the US Section 508 standards and European accessibility requirements, so missing alt text is one of the most common issues accessibility audits report.
Alt text and SEO
Google's image guidance asks for alt text that is useful, information-rich and describes the image in context, and it warns against stuffing it with keywords. In practice, the alt text that serves a screen-reader user is also the alt text that serves search: specific nouns, the real subject of the picture, and no list of search terms. Write it for the listener first; the search benefit follows.
How long should alt text be?
Short. For most photos one sentence is enough, and a common guideline is to stay under about 125 characters. That number is not a rule in WCAG; it is a practical target, because a short line is easier to listen to and some older screen readers handled long alt text in chunks. Use it as an editing target, not a hard limit.
- Simple photos: one sentence, usually 60 to 125 characters.
- Images with important text in them: as long as the text that matters — a sign, a quote, a price.
- Charts, maps and infographics: a short alt text with the main point, plus a longer explanation or data table in the page itself.
- Decorative images: zero characters — an empty
alt="".
If you find your alt text running to three or four sentences, the information probably belongs in the visible text of the page, where everyone can read it. For more on the difference between short and long descriptions, see our guide to what an image description is.
How to write alt text, step by step
Good alt text answers one question: if this image disappeared, what would the reader miss? Work through it in four steps.
- Decide why the image is there. Is it showing a product, proving a point in an article, acting as a link, or just adding mood? The purpose decides what goes in the alt text — and whether it needs any at all.
- Start with the subject. Skip "Image of" or "Picture of"; the screen reader already announces that it is an image. Lead with the thing that matters: "Four volunteers picking up litter on a beach".
- Add only the details that serve the purpose. On a shop page, colour and material matter. In a news story, who is doing what matters. On a chart, the trend matters, not every number.
- Read it in context. Read the sentence before the image, the alt text, and the sentence after. If the alt text repeats the caption or the paragraph word for word, shorten it or leave it empty.
If you have many images to do, an alt text generator can draft the first line for each one, which you then check against these four steps and edit with anything only you know, such as a product name.
How to write alt text for each type of image
The same rules apply everywhere, but each kind of image has its own trap. These are the six you will meet most often.
Product photos
Name the item, then the details a shopper would want to know from looking: colour, material, shape, and the angle shown. Add the product or brand name yourself, since it is rarely visible. Avoid adjectives that sell rather than describe, like "stunning" or "best".
Charts and graphs
Give the type of chart, what it measures and the main point: "Bar chart of monthly visitors in 2026, rising every month from January to June." Put the exact figures in a table or the paragraph next to it rather than in the alt text.

Images that contain text
Signs, screenshots, quotes and posters: the words are usually the point, so put them in the alt text. "Sign on a door" leaves out everything that matters; "Sign on a bookshop's glass door reading 'CLOSED — Back at 2 PM'" does not.

Links and buttons
When an image is the only thing inside a link or button — a logo that goes to the homepage, a magnifying-glass search icon — the alt text should say where it goes or what it does, not what it looks like. "Search", not "Magnifying glass icon". "Describe The Image home", not "Logo".
People
Describe what is visible and relevant: what they are doing, what they are wearing if it matters, the setting. Name them only if the page already does or you know who they are. Don't guess at ethnicity, age or identity from appearance unless it is the point of the image and you know it.
Decorative images
Background textures, dividers and stock photos that only add mood beside a heading that already says everything should have an empty alt attribute, alt="". That tells screen readers to skip the image. Don't leave the attribute out entirely: a missing alt is not the same as an empty one, and many screen readers then read the file name instead.
10 alt text examples: bad vs good
Each row shows a common weak version beside a better one, and why. For sixty more cases — products, people, screenshots, icons and charts — see our full list of alt text examples.
| Image | Bad alt text | Good alt text | Why |
|---|---|---|---|
| Product photo of a mug | Best ceramic coffee mug green mug buy mugs online | Speckled sage-green ceramic mug with a curved handle on an oak table | Describes the item; no keyword list |
| Recipe photo on a blog | IMG_4821.jpg | Spaghetti with cherry tomatoes, basil and parmesan in a white bowl | A file name tells the listener nothing |
| Bar chart in a report | Chart | Bar chart of monthly visitors, rising every month from January to June | Gives the point the chart makes |
| Sign on a shop door | Sign on a door | Sign on a bookshop door reading "CLOSED — Back at 2 PM" | The words on the sign are the information |
| News photo of a beach clean-up | Image of people at the beach | Four volunteers in green vests picking up plastic litter on a beach | No "image of"; says who and what |
| Travel photo on social media | Best view ever!!! | Hiker in a yellow jacket looking over a green valley with a winding river | That was a caption, not a description |
| Logo linking to the homepage | Blue circle logo | Describe The Image home | A linked image needs the link's purpose |
| Search icon button | Magnifying glass | Search | Name the action, not the drawing |
| Decorative wave divider | Blue wavy line graphic | alt="" (empty) | Decoration should be skipped |
| Staff photo on a team page | Woman smiling | Priya Shah, head of support, at her desk | The page context says who she is |
Notice that several "good" versions use information that is not in the picture — a name, a job title, where a link goes. That is why an alt text generator gives you a draft and you finish it: software can see the picture, but only you know why it is on the page.
Alt text vs caption vs title vs image description
These four are often confused, and some sites use them interchangeably. They do different jobs.
| Term | Who sees it | What it is for |
|---|---|---|
| Alt text | Screen-reader users, search engines, anyone when the image fails | Replaces the image with words; describes what it shows |
| Caption | Everyone, under the image | Adds context, credit, opinion or a story to the image |
| Title attribute | Mouse users as a hover tooltip; inconsistently read by screen readers | Extra advisory text; not a substitute for alt text |
| Image description | Everyone, in the page or a linked page | A longer, detailed account of an image, such as a full chart explanation |
If an image has a visible caption that already describes it, keep the alt text short and don't repeat the caption word for word. A screen-reader user will hear both.
Common alt text mistakes
- Starting with "Image of", "Picture of" or "Photo of" when the medium doesn't matter.
- Leaving the alt attribute out, so screen readers read the file name.
- Describing decorative images that should have an empty alt.
- Writing a list of keywords instead of a sentence.
- Copying the same alt text onto every image in a gallery.
- Describing a linked image instead of saying where the link goes.
- Leaving out text that appears only inside the image.
- Writing a long paragraph that belongs in the page itself.
How to add alt text where you publish
- WordPress: the Alternative Text field in the media library, or in the image block's settings sidebar.
- Shopify: edit a product image and choose the alt text option, or edit a file in Content → Files.
- Squarespace, Wix and Webflow: the image settings panel, labelled alt text or image description.
- Instagram, X, LinkedIn and Facebook: the accessibility or "Add alt text" option when you upload a photo.
- HTML: the alt attribute on the img tag.
- Email: the alt field on each image block, so the message still makes sense when images are blocked.
To write alt text for many images quickly, upload each one to the alt text generator, check the line it writes against the purpose of the image, and paste it in.
Alt text references
- W3C — Understanding WCAG 1.1.1 Non-text Content
- W3C WAI — An alt decision tree
- Google Search Central — Image SEO best practices
Frequently asked questions
What is alt text?
Alt text is a short description of an image, stored in the image's alt attribute. Screen readers read it aloud, browsers show it when the image fails to load, and search engines use it to understand the image.
What does alt text mean?
Alt text means alternative text: words that stand in for an image for anyone who cannot see it. It is also called an alt tag, alt attribute or alt description.
Is alt text the same as an alt tag?
Yes, in everyday use. Strictly, alt is an attribute of the img tag rather than a tag of its own, but "alt tag" and "alt text" refer to the same thing.
How long should alt text be?
Usually one sentence, under about 125 characters. That is a practical guideline, not a WCAG rule. Complex images such as charts get a short alt text plus a longer explanation on the page.
Does every image need alt text?
Every image needs an alt attribute. Images that carry meaning need a description; purely decorative images need an empty one, alt="", so screen readers skip them.
Does alt text help SEO?
Yes. It helps search engines understand an image and can help it appear in image search. Write it for people first; keyword stuffing does not help and makes the page worse for screen-reader users.
Can AI write alt text?
AI can draft accurate alt text for most photos, charts and screenshots. Check each draft against the image's purpose on your page and add names or details the picture cannot show.
Try it on your own picture
- Alt text generator — Factual alt text under 125 characters for websites, online stores and social posts.
- Batch image describer — Describe up to 50 images at once — alt text, captions, prompts or full descriptions — and export them to CSV.