Check the alt text of a page’s images

Enter the address of a page, or paste its HTML: the tool lists every image with its alt attribute, dimensions, format and surrounding link, then flags missing, empty or suspicious alt text.

The address goes to the nemociment.fr server, which reads the page’s HTML and returns only the list of its images. Nothing is kept.

Paste HTML instead

The code is analysed by your browser and sent nowhere. Relative addresses are left as they are, with no preview.

Result

Enter an address or paste HTML to see the list of images.

How to use the tool

Enter the address of a public page and click “Check”. The tool’s server downloads the page’s HTML, pulls out the img tags and returns only the list of images, not the page. For a page that is not live yet, or sits behind a login, open “Paste HTML instead”: the analysis then runs in your browser and nothing is sent.

Each row of the table shows a preview of the image, its full address, the state of the alt attribute (missing, empty or its text), then what the tool found: declared width and height, the loading attribute, format from the file extension, whether it sits in a picture element, and the link around it. The last column holds the remarks. The “Show only images with a remark” box hides rows without an alert, and the CSV button exports the whole table.

The tool lists up to three hundred images per page. The tools on this site accept twenty requests per ten-minute window and per visitor, all tools combined.

The tool’s remarks

Each remark rests on Google or W3C documentation, except two rules the tool sets itself and says so.

Dimensions, the loading attribute and the format are shown without a verdict. Only Google’s documentation on format is used: it lists BMP, GIF, JPEG, PNG, WebP, SVG and AVIF and asks that the file extension match the file type.1

Empty alt or missing alt

The two cases do not say the same thing. A missing alt leaves the question open: nobody knows whether the author forgot the image or judged it irrelevant. An empty alt, written alt="", declares the image decorative and tells assistive technology it can skip it.

The W3C decision tree sorts images into five families.2 A decorative image gets an empty alt. An informative image gets a brief description of what it adds. An image of text repeats that text. A functional image, an icon or a button, states its function, destination or action. A complex image, such as a chart, gets a short alt and the full information elsewhere on the page.

WCAG success criterion 1.1.1, level A, requires an equivalent text alternative for any non-text content, and expects pure decoration to be ignored by assistive technology.3 Adding text to such items gets in the way of screen reader users. Choosing between decorative and informative remains the author’s judgment, based on why the image is on the page.6 The tool cannot make that call for you.

Writing a useful alt

Google asks for information-rich content that uses keywords appropriately and in the context of the page.1 Its documentation gives four examples: no alt is a bad example, an alt stuffed with keywords is another, “puppy” is better, and “Dalmatian puppy playing fetch” is best. Keyword stuffing creates a poor user experience and may make the site look like spam.

The W3C describes the alt of an informative image as a short phrase or sentence, without setting a limit in words or characters.6 It adds that the text is typically not a literal description of the image but its meaning on the page. A product photo does not carry the same alt on a product page and in a blog post. That is why the tool shows no length verdict.

Google adds that images should sit near relevant text, on a page whose subject matches the image.1 For the sharing image, the og:image:alt Open Graph property plays the same role; the meta tags and Open Graph generator prepares it.

An image inside a link

When an image is a link, its alt becomes the name of the link. Google notes that the alt text then serves as anchor text.1 The W3C asks a simple question: would the link be hard or impossible to understand without the image? If so, the alt describes the destination or action. If the image repeats real text next to it, such as a logo followed by the company name in the same link, the alt stays empty.2

The W3C’s H2 technique recommends putting the icon and the text in a single a element, with an empty alt on the image, so keyboard and screen reader users do not meet two identical links side by side.5 The tool therefore does not flag an empty alt in a link that holds text.

What the tool does not see

The tool reads the HTML as the server sends it. It does not see images added by JavaScript after loading, nor CSS background images, which the W3C names as an alternative for decorative images.2 Inline SVG, canvas elements and image-type buttons are not listed. For a page that builds its images in the browser, open the developer tools, copy the HTML of the rendered page and paste it into “Paste HTML instead”.

For lazy-loaded images, the tool reads the address from src, then data-src, data-lazy-src, data-original, and failing that the first address of srcset. It does not judge the quality of an alt: a text that looks fine to a machine can miss the point, and only a human sees it. The weight, real dimensions and metadata of one particular file belong to another tool, the image metadata reader.

Frequently asked questions

Does every image need an alt?

Yes, the attribute must be present. It holds a description for images that carry information, and stays empty, alt="", for purely decorative ones.2

Does an empty alt hurt SEO?

For a decorative image, an empty alt is what the W3C asks for. For an image that carries information, it takes that information away from screen reader users and leaves the page without a description that Google lists among its best practices.1

How long should an alt be?

The W3C speaks of a short phrase or sentence and sets no numeric limit.6 The tool therefore shows no length verdict.

Can I put keywords in the alt?

Yes, when they truly describe the image and fit the context of the page. Google advises against filling alt with keywords and gives a plain list of words as a bad example.1

What should a logo that is also a link have as alt?

If the company name is written next to it in the same link, an empty alt is enough. With no text next to it, the alt describes the link’s destination, for example “Home”.2

Does the tool see CSS or JavaScript images?

No. It reads the HTML sent by the server. For a page built in the browser, paste the HTML of the rendered page into “Paste HTML instead”.

Sources

The passages of this page that rest on a source point to one of these references.

  1. Google, “Google Image SEO best practices”, Google Search Central. developers.google.com ↑
  2. W3C WAI, “An alt Decision Tree”, Images Tutorial. w3.org ↑
  3. W3C, “Understanding Success Criterion 1.1.1: Non-text Content”, WCAG 2.2. w3.org ↑
  4. W3C, “Failure of Success Criterion 1.1.1 due to using text alternatives that are not alternatives (e.g., filenames or placeholder text)”, technique F30. w3.org ↑
  5. W3C, “Combining adjacent image and text links for the same resource”, technique H2. w3.org ↑
  6. W3C WAI, “Informative Images”, Images Tutorial. w3.org ↑

A site with hundreds of images to rework?

Checking alt text is part of the SEO support I offer: a page-by-page audit, then texts written for every image that needs one. I reply within 24 business hours.

Contact me