Skip to content

Black Friday 50% off your first year on all premium plugins and the Suite.

See the deals

Generate alt text from file names without AI

Can WordPress write alt text without an AI service or API key? Yes — here is how, and when it is good enough.

2 min read · Updated 14 November 2026

Most alt text tools today send every image to an AI service. That costs money per image, needs an API key, and sends your media to a third party. For a lot of sites there is a simpler answer: the information is already in WordPress.

Where good alt text already hides

A product photo called oak-dining-table-six-seater.jpg, uploaded to a post titled “Oak dining tables”, already says what it shows. Turning that into “Oak Dining Table Six Seater” needs text clean-up, not image recognition.

How to do it in WordPress

  1. Install ByteKeel PixTag — it is free and runs entirely on your server.
  2. Choose Filename-based or Hybrid under ByteKeel PixTag › Settings.
  3. Run the Media Library bulk action or the Bulk Processor after adding images (no per-run or daily limit); ByteKeel PixTag Pro writes alt text automatically on upload.
  4. Fill in existing images with the Generate Alt Text bulk action in Media › Library.
  5. Use a template such as %posttitle% %filename% when file names alone are too short.

The exact clean-up rules are in How file names become alt text. Note that digits are removed, so write “six”, not “6”, in file names where the number matters.

When you do need AI

File names cannot describe what they do not mention. If your library is full of IMG_1234.jpg and DSC0042.png, the image itself has to be looked at. That is what ByteKeel PixTag Pro adds: alt text written by OpenAI or Anthropic Claude from the picture, with your own API key.

To have this happen on every upload without clicking anything (a ByteKeel PixTag Pro feature), see Automatically generate alt text in WordPress. When file names are not good enough, Filename-based alt text vs AI vision compares the two methods with real examples.

Frequently asked questions

Is alt text from file names good for SEO?

Yes, when the file names are descriptive. Search engines read alt text to understand an image, and a clean description such as “Oak Dining Table Six Seater” is exactly what they look for. Keyword-stuffed or empty alt text is what hurts.

Will it overwrite alt text I wrote myself?

Not unless you ask it to. The Media Library bulk action and the Bulk Processor’s default scope skip images that already have alt text. The scope “All images, replacing existing alt text” and the Regenerate button on a single image do replace it.

Does it send my images anywhere?

No. ByteKeel PixTag works offline; it only reads data your WordPress site already has.

Did this answer the question? No — open a support request