Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

AI Generated Images for SEO: How to Set Them Up So They Rank

Learn how to use AI generated images for SEO: file names, alt text, WebP formats, IPTC metadata, sitemaps and the checks to run before you publish.

Published on
19/11/2026
Updated on
19/11/2026
Reading time
18 min
AI Generated Images for SEO: How to Set Them Up So They Rank

Tools

On this page

In short

AI generated images do not hurt your SEO by themselves. Google's guidance judges the page and what it does for the reader, not the tool that drew the picture. What matters is the job the image does: it must match its section, show something true, load fast, and carry a real file name, alt text and metadata. Brief the image from the section, check every detail it shows, then name, compress and describe the file before you publish.

Want to go further? Ask

Quick quiz

How should you use AI in your marketing?

Question 1 of 425%
How do you use AI today?

What Google reads in an image

An image sends signals to search engines even when nobody clicks it. Four of them carry most of the weight. Each one has its own job, and a generator that writes nothing for you leaves each one empty.

SignalWhere it livesWhat it tells search engines
File nameThe image URLThe subject of the file, in a few words
Alt textThe alt attribute of the img tagWhat the image shows, for screen readers and for search
Nearby textThe paragraph, the caption and the image titleThe subject and the context of the image
MetadataData embedded in the fileHow the image was made, and where it may be shown

Google's image SEO guidance calls the alt text the most important attribute for giving an image more metadata. It also says to place images near relevant text. Those two points decide most of the outcome for a blog article. The file name and the embedded metadata come next.

Image search is a separate channel. Google Images and Google Lens rank pictures on their own, and a person who searches for a picture has a different intent from a reader who came for an article. If that is your goal, start with the image search optimization guide. This article is about the page: images that help the reader, support the text and do not weaken it. For the general method, read the image SEO guide. This one stays on what changes when the image is generated: the brief, the checks for invented details, the metadata and the disclosure.

Does Google penalize AI generated images?

No, not for being AI generated. Google's guidance on generative AI content (Google Search Central) names spam policies as the risk. It says that using generative AI tools to generate many pages without adding value for users may violate those policies. It also asks you to meet the Search Essentials standards when you publish generative AI content on your site.

The test for an image is the same as the test for a paragraph. Ask whether the image belongs to its section, whether it shows something the reader needs, and whether you would still use it if the tool did not exist. The article on AI content for SEO applies the same logic to the words.

Decoration or working image

Decoration
  • The same generic picture on many pages
  • Unrelated to the point of the section
Working image
  • Matches the point of the section
  • Explains a step, a result or a structure

The same guidance adds a point most teams miss. It says that metadata, including alt text for images, can appear in Search results, and that it should be reviewed for accuracy. A generator writes alt text in seconds, so the review is your job, not the tool's.

Illustration of a generated image moving through checkpoints before it is published on a web page
The image pipeline: brief, generate, check, name, compress, describe, publish.

Four ways to get an image, and when each one fits

Generating is one of four sources. Each one has a different job, cost and risk. Pick the source first, then write the brief. A generated image is the wrong choice when a photo of the real product would prove more.

SourceBest forMain riskEffort
AI generatedConcept visuals, simple custom diagrams, scenes no photo bank offersGeneric look, invented labels, wrong arrowsMedium, because each image needs a check
Stock photoPeople, places, a general moodThe same photo appears on many other sitesLow, but you must check the licence
Your own or customer photosProducts, results, proof of experienceHard to get, and you need written permission to show peopleHigh at the start, then low
Screenshot or your own diagramTutorials, step-by-step guides, comparisonsGoes out of date when the interface changesMedium

Generate with AI

Principle: you describe the image and a model draws it. When to use it: concept visuals, diagrams built from simple shapes, scenes that no photo bank offers. Advantages: fast, cheap per image, and exactly the subject you need. Limits: a generic style when the prompt is loose, invented details such as fake labels, and a look that can resemble other sites. Example: a blue diagram of four connected pages, made for an article on internal links. Give the model the aspect ratio, the layout, the palette in hex, the position of each element and what must stay out. A loose prompt returns a loose picture.

Use a stock photo

Principle: you license a photo from a bank and place it in the article. When to use it: people, places, a general mood, or a broad cover image. Advantages: real photography, quick to find. Limits: many other sites use the same photo, and a stock photo rarely explains anything. Read the licence before you publish, because the licence sets where and how long you may use the image. Example: a photographer reviewing printed photos at a desk, as a cover for an article about checking visuals.

Use your own or customer photos

Principle: you show the real product, team or result. When to use it: product pages, case studies, proof of a result. Advantages: the strongest sign of experience, and nobody else has the same picture. Limits: it takes time, and you need written permission before you show a person. Example: a before and after view of a product page you rewrote, with the real screen and the real numbers from your own analytics.

Make a screenshot or a diagram

Principle: you capture a real interface or draw a diagram yourself. When to use it: tutorials, step-by-step guides, comparisons. Advantages: accurate and specific, and readers trust it. Limits: it goes out of date when the interface changes, so put a review date in your publishing calendar. Example: a screenshot of a settings page, with the one field you describe highlighted.

Tutorial step: which image?

Generated diagram
  • Fast to make, custom layout
  • Labels and arrows can be wrong
Real screenshot
  • Shows the real interface
  • Needs a new capture after each change

For a tutorial, the screenshot wins, because the reader will click the button that is actually on the screen. For a concept, a generated diagram wins, because no screenshot shows an idea. Mix them when a section needs both.

The image pipeline, step by step

Treat the image as a deliverable with five steps. The block below is the short version. Each step has detail under it.

The five-step image pipeline

  1. Write the brief from the sectionDescribe the one idea the section explains, not the article title.
  2. Generate, then keep oneCreate three to five versions and keep the one that explains the idea fastest.
  3. Check what it showsRead every label, arrow, number and logo against your text.
  4. Export and name the fileExport at display size and give it a short, descriptive name.
  5. Publish with alt text and metadataWrite the alt text in context, add a caption if needed, and keep the metadata.

Step 1: write the brief from the section

Do not brief the model with the article title. Brief it with the one idea the section explains. A useful brief names the layout (diagram, photograph, flat illustration), the aspect ratio (16:9 for a blog header), the palette (for example #4383f2 with white), the composition (what sits left, what sits right, what is in the centre) and what must stay out. Ask for no text and no logos. You add the labels yourself, in the layout, so you control their spelling and their accuracy.

Example

A flat diagram of four blue pages linked to one central guide page by thin glowing lines. The guide sits in the centre. White background, no text, no logos, no people, 16:9.

Step 2: generate several versions and keep one

Generate three to five versions and keep the one that explains the idea fastest. Reject images with odd hands, faces that look wrong, extra arrows and details that add nothing to the point. Keep the rejected ones in a folder. They show which prompt words cause trouble, and you reuse the good words in the next brief. Change one thing per run, such as the composition, so you learn what caused the change.

Step 3: check what the image says

Read the image as a reader would. Check every label, arrow, number and logo against your text. Generated pixels often include text that looks right and is wrong: a fake menu name, a misspelled word, a button that exists nowhere. If the image shows a number, that number must come from a source you have read, or the image must not show it. A wrong image teaches a false point in the first seconds, which is worse than no image.

Step 4: export and name the file

Export at the size the image is shown on the page, not at the generator's full size. A 16:9 header displayed at 1200 pixels wide needs no 4000 pixel master on the page. Keep the master file in another folder. Name the file after its job, in lowercase with hyphens, for example ai-seo-internal-linking-diagram.webp. The file work section explains the details.

Step 5: publish with alt text, caption and metadata

Write the alt text for the image in its place in the article. Add a caption when the image shows a result or a step. Keep the embedded metadata in the file. Then check the page on a phone and confirm that the image appears without a visible gap while it loads.

File names, formats and compression

The file is the first thing a crawler reads. Three details decide whether it helps: the name, the format and the weight.

The same image, before and after the file work

Before
  • Name from the generator, such as IMG_4471.png
  • Full size PNG, far larger than its display
  • No alt text
After
  • Descriptive name, such as ai-seo-internal-linking-diagram.webp
  • WebP exported at display size
  • Alt text written in context

File names

Google's image guidance asks for filenames that are short but descriptive, and it says to avoid generic names such as image1.jpg, pic.gif or 1.jpg when possible. Use the words a person would type to find the picture. ai-seo-internal-linking-diagram.webp is better than diagram-final-v3.png. Do not stuff the name with keywords. One clear name is enough.

Check the extension too. The same guidance recommends that the filename extension matches the actual file type. Generators sometimes save a file in one format and you rename it to another. A WebP file named .png can fail in some tools, so run the file through a converter, not a rename.

Formats

Google's guidance lists BMP, GIF, JPEG, PNG, WebP, SVG and AVIF as supported formats. For photos and illustrations, WebP or AVIF gives smaller files at a similar quality. PNG suits diagrams with sharp edges and small text, but a PNG can be far heavier than a photo, so check its weight. Most image generators output raster files, so SVG rarely applies to a generated image.

WebP against older formats

25 to 34%smaller than a comparable JPEG at equivalent quality (lossy WebP)
26%smaller than a PNG (lossless WebP)

Source: Google for Developers, WebP compression study

Lossless WebP keeps transparency, which matters for a diagram with a transparent background. Google's WebP page says it costs about 22 percent more bytes in lossless mode, so test the file before you choose it for every image.

Use the picture element to offer a modern format with a fallback. The example below uses placeholder file names. The img element carries the alt text and the size, so the layout does not jump while the page loads.

<picture>
  <source srcset="/images/ai-seo-internal-linking-diagram.avif" type="image/avif">
  <source srcset="/images/ai-seo-internal-linking-diagram.webp" type="image/webp">
  <img src="/images/ai-seo-internal-linking-diagram.png" alt="Diagram of four blue pages linked to one central guide, with arrows showing the internal links." width="1600" height="900">
</picture>

Leave the main image at the top of the page without lazy loading. It is usually the largest element the reader sees first, and delaying it makes the page feel slow. Lazy loading suits the images further down the article.

Compression

Images are often the largest part of a page's weight, which is why they slow pages down. Compress each file to the smallest size that still looks right at the size it is shown. Check the result at 100 percent zoom and at phone width, not on the large screen where you designed it. Compression tools keep the original dimensions, so resize the file to its display width first, then compress it.

Sorank free image compressor page
Sorank's free image compressor shrinks JPEG, PNG and WebP files in your browser.

Tip

Sorank's free image compressor works in your browser, so the file is not uploaded. It tries WebP for each JPEG and PNG and keeps the smallest result. Resize the file first, because the tool keeps the original dimensions.

Alt text, captions and the text around the image

Alt text is the attribute that does the most for an image's metadata, and it is also what a screen reader reads aloud. Most AI generated images fail here. The generator writes nothing, or the tool fills the field with a generic phrase such as "image" or "AI picture", which describes nothing.

What alt text is for

Alt text replaces the image when the picture cannot be seen. It tells the reader what the image shows and why it is there. Search engines read it as one more signal about the image's subject. Alt text is not a caption, and it is not a place for keywords. The alt text guide covers the definition in more depth.

Sorank free alt text checker page
Sorank's free alt text checker finds images without a proper alt attribute.

How to write it

Describe what is in the image, in the context of its section. Keep it to one sentence. Mention text inside the image only when that text matters, and repeat that text in the body. Do not start with "image of" or "picture of", because screen readers already announce that it is an image. Sorank's free alt text checker flags alt texts longer than 125 characters, which is a practical limit for one sentence.

Warning

An alt text such as "AI SEO images internal links best AI image SEO guide" is a keyword list, not a description. Google's guidance warns that keyword stuffing results in a negative user experience and may cause a site to be seen as spam.

Example

Good: "Diagram of four blue pages linked to one central guide, with arrows showing the internal links."

Decorative images

If an image adds no information, for example a background texture or a divider, give it an empty alt attribute, written as alt="", so screen readers skip it. Do not write a description for decoration. An image you made to illustrate a point is not decorative, so it needs alt text.

Captions and the text around the image

Google's guidance says to place images near relevant text, and that the page around an image helps show its subject. Put each image next to the paragraph it illustrates. Write a caption when the image shows a result or a step, and make the caption say what the reader should see. Captions are read by people and by search engines, so keep them specific and honest.

Tip

Run your page through the free alt text checker. It finds images without a proper alt attribute, which is the fastest way to find the gaps in an older article.

Metadata and disclosure

Some image metadata is more than a detail. Google's generative AI guidance says that AI-generated images must contain metadata using the IPTC DigitalSourceType property, in its ecommerce section. The Merchant Center policy is stricter and more specific. It says that all images created using generative AI must contain metadata indicating that they are AI generated. The property is set to the value TrainedAlgorithmicMedia, from the IPTC vocabulary.

http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia

The Merchant Center policy also says not to remove embedded tags such as the IPTC DigitalSourceType property. It names the attributes where AI generated images can be used: image_link, additional_image_link and lifestyle_image_link. If you sell products, that list is the one that matters to you.

Where the rule applies, and where it does not

The tag rule applies to product images in Merchant Center. The Search documentation we checked for this article does not ask blog images to carry the tag. On a blog, the honest choice is a short credit or caption when an illustration could be mistaken for a photo of a real event. That line stops a reader from taking a diagram for a photograph.

Keep the metadata through your tools

Many resize and export tools strip embedded metadata by default. After each export, open the file with a metadata viewer and confirm that the tag is still there. If you sell products, this check is required. If you run a blog, do it anyway, because the same file may later go to a product feed.

Before you upload

  • Confirm the IPTC tag is still in the file after export
  • Check the attribute list if the image goes to Merchant Center
  • Add a credit line where an illustration could be mistaken for a photo
  • Strip the metadata to save a few bytes

Image sitemaps and crawlability

Most images are found through the page that holds them, so you do not need an image sitemap for every site. Google's guidance says an image sitemap lets you provide the URLs of images it might not otherwise discover. The page also says these sitemaps can list image URLs from other domains.

Google Search Central page on image SEO, with its guidance on alt text, file names and image sitemaps
Google's guidance on alt text, file names and image sitemaps.

When you need one

Add an image sitemap when images appear only after the page renders, for example through JavaScript. It also helps when a content delivery network serves your images from another domain, because an image sitemap can list those URLs, unlike a standard sitemap. Generated images placed in a gallery that crawlers reach late are another good case.

How to build one

Add the image namespace to the urlset tag, then list each image under the page that shows it. The example below has one page and one image.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>https://www.example.com/blog/ai-seo-internal-linking/</loc>
    <image:image>
      <image:loc>https://cdn.example.com/images/ai-seo-internal-linking-diagram.webp</image:loc>
    </image:image>
  </url>
</urlset>

Submit the sitemap in Search Console or reference it in robots.txt, then check that each image URL answers with a 200 status. Keep the sitemap in step with your publishing. The image sitemap guide covers the full syntax.

Make the image crawlable

The image should sit in an img element with a real src URL. An image that exists only as a CSS background or a canvas drawing is hard to index. Do not block the image folder in robots.txt, because a blocked folder stops Googlebot-Image from fetching the file. Check the image URL in a browser while logged out, and confirm it loads.

Common mistakes, and how to fix each one

Most image problems follow the same few patterns. Each one below says what it is, how to spot it and how to fix it.

Keyword stuffing in alt text

What it is: alt text written as a list of search terms. How to spot it: read the alt text aloud. If it does not describe a picture, it is stuffed. Run the page through the alt text checker and read the longest entries first. How to fix it: rewrite each alt text as one sentence that describes the image in its section.

Generic file names

What it is: image1.jpg, pic.gif, or the name the generator gave the file. How to spot it: sort your media library by name and look for numbers and default names. How to fix it: rename the file before upload. If the image is already linked and indexed, redirect the old URL to the new one, so existing links keep working.

Wrong file extension

What it is: a WebP file saved with a .png name, or the reverse. How to spot it: open the file with a tool that reads the real format, not the name. How to fix it: convert the file with a converter, then rename it to match the new format.

Oversized images

What it is: a full size PNG from the generator shown in a narrow column. How to spot it: compare the file's pixel size with the space it fills on the page, and check the page weight in a speed test. How to fix it: export at display size, convert to WebP or AVIF, and check the weight again.

Images far from the text they support

What it is: the image sits at the bottom of the article while the paragraph it illustrates is above. How to spot it: read the article without the images and see which picture belongs to which paragraph. How to fix it: move the image next to its paragraph, as Google's guidance asks.

Text baked into the image

What it is: labels, titles and steps drawn inside the picture. How to spot it: text inside an image cannot be selected, copied or read by a screen reader. How to fix it: keep the text in the image short, and repeat the key points in the body or in the caption.

Unchecked facts and logos

What it is: a generated diagram shows a wrong step, a fake interface or the logo of a real company. How to spot it: check every element against your source before you publish. How to fix it: rebuild the diagram by hand, or remove the element. Do not publish a logo you do not have the right to use.

Metadata stripped by the export

What it is: the file loses the tag that marks it as AI generated. How to spot it: check the file after each export, as described in the metadata section. How to fix it: change the export setting, or use a tool that keeps the metadata.

Audit list for existing articles

  • Every alt text describes the image in one sentence
  • Rename files such as image1.jpg to descriptive names
  • Check that each file's extension matches its real format
  • Export oversized images at display size
  • Check every label, number and logo against the source
  • Alt text that is a list of keywords

Where Sorank fits

If you publish many articles, the steps above add up to a lot of work. Sorank's blog article generator writes sourced articles from a keyword and adds AI images to each one. Each image comes with an alt text you can edit, and the article score checks the alt texts. You still need Step 3 from the pipeline: check what each image shows before you publish.

Sorank is one option. The steps in this guide work with any tool, or with none. Start with the free alt text checker on your current articles, and fix the gaps this week.

Checklist before you publish

Use this table as the last check. A row that fails is a row to fix before you publish.

CheckPass when
File nameIt is lowercase, short and descriptive, with hyphens between words
FormatWebP or AVIF with a fallback, or PNG for a diagram with small text, and the extension matches the format
SizeThe file is exported at display size and compressed
Alt textOne sentence describes the image in its section, with no keyword list
Nearby textThe paragraph or caption explains what the image shows
FactsEvery label, number and logo is checked against a source
MetadataThe IPTC tag is still in the file where a feed requires it
SitemapImages are listed when they load late or come from a CDN

AI generated images are an ordinary part of a page. They help when they fit the section, carry a clear name and alt text, load quickly and show nothing false. Brief the image from the section, check it, then publish it with the same care you give the text.

Frequently asked questions

Does Google penalize AI generated images?

No, not for being AI generated. Google's guidance on generative AI content focuses on spam policies and on the value a page gives the user. An image that does not fit its section adds nothing, and Merchant Center requires an IPTC label on AI generated product images.

Do AI generated images need alt text?

Yes. Google's image guidance calls alt text the most important attribute for giving an image more metadata, and screen reader users depend on it. Describe what the image shows in the context of its section, in one plain sentence, without a keyword list.

Should I label AI generated images on my blog?

The Search documentation we checked does not ask blog images to carry the Merchant Center label. A short caption or credit line helps readers when an illustration could be mistaken for a real photo. Keep the embedded metadata in the file so the choice stays open.

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Man with dark hair and beard wearing a light brown shirt speaks in front of a microphone on a podcast or recording setup.Portrait of a man with short dark hair wearing a white shirt and dark jacket, looking directly at the camera with a neutral expression.Man with short dark hair, beard, and clear glasses wearing a black t-shirt with a white circular logo, standing in front of a stone wall.Celio fabianoSmiling young woman with long brown hair wearing a red top and necklace, outdoors in a tree-filled background.Profile photo of Xavier Breull, Sorank customer
Google
Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.
5/5
+5,000
users

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel