← All guides

Accessibility26 November 20266 min read

How to Check If an Image Has Alt Text (4 Quick Ways)

Four ways to check whether the images on a web page have alt text: the right-click Inspect method, a free alt text checker, a one-line browser console check and Lighthouse. Plus how to add alt text on Wix, Shopify and WordPress.

The short answer

To check one image, right-click it and choose Inspect. Your browser's developer tools open with the image's code highlighted. Look for alt="...":

  • alt="Some words": the image has alt text.
  • alt="": the image has been marked as decorative, so screen readers skip it. That is fine for decoration, and wrong for anything that carries meaning.
  • No alt at all: the alt text is missing. This is the problem to fix.

To check every image on a page at once, paste the address into our free Image Alt Text Checker. It lists each image with its alt text and flags the missing, empty and meaningless ones.

Why alt text matters

Alt text is the short written description stored in an image's alt attribute. It does three jobs:

  • Screen readers read it aloud to people who can't see the image. When it's missing, many screen readers read out the file name instead, which is how blind visitors end up hearing "IMG underscore 4032 dot jpg".
  • Browsers show it when the image fails to load, for example on a slow connection.
  • Search engines use it to understand what the picture shows. It matters most for appearing in Google Images.

Missing alt text is one of the most common accessibility failures on the web, and one of the easiest to fix. In our check of 44,992 small business homepages, 34% of all images had no alt text and 74% of sites had at least one such image (full figures).

Way 1: right-click and Inspect (one image)

This works in Chrome, Edge and Firefox on a computer.

1. Right-click the image on the page. 2. Choose Inspect (in Firefox, Inspect or Inspect Element). 3. The developer tools open with a line beginning <img highlighted. Read along it for alt=.

If the highlighted line is a <div> or <picture> rather than an <img>, look just inside it for the <img> tag. If there's no <img> at all, the picture is probably a CSS background image. Those can't have alt text, so any words that appear in them also need to be written as real text on the page.

In Safari you first need to turn on the developer menu: Safari > Settings > Advanced, then tick Show features for web developers (called "Show Develop menu in menu bar" in older versions).

Hovering over an image won't tell you. Modern browsers don't show alt text as a tooltip. A tooltip comes from the separate title attribute.

Way 2: use a free alt text checker (whole page)

Checking images one by one gets slow on a page with a gallery or a product grid. Our free Image Alt Text Checker reads the page and lists every image with:

  • its alt text, or a clear "missing" if it has none
  • a warning when the alt text is a filename (hero-banner.jpg), a placeholder word like "image" or "photo", a number, or over 150 characters
  • a note for each image with empty alt, so you can confirm it really is decorative
  • a fail for image buttons (<input type="image">) that have no alt

It needs no signup. Run your homepage, your main service or product pages, and any page with lots of photos. Most sites reuse the same templates, so a few pages show you the pattern.

One limit to know about: the checker reads the page as the server sends it. Images added later by JavaScript, such as some slideshows and social media feeds, may not be listed, so check those with Way 1.

Way 3: a one-line check in the browser console

If you don't mind a bit of code, this lists every image on the page you're looking at that has no alt attribute.

1. Press F12 (or Cmd+Option+I on a Mac) to open the developer tools. 2. Click the Console tab. 3. Paste this and press Enter:

document.querySelectorAll('img:not([alt])')

The console shows how many images match and lets you expand the list. Hover over an entry and the browser highlights that image on the page. If it says NodeList [], no image on the page is missing its alt attribute.

To list the images marked as decorative instead, use:

document.querySelectorAll('img[alt=""]')

This only checks whether alt exists. It can't tell you that alt="photo" is useless, which is where Way 2 helps.

Way 4: Lighthouse

Lighthouse is built into Chrome's developer tools (the Lighthouse tab) and also powers PageSpeed Insights. Run it with the Accessibility category ticked. If any images have no alt attribute, the report shows a failed audit called "Image elements do not have [alt] attributes" and lists them.

Lighthouse only reports the failures. It won't show you the alt text on the images that pass, so it can't catch filenames or vague one-word descriptions.

How to add or fix alt text

Wix

In the Editor, click the image and then the Settings (gear) icon. Type your description in the "What's in the image? Tell Google" box. Gallery images each have their own setting.

Shopify

For product photos, go to Products in your admin and open the product. Click the image in the Media section, add the description in the alt text field and save. Product photos usually matter most, because they appear on your collection, product and search pages.

WordPress

In the block editor, click the image in your post or page and fill in Alternative text in the block settings panel on the right. Alt text you set in the Media Library is copied in when you insert an image, so changing it there later doesn't update images already in posts. Fix those in the post itself.

Hand-coded sites

Add an alt attribute to each <img> tag:

<img src="team.jpg" alt="Our four-person team outside the Leeds office">
<img src="divider.png" alt="">

What to write

Describe what someone would need to know if they couldn't see the picture, in the context of the page. The same photo of a cake could be "Three-tier lemon wedding cake with white roses" on a bakery's product page and "Our head baker icing a cake" on its About page.

  • Keep it to a sentence or less.
  • Skip "image of" or "picture of". Screen readers already announce it as an image.
  • Never use the filename or a single word like "photo".
  • For an image of text, such as a sale banner, repeat the text.
  • For a logo, use the company name.
  • Don't stuff in keywords. A natural description is what helps people and search engines.
  • For pure decoration, use alt="" so screen readers skip it. Don't leave the attribute out.

Check the rest of the page too

Alt text is one part of accessibility. Our free accessibility checker also looks at headings, link and button names, form labels and zoom, and the free full audit checks speed, SEO, mobile and security together, with a fix for each problem it finds.

Free website check

See what's wrong with your site, and how to fix it.

Speed, Google visibility, mobile, accessibility and security in about 30 seconds. No signup.

Check my website