Zero Signup ToolsFree browser tools

SEO Tools

HTML Image Alt Text Extractor

Paste HTML and list every img alt attribute. Flag missing, empty, boilerplate, filename, and overly long alt text. Export CSV, Markdown, JSON.

0 chars

Optional. Used to resolve relative src values like/img/logo.pnginto absolute URLs and to label images on the page as internal or external.

Parsing uses the browser DOMParser, so scripts inside the pasted HTML are never executed. The HTML stays in your browser.

Image counts

Total

0

Missing alt

0

Empty (decorative)

0

Boilerplate

0

Filename alt

0

Long alt

0

OK

0

Issues

0

Paste HTML to see how many <img> tags the page has and how their alt text scores.

Status guide

  • Missing alt

    No alt attribute. Screen readers may read the filename or skip the image. Always set alt, even if empty for decorative images.

  • Empty alt (decorative)

    Empty alt attribute. Correct for decorative images only. Screen readers will skip these.

  • Boilerplate alt

    Alt text uses a generic placeholder that adds no information. Replace with a sentence that describes what the image shows.

  • Filename as alt

    Alt text looks like the image filename. Most CMSs do this by default. Replace with descriptive text.

  • Very long alt

    Alt text is longer than common screen reader and SEO recommendations. Aim for one descriptive sentence.

  • OK

    Alt text looks descriptive and is a reasonable length.

Each image with its alt and status

Paste HTML on the left to see every <img> tag, with its alt text and a status flag. Try Load sample for a worked example.

Tip for decorative images: a screen reader skips an image with alt="". Use that on spacers, icons paired with text, and purely visual flourishes. For meaningful images, write one short sentence describing what the image conveys.

How to use

  1. Paste your HTML into the input on the left. Use a full page (view-source) or just an article body. The browser DOMParser does not execute any scripts in it.
  2. Optionally enter the page base URL, for example https://example.com/blog/post. This resolves relative src values like /img/logo.png to absolute URLs and labels each image as internal or external.
  3. Read the counts panel for total images plus missing, empty, boilerplate, filename, long, and OK alt counts.
  4. Filter the table by status to focus on what needs fixing, then click Copy view to grab the result as a table, src list, CSV, Markdown, or JSON.
  5. Use Copy src or Copy alt next to any row to grab a single value for your audit notes or content migration spreadsheet.

About this tool

HTML Image Alt Text Extractor parses any HTML you paste and lists every img tag inside it, with the alt attribute, title, dimensions, loading hint, and a status flag for each one. Use it on a copied page source from view-source, an article export from your CMS, or a fragment from a content audit. The parser runs in the browser through DOMParser, which builds an inert document so scripts in the pasted HTML are never executed. Each image is classified by its alt text: Missing alt for img tags without an alt attribute at all (screen readers may fall back to the filename), Empty alt for img tags with alt="" (correct for decorative images and skipped by screen readers), Boilerplate alt for unhelpful values like "image", "photo", "screenshot", or "image of:" prefixes, Filename alt for values that look like the upload filename such as "IMG_2049.jpg" or "banner-final.png", Very long alt for descriptions over 125 characters where screen readers pause and SEO tools trim, and OK for descriptive alt text within typical guidance. An optional Page base URL field resolves relative src values like /img/logo.png or ../assets/hero.jpg into absolute URLs and labels each image as internal or external to the page host, which is useful when auditing third-party CDN images. Filter the list by status to focus on what needs fixing, view the result as a table, a plain src list, CSV for spreadsheets, a Markdown table for tickets, or JSON for tooling. Useful for SEO audits, accessibility (WCAG) reviews, content migrations, image inventory work, link-rot checks against image CDNs, redesigns where alt text needs to survive a content move, and pull request reviews where you want to verify alt coverage on a new article. Everything runs locally in your browser; the HTML you paste, the alt text it contains, and the base URL all stay on your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsSEO Tools