Skip to content
Write.info

Alt text generator for images, accessibility and search

By the Write.info team ยท Updated

Need alt text for an image and not sure what to write? This alt text generator looks at the picture you upload and gives you three options, short, descriptive and search-aware, plus a caption idea for the text under the image.

Pick one, edit it to fit your page, and paste it into your CMS. The rules we follow come from W3C accessibility guidance and Google's image documentation, and they are laid out below with examples of good and bad alt text.

How to use the alt text generator

  1. Add your image to the upload box at the top of this page.
  2. Press the button. The result appears under it.
  3. Read the three alt text options and the caption idea.
  4. Pick the option closest to your page, then edit it. Add what the picture cannot show by itself, such as a product name, a person's name or the place.
  5. Paste the text into the alt field in your CMS, or into the alt attribute of your img tag.

The tool sees the image and nothing else. It does not know which article, product page or lesson the image sits in. That is why step four matters more than the other four.

What the alt text generator gives you

Every image gets three versions of alt text, because no single version fits every placement. A caption idea comes with them, since people often mix up the two.

OutputWhat it looks likeUse it when
ShortA brief phrase, around five to ten wordsSimple photos, or images next to text that already explains them
DescriptiveOne or two full sentencesProduct shots, diagrams, screenshots and anything that carries information
SEO-awareA natural description, with one relevant term only if it fitsBlog hero images and product pages you want to rank
Caption ideaVisible text for under the image, not for the alt attributeArticles where readers gain from a line of context

The SEO-aware option is the one people worry about, so here is how it works. It never repeats a keyword for its own sake. If a term does not describe what is in the picture, it stays out.

What good alt text does

Alt text is the text version of an image. A screen reader reads it aloud, the browser shows it when the image fails to load, and search engines read it to understand the picture. Write what the image communicates in this particular spot on this particular page. The same photo can need different alt text on two different pages.

A few habits cover most cases.

A good alt text generator gets you a clean first draft of this. It does not replace a quick look from someone who knows the page.

The W3C alt text decision tree, in plain words

The W3C Web Accessibility Initiative publishes a decision tree for alt text inside its images tutorial. The tree asks what job the image does, then tells you what to write. Here is the short version.

Image typeWhat to writeExample
DecorativeEmpty alt, alt=""A divider line or a background swirl
InformativeA short description of the contentA photo of a speaker on stage
Functional, such as a link or buttonThe action or destination, not the picture"Search" for a magnifying glass button
Image of textThe same words that appear in the imageA banner reading "Spring sale"
Complex, such as a chart or mapA short alt naming the image, plus a longer description nearbyA line chart with a data table beneath it

The generator is built for informative images and gives you a draft for complex ones. It cannot know whether an image is decorative in your layout, and it cannot know that your image is a button. Those two calls are yours. If the image is a link, rewrite the output so it says where the link goes.

Decorative images and empty alt

Not every image needs a description. A decorative image adds nothing a reader would miss, so it should be skipped by screen readers. The way to do that is an empty alt attribute, written alt="".

Empty is not the same as missing. When the attribute is absent, some screen readers fall back to reading the file name aloud, which is noise like "IMG underscore 4032 dot jpg". An empty attribute tells them to move on.

A quick test helps. Imagine the image vanished. Would someone using a screen reader lose any information or any way to act? If not, it is decorative. For pure decoration, a CSS background image is often cleaner than an img tag.

Alt text for SEO, based on Google's image guidance

Google's image SEO best practices say it uses alt text together with computer vision and the content of the page to understand what an image is about. The advice is to write useful, information-rich text that uses keywords where they belong and fits the context of the page. The same page warns against filling the alt attribute with keywords. For an image that is a link, Google treats the alt text much like anchor text.

That is the reason our alt text generator does not stuff terms into its SEO-aware option. Stuffing reads badly aloud, helps nobody, and gives search engines nothing extra. Descriptive file names and nearby text also help, so name the file blue-ceramic-coffee-dripper.jpg instead of leaving it as a camera number.

Here is the difference on one product photo.

VersionAlt text
Stuffedcoffee dripper best coffee dripper buy coffee dripper cheap pour over
Natural and SEO-awareBlue ceramic pour-over coffee dripper on a wooden counter

The second one still contains the phrase people would search. It just also makes sense when read aloud. If you are writing the page text around the image, our AI SEO writer can draft it, and your alt text then has real context to match.

Good and bad alt text, side by side

ImageBad alt textBetter alt text
Dog catching a frisbeedogGolden retriever leaping to catch a red frisbee on a sandy beach
Product photoIMG_4032.jpgBlue ceramic pour-over coffee dripper on a wooden counter
Magnifying glass buttonmagnifying glassSearch
Team at a meetingImage of peopleFour employees reviewing printed mockups at a conference table
Sales chartchartLine chart of monthly signups rising from January to June, data table below

Notice what the bad versions have in common. They are either empty of meaning, a leftover file name, or a description of the wrong thing. The magnifying glass example is the classic mistake, because the picture is not what matters. The action is.

A worked example from the tool

Say you upload a photo of a bakery storefront with a chalkboard sign by the door. Output like this is what you should expect, though the exact wording changes with each image.

Short. Bakery storefront with a chalkboard sign.

Descriptive. Corner bakery at opening time, with a chalkboard sign by the door listing the day's loaves and a baker unlocking the glass door.

SEO-aware. Sourdough bakery storefront with a chalkboard menu sign beside the entrance.

Caption idea. The first loaves are on the shelves by six every morning.

On a page about the bakery's story, the descriptive version fits. In a gallery of storefronts, the short one is enough. On a local landing page, the SEO-aware version earns its place. Then edit in the bakery's real name, since the tool cannot read it off a sign it cannot see.

Special cases

Screenshots and images with text

If the words in the image matter, put those words in the alt text, or place them in the page body. When you need the text out of a screenshot first, you can extract the text from an image and then decide where it belongs. A long block of text should live in the page itself, not in an alt attribute.

Logos and linked images

A logo that links to your homepage should say what the link does, for example "Acme home". A logo that sits beside the company name in plain text can often be treated as decorative, because the name is already there.

Charts, maps and diagrams

Name the image type and the main takeaway in the alt text. Put the full detail in a data table or a paragraph next to it. Crowding all of it into the alt attribute makes it hard to read aloud and hard to skim.

Photos of people

Describe what matters to the page. A name and role help when the person is the point of the image. Avoid guessing at age, identity or feelings the picture does not make plain.

Check the result before you publish

Read the alt text aloud once. If it sounds like a sentence a person would say, it is probably fine. Longer descriptions are worth running through a readability checker, because alt text that is hard to read is hard to hear.

Also check that the text still matches the page after edits. Product names change, photos get swapped, and alt text gets left behind. If you add structured data for images and articles, a schema markup generator can build the JSON-LD, and the image description there should agree with your alt text. Some people search for an alternative text generator, and it is the same thing, since alt is short for alternative. For other jobs around the page, see our other writing tools.

Using an image alt text generator across a whole site

Running every image through a tool in one afternoon is tempting. Resist that. Start with the images that do the most work, such as hero images, product photos, images inside links and anything with text in it. Those are the ones where missing or weak alt text costs you the most.

Then check three things on every draft.

The alt text, caption, file name and title attribute each do a separate job. Alt text replaces the image. A caption adds context for everyone. The file name helps search engines and your own folders. The title attribute is rarely worth using, because support for it is uneven. An image alt text generator can draft the first two. The last two are quick manual jobs.

Alt text questions people ask before they publish

What is alt text?

Alt text is a short written description placed 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 image shows. It replaces the picture's meaning, not just its appearance.

How long should alt text be?

HTML and Google's documentation set no fixed limit. Most images need a short phrase or one sentence. If you feel you need a paragraph, the image is probably a chart or diagram, so write a short alt text and put the longer description in the page text or a table nearby.

Does alt text help SEO?

Yes, modestly. Google says it uses alt text along with computer vision and page content to understand images, which matters for Google Images. Clear, relevant descriptions help. Stuffing keywords into the attribute does not, and it makes the page worse for screen reader users.

Should alt text start with image of or photo of?

No. Screen readers already announce that an element is an image, so those words repeat what the user has heard. Start with the actual description. The exception is when the type of image matters, such as a painting, a screenshot or a diagram.

What alt text should decorative images have?

Use an empty alt attribute, written alt="". That tells screen readers to skip the image. Do not leave the attribute out entirely, because some screen readers then read the file name aloud. Decorative means the image adds no information and no function to the page.

Can AI write good alt text?

AI can write a solid first draft from the image alone, but it cannot see your page. It may miss a product name, a person's name, the purpose of a linked image or text that is hard to read. Treat the output as a draft and edit it for context.

Does every image need alt text?

Every img element should have an alt attribute. Informative and functional images need a real description. Decorative images need an empty one. Images of text need the same words the image shows, and complex images need a short alt plus a longer description elsewhere.

Related tools and guides