1001Ferramentas
🖼️ SEO

Alt Text From Filename

Generate alt text suggestions for images from the file name. Improve the accessibility and SEO of your website images in seconds.

From file name to a first-draft alt

An accessibility audit flagged two hundred images with no alt text and you need somewhere to start. If whoever uploaded them named the files with any care, most of the description is already sitting there — just in slug form, with hyphens, underscores and a numeric suffix nobody wants read aloud by a screen reader.

The cleanup is straightforward: strip the extension (jpg, jpeg, png, gif, webp, svg, bmp), turn hyphens and underscores into spaces, delete every digit, collapse repeated spaces, lowercase everything and capitalize the first letter. Then it shows the suggested alt and a character count. Digit removal is the catch: it exists to kill suffixes like IMG_20240513, but it takes meaningful numbers with it — iphone-15-pro-max.jpg becomes Iphone pro max. Extensions outside that list, such as avif, are left in place.

Treat the output as a draft, never as final copy. Proper nouns lose their capitals (new-york becomes New york) and good alt text describes what the image shows in context, not what the file happens to be called. Purely decorative images should get no description at all: use an empty alt so screen readers skip them. One file at a time, no batch mode, and the whole thing computes in your browser.

Frequently asked questions

How long should alt text be?
Google publishes no hard limit. The character count is a reference point; in practice a sentence of five to fifteen words describes the image without wearing out the listener.
Why do the numbers disappear?
The cleanup strips every digit to remove camera suffixes and date stamps. If a number is part of the description, like a model or a year, put it back manually.
Does this work for decorative images?
No. Icons, dividers and background art should carry an empty alt so screen readers skip them instead of reading a useless description.

Related Tools