✨ Get 25% OFFon any plan. Use the coupon:

Alt text (alternative text): what it is and how to write it

By Tiago CostaUpdated on July 2, 2026

Illustration of an image frame linked to a text label with the word ALT, representing the alt text of an image.
Definition

Alt text (alternative text) is the description of an image in the HTML alt attribute. It serves to:

  • be read by screen readers, ensuring accessibility;
  • appear when the image does not load;
  • help Google understand and index the image;
  • give context when the image is also a link.

Example: instead of photo, use woman analyzing an organic traffic report on a laptop.

What alt text (alternative text) is

Alt text, or alternative text, is the text description that goes with an image on the web. In the code, it lives in the alt attribute of the image tag, something like alt="bar chart of organic traffic growth". This text usually does not appear on the screen for those who can see the image, but it is essential for those who depend on it.

It plays three roles at the same time. First, it is read aloud by screen readers, allowing people with visual impairments to understand the image. Second, it is displayed in place of the image when it fails to load, due to a connection or file path error. Third, it is one of the main clues search engines use to know what the image represents.

It helps to separate alt text from other texts tied to the image, such as the title (title), the visible caption and the file name. Each has its function, but alt text is the only one that serves accessibility and indexing at the same time, which makes it a mandatory item in any on-page SEO work.

What alt text is for: accessibility and SEO

Alt text was born as an accessibility resource, and it remains that first and foremost. For millions of people who browse with screen readers, an image without alt is a void: the software announces only "image" or reads the file name, without conveying any useful information.

The scale of the problem is large. According to the WebAIM Million report of 2026, which analyzed the home page of 1 million sites, 16.2% of all images had no alternative text, and alt failures appear among the most common accessibility errors on the web year after year. In other words, doing alt well already puts your site ahead of much of the competition.

On the SEO side, the benefit is direct. Alt text helps the search engine understand the image content and display it in image search, an often forgotten source of traffic. It also reinforces the relevance of the page as a whole and improves the experience, two signals that connect with technical SEO and with the perceived quality of the content.

Infographic comparing a bad alt text with a good one and showing that it serves screen readers, search engines and images that do not load.
The difference between a bad and a good alt text, and who it serves.

How to write good alt text step by step

Writing good alt text is a matter of clearly describing what matters in the image, in the context where it appears. A simple roadmap:

  • Describe the essentials: say what the image shows in an objective way, without starting with "image of" or "photo of", since the screen reader already announces that it is an image.
  • Be specific, but concise: a good description usually has up to 125 characters. Focus on what is relevant to the surrounding text.
  • Take context into account: the same photo can have different alts depending on the page. Describe the detail that matters in that content.
  • Do not do keyword stuffing: forcing the keyword into the alt is keyword stuffing, it hurts the experience and can be penalized.
  • Leave decorative images empty: icons and ornaments with no information should have alt="", so the screen reader skips them without noise.

See the difference in practice for a photo of a chart:

QualityAlt text
Badimage1.png
Weakchart
Goodline chart showing organic traffic doubling in six months

Clear descriptions also make the content easier to understand in parts, reinforcing the page's scannability for those who use assistive technology.

Alt text and image SEO

For the search engine, an image is an opaque file: without help, it does not know whether that JPG is a product, a chart or a cat. Alt text is the main signal that translates the image into language the search engine understands, alongside the file name and the surrounding text.

This has concrete effects:

  • Image search: a descriptive alt increases the chance of the image appearing in image results and bringing visitors.
  • Page relevance: well described images reinforce the overall topic of the content for the search engine.
  • Images that are links: when an image is clickable, the alt works as the anchor text of that link, giving context to the destination.

An important technical caveat: alt text does not replace weight optimization. Heavy images hurt loading and the LCP, so describing the image well goes hand in hand with compressing and sizing the file correctly.

Alt text in Canva, WordPress and other tools

You almost never need to touch the code to add alt text. Most platforms offer a dedicated field for it:

  • WordPress: when you insert an image, the media library shows an "Alternative text" field in the sidebar. Just fill it in before publishing.
  • Canva: when you export or publish, Canva lets you add an alt text description to each element, useful when the design becomes an image on a site.
  • Site builders and e-commerce: platforms like Wix, Shopify and Webflow have the alt field in the settings of each image.
  • Text editors and presentations: tools like Word, Google Docs and PowerPoint also have the alt text option, thinking about document accessibility.

The common point is clear: whenever the tool offers a description or alt text field, fill it in. It is one of the accessibility and on-page SEO gains with the best effort-to-result ratio.

Illustration of a person with headphones listening to a screen reader read the alt text of an image aloud.

Alt text on Instagram and social media

Social networks have also adopted alt text, both for accessibility and to describe images automatically. How it works varies by platform:

  • Instagram: when posting, tap "Advanced settings" and then "Write alt text" to add your own description. If you do not write one, Instagram generates an automatic alt, almost always generic.
  • Facebook and LinkedIn: offer the option to edit the alt text of each image before publishing.
  • X (Twitter): lets you add a description to images, with an ALT badge indicating that it has alternative text.

Keep in mind that social media alt serves accessibility within the platform, not your site's SEO. For the search engine, what counts is the description of the images hosted on your own pages. For social sharing, what controls the link's appearance is Open Graph, not alt text.

FAQ

Frequently asked questions

What does alt text mean?

Alt text is the text description of an image, stored in the HTML alt attribute. It explains what the image shows for those who cannot see it, is read by screen readers, appears when the image fails to load and helps search engines understand and index the image.

How do you write alt text?

Describe objectively what the image shows, without starting with image of or photo of, keeping it up to about 125 characters. Consider the page context, do not repeat keywords artificially and leave the alt empty (an empty alt) only on purely decorative images. On most platforms, you just fill in the alt text field.

What is Canva's alt text?

It is the description field Canva offers for each element when you export or publish a design. It works like an image's alt text: when the design is used on a site or document, that description becomes available to screen readers and search engines, ensuring accessibility.

How does alt text work on Instagram?

On Instagram, you add alt text under Advanced settings, in the Write alt text option, before publishing. If you do not write one, the app creates an automatic, usually generic description. This alt improves accessibility within Instagram, but does not influence your site's SEO.

What is the ideal length of alt text?

There is no official limit, but the recommendation is to be concise, generally up to about 125 characters. Many screen readers cut off very long descriptions, and a lean, specific alt usually communicates better than a long text full of keywords.

Images described and optimized on autopilot

Automarticles writes and optimizes your blog articles on its own, with images and alt text ready for accessibility and for Google image search.

Start free trial
Keep learning

Related concepts

On-page SEOOn-page SEO (or on page SEO) is the set of optimizations made within the page itself to improve its performance in search engines. It involves the content, the title, the headings, the meta tags, the images, the internal links and the URL structure, everything you control directly in the HTML and the text. It is one of the pillars of SEO, alongside off-page SEO (external factors) and technical SEO (site infrastructure).Technical SEOTechnical SEO is the set of optimizations made to a site's infrastructure so that search engines can crawl, understand, index and display its pages efficiently. While content takes care of what the page says, technical SEO takes care of the invisible foundation that supports everything: loading speed, URL structure, internal link architecture, mobile version, security, structured data, indexing and status codes. Without that foundation in order, even the best content may never appear in search.Open GraphOpen Graph is a meta tag protocol, originally created by Facebook, that controls how a link looks when someone shares it on social networks and messaging apps. With tags such as og:title, og:description and og:image in the page header, you define the title, the description and the image of the preview card, instead of letting the social network pick random pieces of the content. It is what turns a raw link into an attractive, clickable card.ScannabilityScannability is how easily a person can run their eyes over a piece of content and grasp the main ideas without reading every single word. A scannable text uses subheadings, lists, short paragraphs, bold and other visual cues that guide diagonal reading, the dominant pattern of people who read online. In practice, it is what makes the reader decide in a few seconds whether that page answers their question.