
Automatically generate SEO-friendly alt text and media captions based on filenames. Boost accessibility and save time.
| Author: | madebysaad (profile at wordpress.org) |
| WordPress version required: | 5.2 |
| WordPress version tested: | 6.8.12 |
| Plugin version: | 1.0.0 |
| Added to WordPress repository: | 03-07-2025 |
| Last updated: | 11-11-2026 |
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | https://madebysaad.com/auto-alt-text-from-fil... |
| Total downloads: | 825 |
| Active installs: | 50+ |
![]() Click to start download |
|
Auto Alt Text From File Name fills the alt text of new images from their file name, and can caption audio, video and documents the same way. It is a starting point for sites whose files already have descriptive names. It is not a substitute for alt text written by a person.
red-running-shoes.jpg becomes "Red running shoes". `IMG_1234.jpg` gets nothing, because the name says nothing about the picture.
What it does
- Fills alt text for new images when the field is empty. Existing alt text and captions are never overwritten.
- Optionally writes a caption for audio, video and documents.
- Mass Update fills empty fields in the existing Media Library and reports how many items it changed and skipped.
- Uses the original file name: no “-scaled”, “-rotated” or edit numbers, no “-1” for a second copy, accents kept.
- Skips camera, screenshot, messenger and number-only names.
- Leaves site icons, logo and header crops alone, and keeps WordPress’s own alt text for the site logo.
- Alt text added later by an importer replaces the generated text.
- Templates per file type and per format, for example
{filename}orProduct photo: {filename}. An empty template writes nothing. - No account, no API key and no outside requests.
For developers
aatf_generated_textfilters the final text. Return an empty string to skip the file. Arguments: text, attachment ID (0 while a caption is prepared before the attachment exists), source name.aatf_junk_patternsfilters the list of regular expressions that mark a name as meaningless.
Screenshots
FAQ



