Meregate.com
Saturday, November 14, 2026
Home โ€บ SEO โ€บ What Is an Image Sitemap? A Simple Guide (2026)

What Is an Image Sitemap? A Simple Guide (2026)

What Is an Image Sitemap? A Simple Guide (2026)

An image sitemap is a file that tells Google where the images on your website live. It is a normal XML sitemap with extra lines for images. Each page entry can list the images on that page, so Google can find pictures it might otherwise miss.

Last updated: November 2026

Most of the time, Google finds your images on its own. It crawls your pages and sees the images in the HTML. But some images never show up in the page code. They load through JavaScript, sit inside galleries, or appear only after a visitor clicks something. Google may never see those. That is the problem an image sitemap solves. It hands Google a direct list of your image URLs, so nothing important stays hidden.

What goes inside an image sitemap

An image sitemap is built on the same XML format as a regular sitemap. Each page gets a <url> entry, and inside it you add one <image:image> block per image. Each block has a required line and a few optional ones:

  • <image:loc> (required): the full URL of the image file, such as https://example.com/images/blue-widget.jpg.
  • <image:title> (optional): the title of the image.
  • <image:caption> (optional): a short caption that describes what the image shows.
  • <image:geo_location> (optional): the place shown in the photo, useful for travel or location photos.
  • <image:license> (optional): a link to the license for the image.

One page entry can list up to 1,000 images. That limit is per page, not per site, so even a large photo gallery fits. Here is what a small entry looks like:

<url>
  <loc>https://example.com/blue-widget/</loc>
  <image:image>
    <image:loc>https://example.com/images/blue-widget.jpg</image:loc>
    <image:title>Blue widget on a white background</image:title>
    <image:caption>Our best-selling blue widget, front view.</image:caption>
  </image:image>
</url>

If you already know what alt text is, think of the image sitemap as the other half of the job. Alt text tells Google what an image shows. The image sitemap tells Google where the image lives. Both help your pictures show up in Google Images.

Image sitemap vs regular sitemap

A regular sitemap lists your pages. An image sitemap lists your images, page by page. You do not need two separate files. You can add image entries to the sitemap you already have. Many sites do it that way.

A separate image sitemap file is also fine. Some large sites keep one, often named image-sitemap.xml, because it is easier to manage. Either way works. Google reads both. The choice is about what is easier for you to keep up to date.

There is one more option. You can also list images in an RSS, mRSS, or Atom feed. Google accepts those too. But the XML sitemap is the simplest choice for most sites, because the tools below can build it for you.

When do you need an image sitemap?

Not every site needs one. Here are the cases where it helps most:

  • Images load with JavaScript. If your photos appear only after a script runs, Google may not see them during a normal crawl. An image sitemap points Google straight to the files.
  • You run an image gallery or portfolio. Galleries often load pictures on click. The sitemap makes sure every photo is listed, even the ones a crawler never clicks to.
  • You run an online store. Product photos drive clicks from Google Images. Listing them helps each product page show its images in image search.
  • Your site is new. New sites get crawled less often. A sitemap with images gives Google a clear map from day one, instead of waiting for it to find everything on its own.
  • Your images matter for traffic. If people find you through image search โ€” recipes, products, travel photos, infographics โ€” the sitemap is worth the small effort.

When do you not need one? If you run a small blog with a few images per post, and your images are plain <img> tags in the page HTML, Google will find them without help. In that case, good image file names for SEO and clear alt text matter more than a sitemap.

How to create an image sitemap

CSS code on a computer screen
Source: Wikimedia Commons

Most WordPress sites never need to build one by hand. The popular SEO plugins already do it.

With Rank Math or Yoast

If you use Rank Math or Yoast SEO, your images are most likely already in your sitemap. Both plugins add image entries to the sitemap they generate. You can check by opening your sitemap in a browser โ€” look for yoursite.com/sitemap_index.xml โ€” and searching for image:image. If you see those tags, you are done. No extra work needed.

If your plugin has a setting for it, make sure image sitemaps are turned on. In Rank Math, it sits under Sitemap Settings. In Yoast, images are included by default and there is no switch to turn off.

By hand

If you do not use a plugin, you can write the file yourself. Start from your normal sitemap and add <image:image> blocks under each page, as in the example above. Save it as sitemap.xml or image-sitemap.xml and upload it to the root of your site. If your site is large, split it into more than one sitemap file and list them all in a sitemap index file.

Keep the file fresh. When you add new images, add them to the sitemap. When you delete a page or an image, remove it. A sitemap full of dead links does more harm than good, because Google starts to trust it less.

With a sitemap generator

Online sitemap generators can build the file for you. They crawl your site, find the images, and give you an XML file to upload. This works well for small static sites. Check the output before you upload it, though. Generators sometimes miss JavaScript-loaded images โ€” the very images you most want listed.

How to submit it to Google

A computer monitor displaying a screen
Source: Wikimedia Commons

Once the file is on your site, tell Google about it in Search Console:

  1. Sign in to Google Search Console and pick your site.
  2. Open Sitemaps in the left menu.
  3. Type the sitemap URL, such as image-sitemap.xml, and click Submit.
  4. Wait a day or two, then check the status. Google will show how many URLs and images it found.

If you added image entries to your main sitemap instead of a separate file, submit that sitemap the same way. You only need to submit it once. Google re-checks it on its own after that.

You can also check whether your images are indexed. In Search Console, use the URL Inspection tool on a page and look at the images Google found on it. Or search Google Images for your site with a query like site:example.com and see which pictures show up.

Does an image sitemap help you rank?

An image sitemap does not push your pages higher in normal search results. It is not a ranking factor. What it does is help Google find and index your images. That matters for Google Images traffic. If your images are indexed, they can show up in image search and bring visitors to your site.

Think of it as a map, not a boost. A map does not make the trip faster, but it stops you from missing the turn. For image-heavy sites, that is enough to make it worth doing.

Common mistakes to avoid

  • Listing images Google cannot reach. If an image is blocked by robots.txt or sits behind a login, do not list it. Google will try to fetch it, fail, and trust your sitemap less.
  • Using relative URLs. Always use full URLs, starting with https://, for both the page and the image.
  • Forgetting to update it. A sitemap is only useful if it matches your site. Set a reminder to check it when you add a new gallery or product range.
  • Listing the same image on every page. A logo or a banner that appears on all pages does not need to be listed on all of them. List each image on the page where it matters most.
  • Expecting instant results. Google may take days or weeks to crawl the new entries. Submit the sitemap, then check back later.

Frequently asked questions

Do I need an image sitemap if I use Rank Math or Yoast?

Probably not. Both plugins add your images to your sitemap by default. Open your sitemap and search for “image:image” to confirm. If the tags are there, your images are already listed.

Can I put images in my normal sitemap?

Yes. You do not need a separate file. Add <image:image> blocks to the page entries in your existing sitemap. A separate image sitemap is only a matter of preference.

How many images can I list per page?

Up to 1,000 images per page URL. That is plenty for almost every page, including large galleries. If a page somehow has more, split the images across more than one sitemap file.

Will an image sitemap get my images into Google Images?

It helps Google find them, but it does not guarantee they will show up. Google still picks which images to show based on quality, relevance, and the page around them. Good file names, clear alt text, and fast loading all help too โ€” which is why it pays to compress your images for your website before you list them.

Do image sitemaps work for videos too?

No. Videos use a separate format called a video sitemap, with <video:video> tags. The idea is the same โ€” a list that helps Google find media โ€” but the tags are different.

An image sitemap is a small job with a clear payoff for image-heavy sites. If your pictures load through JavaScript, live in galleries, or sell your products, list them. It takes a few minutes, and it makes sure Google can see the images your visitors already see. You can read the full technical rules on Google’s image sitemap documentation if you want the exact format.

Taylor Orlando

Taylor Orlando is a content writer at Meregate covering websites, SEO, and AI. Taylor breaks down complex topics into simple, practical guides that help small businesses build better websites, rank higher on Google, and get real value from AI tools โ€” no jargon, no fluff.

Related Articles