Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (2024)

Today, nearly 19% of Google's SERPs show images. That means, despite your best SEO efforts, you could still miss out on another organic traffic source: your website's images.

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (1)

How do you get in on this traffic source? Image alt text. In this piece, we’ll cover how to write image alt text so your images rank highly in search engines and drive traffic.

Table of Contents

  • What is alt text?
  • Why is image alt text important?
  • How to Add Alt Text to Your Images
  • 3 Image Alt Text Examples
  • Image Alt Text Best Practices
  • How Alt Text Affects SEO

What is alt text?

Also called alt tags and alt descriptions, alt text is the written copy that appears in place of an image on a webpage if the image fails to load on a user's screen. This text helps screen-reading tools describe images to visually impaired readers and allows search engines to better crawl and rank your website.

Whether or not you perform SEO for your business, optimizing your website's image alt text is your ticket to creating a better user experience for your visitors, no matter how they first found you.

Why is image alt text important?

Image alt text is important for three reasons: accessibility, user experience, and image traffic. Understanding these reasons will help you write effective alt text for all of your images. Let’s dive in.

HubSpot uses the information you provide to us to contact you about our relevant content, products, and services. HubSpot will share the information you provide to us with the following partners, who will use your information for similar purposes: RYTE. You can unsubscribe from communications from HubSpot at any time. For more information, check out HubSpot's Privacy Policy. To unsubscribe from RYTE's communications, see RYTE's Privacy Policy.

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (3)

Complete SEO Starter Pack

An introductory kit to optimize your website for search.

  • Increase your organic traffic.
  • Plan your keyword strategy.
  • Debunk SEO myths.
  • Build a blog strategy.

Accessibility

In 1999, W3C published its Web Content Accessibility Guidelines 1.0 to explain how to make content more accessible for users with disabilities. One of these guidelines was to “Provide equivalent alternatives to auditory and visual content.” It meant any web page with images (or movies, sounds, applets, etc.) should include equivalent information to its visuals or auditory content.

First and foremost, descriptive text alternatives to auditory and visual content ensure everyone can benefit from the content you share, especially those with visual impairments who may use screen readers to absorb the content on a webpage. An image without a description isn’t helpful for someone using that technology and creates a poor user experience and, in some cases, poor brand perception.

For example, say a web page contains an image of an upward arrow that links to a table of contents. A text equivalent might be "Go to table of contents.” This would allow a user with a screen reader or other assistive technology to understand the purpose of the image without seeing it.

In other words, alt text helps ensure your visual content is accessible to all users, regardless of their visual ability.

User Experience

Alt text promotes accessibility and provides a better user experience to all users. For example, say a visitor has a low bandwidth connection, so your images don’t load. Instead of just seeing a broken link icon, they’ll also see alt text to glean what the image conveys.

For example, a user on your site might be able to see the image on the left. If they can’t, due to whatever reason, they’ll hear or see the alt text on the right. This will help provide a better user experience than if there were no alt text.

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (4)

Image Source

Image Traffic

Another important thing alt text does for you is surface your images in search results, whether in Google Images or as image packs. Image packs are special results displayed as a horizontal row of image links that can appear in any organic position (including the #1 spot on a SERP, as seen in the example in the intro).

And, images that appear in both types of search results are yet another way to receive organic visitors. This can result in thousands of more visitors — at least, it did in HubSpot’s case.

Beginning in 2018, the HubSpot Blog team implemented a new SEO strategy that, in part, focused more intently on optimizing image alt text. This helped to increase the blog’s image traffic by 779% in less than a year, which resulted in 160,000 more organic views. You can read more about the team’s success in this blog post.

How to Add Alt Text to Your Images

In most content management systems (CMSs), clicking on an image in the body of a blog post produces an image optimization or rich text module, where you can create and change the image's alt text.

Let's walk through the next steps for CMS Hub and WordPress below.

How to Add Alt Text in the HubSpot CMS

In HubSpot, once you’ve clicked on an image and clicked the edit icon (which looks like a pencil), an image optimization pop-up box will appear.

Here's what this image optimization window looks like in the CMS inside your HubSpot portal:

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (5)

Your alt text is then automatically written into the webpage's HTML source code, where you can edit the image's alt text further if your CMS doesn't have an easily editable alt text window. Here's what that alt tag might look like in an article's source code:

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (6)

How to Add Alt Text in the WordPress CMS

In WordPress, clicking on an image will automatically open the Block tab in the sidebar. Under the section labeled "Image Settings,"add the alt text in the empty field.

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (7)

When you're ready, click Update from the toolbar at the top of your screen.

The most important rule of alt text? Be descriptive and specific. Keep in mind, however, that this alt text rule can lose its value if your alt text doesn't also consider the image's context. Alt text can miss the mark in three different ways. Consider the examples below.

HubSpot uses the information you provide to us to contact you about our relevant content, products, and services. HubSpot will share the information you provide to us with the following partners, who will use your information for similar purposes: RYTE. You can unsubscribe from communications from HubSpot at any time. For more information, check out HubSpot's Privacy Policy. To unsubscribe from RYTE's communications, see RYTE's Privacy Policy.

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (8)

Complete SEO Starter Pack

An introductory kit to optimize your website for search.

  • Increase your organic traffic.
  • Plan your keyword strategy.
  • Debunk SEO myths.
  • Build a blog strategy.

Loading your download form

You're all set!

Click this link to access this resource at any time.

Access now

Learn more

3 Image Alt Text Examples (the Good and the Bad)

1. Keyword vs. Detail

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (9)

Bad Alt Text

alt="HubSpot office wall Singapore inbound marketing workplace murals orange walls ship it"

What's wrong with the line of alt text above? Too many references to HubSpot. Using alt text to stuff keywords into fragmented sentences adds too much fluff to the image and not enough context. Those keywords might be important to the publisher, but not to web crawlers.

In fact, the alt text above makes it hard for Google to understand how the image relates to the rest of the web page or article it's published on, preventing the image from ranking for the related longtail keywords that have higher levels of interest behind them.

Worst still, Google hands out penalties for keyword stuffing.

Good Alt Text

With the bad alt text (above) in mind, better alt text for this image might be:

alt="Orange mural that says 'ship it' on a wall at HubSpot's Singapore office"

2. Detail vs. Specificity

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (10)

Image Source

Bad Alt Text

alt="Baseball player hitting a ball at a baseball field"

The line of alt text above technically follows the first rule of alt text — be descriptive — but it's not being descriptive in the right way. Yes, the image above shows a baseball field and a player hitting a baseball. But this is also a picture of Fenway Park — and the Red Sox's #34 David Ortiz clocking one over right field. These are important specifics Google would need to properly index the image if it's on, say, a blog post about Boston sports.

Good Alt Text

With the bad alt text (above) in mind, better alt text for this image might be:

alt="David Ortiz of the Boston Red Sox batting from home plate at Fenway Park"

3. Specificity vs. Context

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (11)

Image Source

Both images above have clear context that can help us write good alt text — one is from a HubSpot office, and the other is Fenway Park. But what if your image doesn't have official context (like a place name) by which to describe it?

This is where you'll need to use the topic of the article or webpage to which you're publishing the image. Here are some bad and good examples of alt text based on the reason you're publishing it:

For an Article About Attending Business School

Bad Alt Text
alt="Woman pointing to a person's computer screen"

The line of alt text above would normally pass as decent alt text, but given that our goal is to publish this image with an article about going to business school, we're missing out on some key word choices that could help Google associate the image with certain sections of the article.

Good Alt Text

With the bad alt text (above) in mind, better alt text for this image might be:

alt="Business school professor pointing to a student's computer screen"

For a Webpage on Education Software for Business School Teachers

Bad Alt Text
alt="Teacher pointing to a student's computer screen"

The line of alt text above is almost as descriptive and specific as the good alt text from the previous example, so why doesn't it suffice for a webpage about education software? This example dives even deeper into the topic of business school, and specifies that the ideal audience for this webpage is teachers. Therefore, the image's alt text needs to reflect that.

Good Alt Text

With the bad alt text (above) in mind, better alt text for this image might be:

alt="Professor using education software to instruct a business school student"

Image Alt Text Best Practices

Ultimately, image alt text needs to be specific but also representative of the topic of the webpage it's supporting. Get the idea so far? Here are a few important keys to writing effective image alt text:

  • Describe the image, and be specific. Use both the image's subject and context to guide you.
  • Add context that relates to the topic of the page. If the image doesn't feature a recognizable place or person, then add context based on the content of the page. For example, the alt text for a stock image of a person typing on a computer could be "Woman optimizing WordPress website for SEO" or "Woman researching free blogging platforms," depending on the topic of the webpage.
  • Keep your alt text fewer than 125 characters. Screen-reading tools typically stop reading alt text at this point, cutting off long-winded alt text at awkward moments when verbalizing this description for the visually impaired.
  • Don't start alt text with "picture of..." or "Image of..." Jump right into the image's description. Screen-reading tools (and Google, for that matter) will identify it as an image from the article's HTML source code.
  • Use your keywords, but sparingly. Only include your article's target keyword if it's easily included in your alt text. If not, consider semantic keywords, or just the most important terms within a longtail keyword. For example, if your article's head keyword is "how to generate leads," you might use "lead generation" in your alt text, since "how to" might be difficult to include in image alt text naturally.
  • Don't cram your keyword into every single image's alt text. If your blog post contains a series of body images, include your keyword in at least one of those images. Identify the image you think is most representative of your topic, and assign it your keyword. Stick to more aesthetic descriptions in the surrounding media.
  • Review for spelling errors. Misspelled words in image alt text could hurt the user experience or confuse search engines crawling your site. You should review alt text like you would any other content on the page.
  • Don't add alt text to every image. You should add alt text to most images on a webpage for the sake of SEO, UX, and accessibility — however, there are exceptions. Images that are purely decorative or are described in text nearby, for example, should have an empty alt attribute. For a more detailed breakdown of when to add alt text and when to not, check out this decision tree.

HubSpot uses the information you provide to us to contact you about our relevant content, products, and services. HubSpot will share the information you provide to us with the following partners, who will use your information for similar purposes: RYTE. You can unsubscribe from communications from HubSpot at any time. For more information, check out HubSpot's Privacy Policy. To unsubscribe from RYTE's communications, see RYTE's Privacy Policy.

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (12)

Complete SEO Starter Pack

An introductory kit to optimize your website for search.

  • Increase your organic traffic.
  • Plan your keyword strategy.
  • Debunk SEO myths.
  • Build a blog strategy.

Loading your download form

You're all set!

Click this link to access this resource at any time.

Access now

Learn more

How Alt Text Affects SEO

According to Google, alt text is used — in combination along with computer vision algorithms and the contents of the page — to understand the subject matter of images.

Alt text, therefore, helps Google to better understand not only what the images are about but what the webpage as a whole is about. This can help increase the chances of your images appearing in image search results.

With Google’s rollout of Search Generative Experience (SGE), high-quality and contextual alt text ensures your content is in the mix of the new AI-powered snapshot of key information.

For example, Google notes that its SGE can give people a well-rounded shopping experience with noteworthy options, product descriptions, pricing, and images in one single snapshot. If your product images have descriptive and specific alt text, you give search engines the context to know when to surface your product as a high-quality choice in someone's results.

When creating content on a topic, consider how your audience might prefer to find answers to their questions on that topic. In many cases, Google searchers don't want the classic blue, hyperlinked search result — they want the image itself embedded inside your webpage.

For example, a visitor looking up how to remove duplicates in excel might prefer a screenshot so they can understand how to complete the task at a glance.

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (13)

Image Source

Because this image has optimized alt text, it appears in image search results for the longtail keyword "how to remove duplicates in excel." Since the post also appears in the web search results for the same keyword, visitors could land on the blog post through these two different channels.

Adding Image Alt Text to Your Website

So, where do you start when developing alt text for your blog posts and web pages? Consider performing a basic audit of your existing content to see where you can incorporate alt text into previously untagged pictures. Watch to see how your organic traffic changes among the pages that you give new alt tags.

The more images you optimize, the better your SEO strategy will be moving forward.

Editor's note: This post was originally published in September 2018 and has been updated for comprehensiveness.

Topics: Technical SEO

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO (2024)

FAQs

Image Alt Text: What It Is, How to Write It, and Why It Matters to SEO? ›

Google and other search engines use alt text to determine what images portray (or link to). This can enhance their understanding of your content and therefore lead to higher rankings. Alt text is particularly helpful for image SEO—i.e., ranking high in Google Images and other image results.

Why is image alt text important for SEO? ›

Google and other search engines use alt text to determine what images portray (or link to). This can enhance their understanding of your content and therefore lead to higher rankings. Alt text is particularly helpful for image SEO—i.e., ranking high in Google Images and other image results.

How do you write alt text for SEO? ›

Write Good Alt Text
  1. Add alt text all non-decorative images.
  2. Keep it short and descriptive, like a tweet.
  3. Don't include “image of” or “photo of”.
  4. Leave alt text blank if the image is purely decorative.
  5. It's not necessary to add text in the Title field.

What is alt text description in SEO? ›

'Alt text' is a contraction of 'alternative text'. It's a short written description of an image, which makes sense of that image when it can't be viewed for some reason.

What is the alt in IMG? ›

The required alt attribute specifies an alternate text for an image, if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).

Does Google care about alt text? ›

Google uses alt text along with computer vision algorithms and the contents of the page to understand the subject matter of the image.

What is the alt image attribute for SEO? ›

Alt text (or alternative text) is a written description of an image. SEOs sometimes refer to alt text as “alt attributes” or “alt tags.” Optimized alt text is crucial in getting Google to rank your images on Google Images. That's because alt text lets you tell Google what the image shows.

What is an example of image alt text for SEO? ›

For example, the alt text for a stock image of a person typing on a computer could be "Woman optimizing WordPress website for SEO" or "Woman researching free blogging platforms," depending on the topic of the webpage. Keep your alt text fewer than 125 characters.

How do I write alt text? ›

How to Write Clear, Descriptive Alt Text
  1. Don't begin with "Image of..." ...
  2. Examine the image closely. ...
  3. If the image is linked, write alt text that describes the link's purpose. ...
  4. Include the text in the image. ...
  5. Determine if the image is complex.

How do you write a good alt? ›

The 10 Best Tips on How to Write Good Alt Text
  1. Be Specific in the Description. ...
  2. Add Context. ...
  3. Keep your alt text short. ...
  4. Avoid using “image of…” or “picture of…” ...
  5. Limit the use of keywords. ...
  6. Avoid copying the image caption. ...
  7. Check for spelling mistakes. ...
  8. Avoid including an alt text for decorative images.
Jan 11, 2022

What is the difference between alt text and image description SEO? ›

Image descriptions provide much more detailed description than alt text, allowing the user to learn more about what is in the image, beyond alt text. Alt text gives the user a short condensed description, while long image descriptions provide explicit detail.

How long should alt text be? ›

When adding an Alt Text it's important to keep it concise (around of 140 characters) yet descriptive. With a 140 character limit, it is unnecessary to start the Alt Text with "image of", "graph of", "photo of", etc. A screen reader will recognize the file as an image and let the user know for you.

What is the difference between alt tag and alt text? ›

An alt tag is an HTML attribute applied to image tags to provide a text alternative for the image. They are useful for visitors who cannot see the image, such as people with visual impairments. Alt tags are different from alt text, which is the text that appears when you hover over an image.

What characters are allowed in alt text? ›

The alt text

No special characters. This includes UTF-8 characters such as unencoded curly quotes, as well as HTML Character Entities. No HTML. No more than 125 characters.

Do you need alt for IMG? ›

If you're using elements purely for decoration, you may actually hurt accessibility by writing an alt tag — but you still need to include an empty (or null) alt tag. In other words, you must include the alt attribute when using the HTML <img> element, even if you're not providing a text description of the element.

How do I add alt text to an image? ›

To add alt text to a picture, shape, chart, or SmartArt graphic, right-click on the object and choose Format Picture. In the Format Picture panel, choose the Layout and Properties icon. Then choose Alt Text. Add a title for your object, then a description.

Do image tags help SEO? ›

It can improve your SEO. When you tag your images with descriptive keywords, it helps Google and other search engines understand what the image is about. This can help your content rank slightly higher and enable your images to appear in image search results.

Why are image titles important in SEO? ›

Title tags provide search engines with additional context about the image content, aiding them in comprehending the image better. This understanding can contribute to better indexing and potentially improved rankings in relevant searches, including image search.

Is alt text important for SEO Instagram? ›

Yes, ALT text on Instagram can improve post discoverability. It provides context to what's depicted in the image, helping Instagram's algorithm understand and categorize the content more effectively, which can increase visibility in search results within the app and on external search engines.

Top Articles
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 6140

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.