How to Write Alt Text for Images: SEO and Accessibility
Alt text is one sentence per image. Most sites skip it, which is exactly why it is worth doing.

In this article
Alt text is a short written description attached to an image in a page's code. Visitors do not normally see it. Three things depend on it all the same.
Why it matters
- Accessibility. Screen readers read alt text aloud to people who cannot see the image. Without it, the image is announced as nothing — or as a meaningless file name.
- Search. Search engines cannot reliably tell what a picture shows. Alt text tells them, and it is how images come to appear in image search.
- Fallback. When an image fails to load, the browser shows the alt text in its place.
How to write it
Describe what is actually in the image, specifically, in one plain sentence.
| Image | Weak | Better |
|---|---|---|
| Product photo | "mug" | "Blue ceramic coffee mug with a paw-print design" |
| Team photo | "image1" | "Students working at computers in the OEC training lab" |
| Chart | "graph" | "Line chart showing sales rising from January to June" |
The rules
- Be specific and brief. Aim for under about 125 characters.
- Do not start with "image of" or "picture of". The screen reader already says it is an image.
- Use the keyword only where it fits. If the page is about ceramic mugs and the photo shows one, the word belongs. Forcing it into every image is keyword stuffing.
- Describe the purpose for functional images. A magnifying-glass button should say "Search", not "magnifying glass".
- Leave decorative images empty. Dividers and background flourishes get an empty alt attribute (alt="") so screen readers skip them.
- Do not repeat the caption. If the caption already says it, keep the alt text short.
File names count too
"blue-ceramic-dog-mug.jpg" gives a search engine a signal. "DSC00482.jpg" gives it nothing. Use lower-case words separated by hyphens.
Doing a whole catalogue
Writing alt text for two hundred products by hand is the reason it never gets done. The Bulk Alt Text Generator takes a list of file or product names, strips camera noise such as IMG_1234 and DSC00482, and returns readable alt text plus a clean SEO file name for each line, with your keyword and brand applied consistently.
Working from a spreadsheet export? The CSV to JSON Converter and Bulk Find and Replace tidy product lists before you paste them in.
It is a first draft, not magic: where a file name says nothing about the picture, the tool flags the line for you to write by hand.
Before uploading, shrink the files with the Image Compressor — see how to compress images for a website.
Related: on-page SEO guide for beginners · meta title and description length
FAQs
What is alt text?
A written description of an image in a page's HTML, read by screen readers and search engines and shown if the image fails to load.
How long should alt text be?
Usually one sentence, under about 125 characters.
Does alt text help SEO?
Yes. It helps search engines understand the image and the page, and it is needed to rank in image search.
Should every image have alt text?
Every meaningful one. Purely decorative images should have an empty alt attribute.
Learn it properly
Turn this knowledge into income
Join a practical, mentor-led course at OEC Tech Institute — on campus in Chunian or online.


