Products SEO & GEO Agent Paid Ads Agent Website Agent Conversion Agent
How it works Pricing FAQ Blog Book a call

Image sitemap: when you need one and how to make it

Updated · 6 min read

Short answer Most small business sites don't need a separate image sitemap: Google finds images in normal img tags, and Shopify, Wix and Yoast already add images to their sitemaps. Make one when gallery images load by script or sit on another domain. Google reads only two tags, image:image and image:loc. Submit the file in Search Console or list it in robots.txt.

Want help applying this to your business? Talk it through on a free 30-minute call.

Book a call

Do you need an image sitemap?

Usually not. A sitemap is a file that lists your site's addresses for search engines. An image sitemap adds the images on each page. Google says what it's for:

"Image sitemaps are a way of telling Google about other images on your site, especially those that we might not otherwise find (such as images your site reaches with JavaScript code)." (Google Search Central: Image sitemaps)

If your photos sit in ordinary img tags on pages your menu links to, Google can already find them. Google's sitemap overview says a site of "about 500 pages or fewer" that is well linked, without many media files you want in search, "might not need a sitemap" at all.

Your siteImage sitemap?
Service pages with a few photos eachNo
Shopify, Wix or WordPress with YoastAlready done for most images; check it (below)
Project gallery, portfolio or before-and-after slider that loads photos by scriptYes
Images served from a CDN or other domainAllowed in an image sitemap; verify that domain in Search Console
Images set as CSS backgroundsA sitemap won't fix it; Google "doesn't index CSS images"

A CDN (content delivery network) is a service that stores your images on fast servers in many places. Wanting images in Google Images is a fair reason too: Google lists "a lot of rich media content (video, images)" as one case where a sitemap helps.

Does your website builder already make one?

Check before you build anything. Most platforms put image details inside the regular sitemap, which Google accepts: "You can create a separate image sitemap or add image sitemap tags to your existing sitemap; either approach is equally fine for Google" (Google Search Central: Image sitemaps).

PlatformWhat it does today
ShopifySitemap includes each product's "primary product image" only (Shopify Help Center)
WixImage information for main pages, Stores, Events, Blog, Online Programs, Restaurants and Portfolio (Wix Help Center)
WordPress with Yoast SEOAdds images found on each post and page; some themes and page builders' images are missed (Yoast Help)
WordPress, no SEO pluginBuilt-in sitemap leaves images out; the 2020 launch note says image sitemaps "are not covered" (Make WordPress Core)

To see yours, open yourdomain.com/sitemap.xml in a browser and look for image:loc lines. If they're missing for your galleries, add a plugin or build the file. Platform choice in general: Wix, Squarespace or WordPress for SEO.

How to make an image sitemap by hand

For a site with a few dozen pages, a text editor works. Google says manual sitemaps suit "less than a few dozen URLs"; past that, use your platform or a generator.

  1. Open a plain text editor (Notepad, TextEdit in plain-text mode) and save the file as image-sitemap.xml in UTF-8.
  2. Start with Google's two required header lines: the XML line, then a urlset tag naming two namespaces, http://www.sitemaps.org/schemas/sitemap/0.9 and http://www.google.com/schemas/sitemap-image/1.1. Copy them from the example on Google's Image sitemaps page.
  3. For each page, add a url block with the page's full address in loc.
  4. Inside it, add one image:image block per photo, holding image:loc with the photo's full address, such as https://example.com/photos/kitchen-remodel-after.jpg.
  5. Close the urlset tag and upload the file to your site's root folder.

Use full addresses, never /photos/x.jpg: Google "will attempt to crawl your URLs exactly as listed" (Build and submit a sitemap). Special characters such as the ampersand must be escaped (written as an entity code).

The only tags Google reads

TagRequired?Note
image:imageYesWraps one image; up to 1,000 per page
image:locYesThe image's address; can be on another domain
image:caption, image:title, image:geo_location, image:licenseDeprecatedNo effect since August 6, 2022

Google dropped those four tags from its docs in May 2022 and said they "will have no effect on indexing and search features after August 6, 2022" (Google Search Central Blog). Old sitemaps can keep them "without drawbacks." Captions and titles now come from the page itself: put each photo near text that describes it, with alt text. For licensing, Google points to IPTC photo metadata instead.

Size limits

One sitemap holds up to 50,000 URLs or 50MB uncompressed (Build and submit a sitemap). Past that, split it and list the parts in a sitemap index file. A small business site won't come close.

How to submit it to Google

Two ways; one is enough.

  1. Search Console. Open the Sitemaps report, paste the sitemap's full address into "Add a new sitemap", and click Submit. You need owner permission on the property (Search Console Help). More on the tool: Google Search Console for a small business.
  2. robots.txt. Add a line anywhere in the file, such as Sitemap: https://example.com/image-sitemap.xml. Google "will find it the next time we crawl your robots.txt file" (Build and submit a sitemap). No owner access needed.

Search Console's help names no separate sitemap test. To check Google can reach the file before submitting, it suggests running a live URL inspection on the sitemap's address and "checking that Page fetch is 'Successful'" (Search Console Help). After you submit, the status should read Success. If not, click the row for the error.

The Sitemaps report lists only sitemaps sent through it or the API, not ones Google found through robots.txt. Submitting is a hint, not an order:

"Keep in mind that submitting a sitemap is merely a hint: it doesn't guarantee that Google will download the sitemap or use the sitemap for crawling URLs on the site." (Google Search Central: Build and submit a sitemap)

If pages stay out of Google after that: crawled or discovered, currently not indexed.

Can the images be on another website?

Yes. This is the one place image sitemaps differ from regular ones. Google says image:loc may point to other domains, unlike a regular sitemap's addresses: "This lets you use CDNs (content delivery networks) to host images" (Image SEO best practices). Verify the image domain in Search Console so Google can report its crawl errors, and make sure neither site's robots.txt blocks those images.

Example

Illustrative cases. Numbers are invented for the example.

A remodeler with a script-loaded gallery (US dollars)

A remodeling company's 40-page site shows 300 project photos in a slider that loads by script. Google Images shows almost none. A developer builds an image sitemap listing the photos under each project page for $300, and the owner submits it in Search Console. The photos become findable; showing them is still up to Google.

A Shopify store with product galleries (Canadian dollars)

A bakery supply shop has six photos per product. Shopify's sitemap lists only the first. The other five already sit in normal img tags on the product page, so Google can find them there. No extra sitemap needed; the owner spends the time on alt text instead.

An old plugin still writing captions (US dollars)

A salon's WordPress sitemap includes image:caption and image:title. Google ignores them. Nothing to fix, and no reason to pay $150 for a "sitemap cleanup."

FAQ

Does an image sitemap help my images rank?

It helps Google find them, not rank them. Google says a sitemap "doesn't guarantee that all the items in your sitemap will be crawled and indexed"; the page text and alt text explain what each image shows.

Do I need a separate file, or can I add images to my existing sitemap?

Either. Google calls both approaches "equally fine."

Can I list images from another site I don't own?

Only if you can verify it. Google asks you to verify both domains in Search Console, which works only for a domain you control, such as your own CDN.

How often should I update it?

Whenever you add or remove pages or photos. Platforms that generate the sitemap do this on their own; a hand-made file needs you to edit it.

Different for you?

Keep learning

NextAlt text for SEO: how to write it, with examplesHow to write alt text for Google and screen readers: the rules, which images need it, length, keywords, and where to add it in WordPress, Wix and Squarespace.

Do it yourself

On-page SEO checklist: every item to check before publishingA pre-publish on-page SEO checklist for one new page: content, title, headings, URL, images, links, indexing, mobile and speed, plus what to do after launch.

Ask us one question

One line is enough. We reply by email.

Sources

  1. Google Search Central: Image sitemaps
  2. Google Search Central: Learn about sitemaps
  3. Google Search Central: Build and submit a sitemap
  4. Google Search Central: Manage your sitemaps with a sitemap index file
  5. Google Search Central: Image SEO best practices
  6. Google Search Central Blog: Spring cleaning, sitemap extensions (May 6, 2022)
  7. Search Console Help: Manage your sitemaps using the Sitemaps report (archived November 9, 2026)
  8. Shopify Help Center: Finding and submitting your sitemap
  9. Wix Help Center: Understanding your site's sitemap file
  10. Yoast Help: Images in XML sitemaps
  11. Make WordPress Core: New XML sitemaps functionality in WordPress 5.5 (July 2020)