Advertisement

Product Sitemap Generator

Automatically discover your product pages and isolate them into a clean, targeted XML sitemap to ensure search engines find your inventory.

How to Use This Tool

1
1

Enter Store URL

Input the homepage URL of your ecommerce store (e.g., https://store.example.com).
2
2

Extract Products

Click generate to let our crawler scan your site and specifically isolate your product pages.
3
3

Review Inventory

Verify that the discovered URLs are actual products and not faceted search results or cart pages.
4
4

Choose Output

Ensure 'Product Sitemap' is selected to format the XML correctly for ecommerce parsing.
5
5

Copy or Download

Download the file as product_sitemap.xml or copy it directly.
6
6

Recommended Action

Upload to your store's root directory and submit via Google Merchant Center or Search Console.

How It Works

1

Store Crawl

Our bot navigates your store starting from the homepage.

2

Pattern Recognition

We identify product URLs by analyzing path structures (e.g., /products/, /p/).

3

Isolation

We filter out standard pages, blog posts, and categories to isolate only products.

4

XML Generation

A structured product XML sitemap is generated and ready for download.

Who Needs This?

Shopify & WooCommerce Owners

Ensure your entire product catalog is correctly indexed, especially after migrating platforms or updating inventory.

Dropshippers

Get fast indexation on new trending products by submitting a targeted product sitemap to Google.

Marketplaces

Isolate massive catalogs of user-generated products from standard marketing pages.

Headless Commerce

Custom Next.js or React commerce builds that need a reliable external crawler to map dynamic product routes.

Technical Explanation

Product pages are the lifeblood of any ecommerce website. However, due to faceted navigation, sorting, and product variants (e.g. `?color=red`), search engines often get trapped in "spider traps" and fail to find your actual, canonical product URLs.

This generator employs path-based heuristics to recognize product URLs across all major platforms. It ignores parameterized variants to ensure that only the canonical product URLs are included in your final sitemap.

By providing Google with a clean list of only your canonical product URLs, you prevent crawl budget waste and dramatically improve the chances of your products appearing in Google Shopping and organic search results.

Advertisement
Advertisement

Example Output

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://store.example.com/products/wireless-headphones</loc>
    <lastmod>2026-09-21</lastmod>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://store.example.com/products/mechanical-keyboard</loc>
    <lastmod>2026-09-18</lastmod>
    <priority>0.9</priority>
  </url>
</urlset>

Common Mistakes

  • Including URL parameters for product variants (e.g., ?size=large) instead of the canonical URL.
  • Including discontinued products that return a 404.
  • Failing to include high-priority tags for top-selling items.
  • Mixing blog posts and privacy policies into the product sitemap, diluting its purpose.

BuildSitemap Behavior

BuildSitemap uses advanced heuristics during the crawl phase to categorize URLs. When it detects a URL containing paths like /product/, /products/, or /p/, it automatically buckets it into the "Products" category. The generator then filters the output to only include these URLs, while strictly dropping any URLs with query parameters to enforce canonicalization.

Best Practice Checklist

Frequently Asked Questions

What is a product sitemap?

A product sitemap is an XML file specifically dedicated to listing the URLs of the products you sell. It excludes standard pages like 'About Us', 'Contact', or 'Blog' to give search engines a focused map of your inventory.

Should product variants have separate sitemap URLs?

Generally, no. If a shirt comes in 5 colors, and each color appends a parameter to the URL (e.g., ?color=red), you should only include the main canonical product URL in the sitemap. Submitting parameterized URLs wastes crawl budget and causes duplicate content issues.

Should filtered product URLs be included?

No. Faceted navigation (like category pages filtered by price or brand) creates near-infinite URL combinations. These should be blocked via robots.txt or canonicalized, and should never appear in your XML sitemap.

How should discontinued products be handled?

If a product is permanently discontinued and returns a 404 or 410 status code, it must be removed from the sitemap immediately. If it redirects (301) to a category, remove the old URL and ensure the category is in your sitemap.

Can BuildSitemap detect product URLs automatically?

Yes. Our engine uses path-based heuristics common to platforms like Shopify, WooCommerce, and Magento to intelligently identify and isolate your product URLs.

Do I need a separate product sitemap if I use Shopify?

Shopify automatically generates a products-specific sitemap index for you. However, you can use our tool to audit its output and verify there are no hidden or blocked products failing to index.

Related Tools

Ready to generate your sitemap?

Start crawling your website below. It's completely free.

Advertisement
Advertisement