What is alt text?

DEFINITION

Alt text is a short written description of an image, added in the HTML alt attribute, that screen readers announce and search engines use to understand images.

Alt text (alternative text) is added to an image tag like this: <img src="latte.jpg" alt="Barista pouring a heart-shaped latte art design into a white cup">. Screen readers read it aloud for people who are blind or have low vision. Browsers display it if the image fails to load. Search engines use it, along with surrounding text and file names, to understand what the image shows.

Alt text is required for accessibility under standards such as the Web Content Accessibility Guidelines.

Why alt text matters

First, accessibility: without alt text, screen reader users miss information or hear a meaningless file name. Second, image search: descriptive alt text helps your images appear in Google Images and in visual results, which can drive traffic, particularly for products, recipes and design work. Third, when an image is a link, its alt text acts as the link's anchor text.

Examples of good and bad alt text

For a product photo, "shoe" is too vague and "shoe running shoes best running shoes cheap" is keyword stuffing. Better: "Men's blue lightweight trail running shoe, side view." For a chart, summarize the key point it shows. For purely decorative images, like a background flourish, use an empty attribute, alt="", so screen readers skip it. Avoid starting with "image of," since screen readers already announce that it is an image.

Best practices

  • Describe what the image shows and why it matters in the context of the page.
  • Keep it concise, usually one short sentence.
  • Include a relevant keyword only when it naturally describes the image.
  • Use alt="" for decorative images, and describe the action for linked images or buttons.

Common mistakes

  • Leaving alt attributes missing entirely on meaningful images.
  • Stuffing keywords into alt text that do not describe the image.
  • Putting important text inside images and not repeating it in alt text or on the page.
Try it free: Image CompressorCompress and resize images in your browser and convert to WebP or JPG for faster websites. No upload — your photos never leave your device.

Frequently asked questions

How long should alt text be?

There is no strict limit, but most good alt text is a short sentence, often under about 125 characters. Some screen readers handle long text awkwardly. If an image, like a complex chart, needs a detailed explanation, describe it in the surrounding text or a caption instead.

Does alt text help SEO?

Yes, mainly for image search. Google uses alt text, along with page content and file names, to understand images and decide when to show them. It also adds context to the page overall. The primary purpose, however, is accessibility, and writing for that usually serves SEO well too.

What is the difference between alt text and an image title?

Alt text describes the image for screen readers and search engines and appears if the image fails to load. The title attribute shows a tooltip on hover in some browsers and is not reliably read by assistive technology. Alt text is the one that matters for accessibility and SEO.

Need help with this?

검색엔진 최적화(SEO) by VYZEON — 모든 시장에서, 가장 먼저 검색되세요.

Fixed packages from $149/mo. Written scope, no surprises.

See 검색엔진 최적화(SEO)

Related terms

More SEO terms