A sitemap is a list of the pages on your site that you want search systems to find. For a small shop, one file does the job. For a large catalog, one file does not. The list grows past the size limit, or it grows so long that nobody can tell which pages matter and which pages are noise.

Platform screens change. If a menu name here does not match what you see, check the vendor docs linked in Sources for the current path.

Google says a single sitemap is limited to 50,000 URLs or 50MB uncompressed, and larger sites must split into multiple sitemaps, optionally under a sitemap index file. Google also says submitting a sitemap is only a hint, and it does not guarantee Google will download the sitemap or use it for crawling.

What this guide covers

This guide walks through the large catalog job in five parts. First, you count what you have, and you learn where the limit sits. Second, you split the catalog by type, so each file has one clear job. Third, you clean each file, so it lists only the pages you want found. Fourth, you tie the files together with a sitemap index, and you submit it. Fifth, you keep the files current, so a new product appears and a removed product leaves.

A short clean set of sitemaps beats one long dirty file, every time. The goal is not to list everything. The goal is to list the right pages, in the right files, in the right form.

Who does each step

Marketer work is counting the catalog, deciding which page types matter, submitting the sitemap in Search Console, and checking the report for errors. Developer work is building the split, fixing a sitemap that lists the wrong addresses, and fixing anything that needs a template or code change. The owner decides which sections of the catalog matter most, and which pages should never appear in a sitemap, such as test pages and internal pages. Start with the product and category pages that earn the most sales, and then work through the rest.

Step 1: count what you have, and find where the limit sits

Start by counting the pages your site could list. Count the product pages, the category pages, and the content pages, such as guides and the about page. Do not guess the count. If the count is close to 50,000, or the file is close to 50MB uncompressed, you need a split. If the count is far below the limit, you may still need a split, because a single file that mixes products, categories, images, and content is hard to read and hard to fix.

Check the size of the file as well as the count. A file with many long URLs, or with image entries, can reach the size limit before it reaches the URL limit. Google says a sitemap can be served compressed, but the limit applies to the uncompressed size, so compression does not let you fit more URLs past the limit.

Write down the counts by type before you split. That table becomes the plan for the split, and it tells you which file is too big, which file is fine, and which type of page is missing from the sitemap entirely.

Step 2: split by type, not by alphabet

Split by type, so each file has one clear job. One sitemap for products, one for categories, one for content pages, and one for images where your platform supports it. That split is one a human can read and a developer can maintain. Splitting by alphabet, such as products A to M in one file and N to Z in another, tells nobody what is in each file, and it breaks the moment a product is renamed.

Give each file a clear name that says what it holds, such as sitemap-products.xml and sitemap-categories.xml. Keep each file under the limit, with room to grow, so a busy season does not push a file over the edge without warning. If one type is still too large for one file, split that type further by a real boundary, such as a product line or a department, and name the files for that boundary. Do not split a type into numbered files with no meaning, such as products-1 and products-2, because those names tell nobody what changed when a file grows.

Each file must list only canonical addresses, with full absolute URLs. Google says to use fully qualified, absolute URLs in your sitemaps, and that it will attempt to crawl your URLs exactly as listed. That means a relative address, a test address, or an old address in any file is a live instruction to crawl the wrong thing. Check the addresses in each file after the split, not only in the first file.

Step 3: clean each file, and remove what should not be there

A sitemap should list only the canonical addresses you want shown in search results. Open each file after the split, and scan it for the problems below. First, check that your best selling products are listed, and that each product appears once, at its canonical address. Second, check that the file does not list filtered or sorted views of a category, because those are duplicates of the same page. Third, check that it does not list the cart, the checkout, the account pages, or any page behind a login. Fourth, check that it does not list pages you deleted, or pages that now redirect to another address. Fifth, check that the category pages and the content pages you want cited are listed, not only the product pages.

If a file lists the wrong addresses, the fix depends on the cause. A product visibility setting, a category setting, or a sitemap plugin setting is usually the cause, and the fix lives in that setting. A developer can fix a sitemap that is generated by code, and a marketer can fix a sitemap that is generated by a setting. Do not hand edit a generated sitemap, because the next regeneration will overwrite your edit.

Google says it ignores priority and change frequency values, so do not add them. Google also says it uses the lastmod value only if it is consistently and verifiably accurate, so do not add a lastmod value unless your build writes true modification times. A clean file with only loc entries, and true lastmod values where your build supports them, is the whole job.

Step 4: tie the files together with a sitemap index, and submit it

A sitemap index is a sitemap that lists other sitemaps, and you submit the index, not each file on its own. Build one index that lists every file from step two, with the full absolute URL of each file and, where your build supports it, a true lastmod value for each file. The index itself must stay under the same limits, and it can list up to 50,000 child sitemaps. Most shops need only a handful, so the index stays small and easy to read.

Submit the index in Google Search Console, using the Sitemaps report. That is a marketer step, done once, and then again whenever the index address changes. Google says the Sitemaps report lets you see when Googlebot accessed the sitemap, and any processing errors. If the report shows errors, fix the cause, not the report. Google says you can submit multiple sitemaps and sitemap index files, and that splitting can help you track the search performance of each sitemap in Search Console.

Point crawlers at the sitemap from robots.txt as well. Google says you can insert a sitemap line anywhere in your robots.txt file, specifying the path to your sitemap, and that Google will find it the next time it crawls your robots file. Put the index address in robots.txt, not each child file, so crawlers start at the index and follow it to the files. Check the robots file in a browser after the change, and confirm the sitemap line points to the live index address.

Step 5: keep the files current after every catalog change

A sitemap goes stale in the same way a catalog does. A product added to the store should appear in the right file. A product removed from the store should leave it. A product whose address changed should appear at the new address, not the old one. If your platform generates the sitemaps, regeneration should happen on its own, but confirm it did. Open the right file after a catalog change, and confirm the new product is listed and the removed product is gone.

Add three checks to your routine after any catalog change. First, open the sitemap file for the changed product type, and confirm the changed product is listed at the right address. Second, open Search Console and confirm the Sitemaps report shows no new errors for the index or the child files. Third, open the product page and confirm the price and stock are right. If a file is close to the limit, check its size and count after a large import, so a busy season does not push it over the edge without warning.

Machine-readable version you can copy

This section gives you two copy-ready blocks, built only from fields and formats verified in the vendor docs linked in Sources. Replace the example addresses with your own, and keep every address identical to the live page.

First, a sitemap index that lists two child sitemaps. The format comes from the sitemaps protocol, which defines a sitemapindex element with a sitemap element for each child file, and a loc element holding the full absolute URL of the child file.

code
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.example.com/sitemap-products.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap-categories.xml</loc>
  </sitemap>
</sitemapindex>

Second, one child sitemap with two entries. The format comes from Google's sitemap guide, which shows a urlset with a url element and a loc element holding the full absolute URL. Do not add priority or change frequency values, because Google says it ignores them.

code
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/products/[canvas-tote-bag]</loc>
  </url>
  <url>
    <loc>https://www.example.com/products/[leather-wallet]</loc>
  </url>
</urlset>

Worked example: a home goods shop with one file too large to read

Take a home goods shop with a large catalog: thousands of products, hundreds of categories, and a blog that answers care and styling questions. The platform generated one sitemap file, and the file had grown past the limit. Search Console showed errors, and new products were slow to appear in search, because the file was not being read in full.

The owner counted the catalog by type, and split the file into four: products, categories, content, and images. She gave each file a clear name, and she checked each file for the problems that had built up in the single file: deleted products still listed, filtered category views listed as separate pages, and the cart and checkout listed alongside the products. She fixed the causes in the platform settings, and she built a sitemap index that listed the four files. She submitted the index in Search Console, and she put the index address in robots.txt.

Frequently Asked Questions

How do I know my catalog is large enough to need a split?

Count the pages by type, and check the size of the file. If the count is close to 50,000 URLs, or the file is close to 50MB uncompressed, split. If the file mixes products, categories, and content in one long list, split by type even before you reach the limit, because the split makes the list easier to read and fix.

Should I split by alphabet?

No. Split by type first, then by a real boundary such as a product line or a department. Alphabet splits tell nobody what is in each file, and they break when a product is renamed.

Do I submit each file, or only the index?

Submit the index. The index lists the child files, and Google follows it to each one. Submit a child file on its own only if you have a reason to track it separately in Search Console.

Should I add priority or change frequency to my sitemaps?

No. Google says it ignores priority and change frequency values. Add a lastmod value only if your build writes true modification times.

What should I do when a file reaches the limit?

Split that file again by the same rule: by type, then by a real boundary, with clear names. Do not let a file sit past the limit, because it may not be read in full.

Verified Sources & Technical Documentation

links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.