Alt text checker cropped

Empty alt text (alt="") is the correct choice for decorative images — screen readers skip them — so an empty alt is shown as information, not as an error. Check that the image really is decorative before leaving it empty. A missing alt attribute is different: screen readers then read out the file name instead. Alt text over about 125 characters is hard to follow, and generic words like "image" or "photo" tell a listener nothing the file name does not already say. Width and height attributes help the browser reserve space and avoid layout shift. This tool never fetches or analyzes the images themselves — it reads only the HTML you paste, and image sources are shown as text, never loaded.

What is the Alt Text Checker?

The Alt Text Checker is a free online tool that reads the HTML you paste and checks every image in it: missing alt attributes, empty alt attributes, very long alt text, potentially unhelpful generic alt text, and missing width and height dimensions where they matter. Each image is shown with its source and its alt text, and the report can be copied or downloaded.

It is made for anyone who publishes pages with images: bloggers, developers, accessibility-minded writers, and anyone who has ever wondered whether their images are actually described for the people who cannot see them. There is nothing to install and nothing to sign up for. The tool never fetches or analyses the images themselves — it reads only the HTML you paste, and image sources are shown as text, never loaded. Everything runs in your browser.

One important distinction the tool makes: empty alt text is not automatically an accessibility error. For a decorative image, alt="" is the correct choice, because screen readers skip it. The checker shows an empty alt as information, not as an error — and it is up to you to check that the image really is decorative before leaving it empty.

How to use the Alt Text Checker

  1. Paste your HTML into the box labelled “Paste your HTML”. The tool comes with a sample already loaded, containing six images with a mix of good and bad alt text.
  2. Click “Check alt text”. The tool lists every image it found, with its source and alt text, and flags the problems.
  3. Read the report. Each image is marked according to what the checker found — missing, empty, too long, generic, or missing dimensions.
  4. Copy report copies the report as text, and Download report saves it as a file. Clear empties the box, and Reset brings back the sample.

Worked example

The sample contains six images. Here is what the checker finds:

  • hero.jpg — alt text “A family cooking together in a bright kitchen”. Good: it describes what the image shows.
  • logo.png — alt text “All About HTML logo”. Good: short and descriptive.
  • chart.svg — alt text is empty (alt=""). Shown as information, not an error. If the chart is decorative, that is correct. If the chart carries information, it needs real alt text.
  • photo-1.jpg — no alt attribute at all. This is the serious one: a screen reader will read out the file name, “photo-1.jpg”, instead of describing the image.
  • banner.png — alt text “image”. A warning: the generic word “image” tells a listener nothing the file name does not already say.
  • team.jpg — alt text is a very long paragraph about the team retreat. A warning: alt text over about 125 characters is hard to follow when read aloud.

Fix the missing alt on photo-1.jpg, replace “image” on banner.png with a real description, and shorten the team.jpg alt text to a sentence or two. Run the check again and the report is clean.

Why alt text matters

Screen readers read it aloud

A blind visitor does not see your images. What they hear is the alt text. Good alt text — “A family cooking together in a bright kitchen” — tells them what the image adds to the page. Missing alt text means they hear the file name instead, which is usually meaningless. Generic alt text like “image” is barely better than nothing.

Search engines use it too

Search engines cannot see images either. Alt text is one of the signals they use to understand what an image shows, which matters for image search and for the page’s overall topic. Descriptive alt text is a small, honest SEO win — not a trick, just clear information.

Width and height prevent layout shift

When an image has no width and height attributes, the browser does not know how much space to reserve for it. The page loads, the image arrives, and everything below it jumps down. That sudden shift is annoying for readers and is measured as layout shift. Adding the dimensions lets the browser hold the space before the image loads.

Tips for writing good alt text

  • Describe what the image shows, not that it is an image. “A family cooking together in a bright kitchen” is good. “Image of a family” is not — the screen reader already says it is an image.
  • Keep it short. Aim for under about 125 characters. A sentence or two is enough. If the image needs a long explanation, put the explanation in the text around it and keep the alt text brief.
  • Leave decorative images empty — on purpose. Borders, spacers, decorative icons and background flourishes should have alt="", so screen readers skip them. But check first: if the image carries information, it needs real alt text.
  • Never leave the alt attribute out. An empty alt is a deliberate choice. A missing alt is an oversight, and the screen reader falls back to reading the file name. Always include the attribute, even when it is empty.
  • Avoid generic words. “Image”, “photo”, “picture” and “banner” tell the listener nothing. If the alt text could describe any image on the internet, it is not describing yours.

Frequently asked questions

Is empty alt text bad?

Not necessarily. Empty alt text (alt="") is the correct choice for a decorative image, because screen readers skip it. This tool shows an empty alt as information, not as an error. The question to ask is whether the image really is decorative — if it carries information, it needs real alt text.

How long should alt text be?

About 125 characters is the practical limit. Longer alt text is hard to follow when read aloud, and most screen readers start to break it up. If the image needs more explanation than that, write the explanation in the surrounding text and keep the alt text to a sentence.

What counts as generic alt text?

Words like “image”, “photo”, “picture” or “banner” on their own. They describe the kind of thing, not the thing itself. “A family cooking together in a bright kitchen” is specific; “image” could be anything.

Does the checker load my images?

No. It never fetches or analyses the images themselves. It reads only the HTML you paste, and image sources are shown as text, never loaded. Your images stay where they are.

Why does the tool check width and height?

Because width and height attributes help the browser reserve space for the image before it loads, which avoids layout shift — the page jumping around as images arrive. It is a small thing that makes pages feel much more stable.

Conclusion

Alt text is a small attribute with an outsized job: it is how blind visitors experience your images, and one of the ways search engines understand them. This Alt Text Checker reads your HTML and shows you, image by image, where the alt text is missing, empty, generic or too long — and whether the dimensions are there to stop the page jumping. Paste your HTML, fix what it finds, and check again. And when you want to audit the rest of the page’s accessibility, the WCAG Color Contrast Checker will tell you whether your text is actually readable against its background.

Related Tools