<loc>
- Required
- Yes
- What Google does with it
- The URL. Use fully-qualified, absolute URLs
An XML sitemap lists the URLs you want search engines to find. Format, the 50,000 URL and 50MB limits, what Google ignores, and how to submit one.
An XML sitemap is a file that lists the URLs on your site so search engines can discover them. Each sitemap is limited to 50,000 URLs or 50MB uncompressed. A sitemap helps discovery but doesn't guarantee crawling or indexing, and Google ignores the priority and changefreq values.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
<urlset> element, a <url> entry for each URL, and a <loc> in every entry. The other tags are optional.<loc><lastmod><changefreq><priority><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-10-11</lastmod>
</url>
<url>
<loc>https://example.com/pricing</loc>
<lastmod>2026-09-15</lastmod>
</url>
</urlset>&).<loc> tagsThe last row catches people out: an index at /blog/sitemap_index.xml can't list sitemaps in /shop/ under the default path rules. Put the index at the site root, which also lets it reference sitemaps anywhere in the site hierarchy.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-pages.xml</loc>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-posts.xml</loc>
</sitemap>
</sitemapindex><lastmod> to an index entry, it describes when the sitemap file itself changed, not when every URL inside changed.<lastmod> only when it's consistently and verifiably accurate, and counts changes to main content, structured data or links. Updating a copyright year doesn't count. Set it from your content's real modified date, not the deploy time.curl -s https://example.com/sitemap.xml | grep -o '<loc>' | wc -l
curl -s https://example.com/sitemap.xml | wc -cGoogle says a sitemap helps it discover URLs but doesn't guarantee that every listed item is crawled and indexed. Its overview lists the cases where a sitemap helps most: large sites, new sites with few external links, and sites with a lot of video, image or news content. Google says you might not need one if your site is small (about 500 pages or fewer that you want in search results), is comprehensively linked internally so Googlebot can find every important page by following links, and doesn't have many video, image or news pages you want to show in search results. In most cases, Google says, a site benefits from having one.
User-agent: *
Disallow:
Sitemap: https://example.com/sitemap.xmlIf a hosted store uses different sitemap paths for different storefronts, see BigCommerce sitemaps. Documentation sites built with Docusaurus generate one through its sitemap plugin; see Docusaurus sitemaps. For the Search Console submission steps, use the sitemap submission guide.
Host it at the root, for example https://example.com/sitemap.xml. Google says that, unless you submit it in Search Console, a sitemap affects only descendants of its parent directory.
Add a line with the full URL: Sitemap: https://example.com/sitemap.xml.
Google accepts submission through the Search Console Sitemaps report or the Search Console API. Google says submitting a sitemap is merely a hint, and the Sitemaps report shows when Googlebot accessed it and any processing errors.
priority and changefreq. Google ignores both.lastmod to the build time on every page. Google only uses it if it's consistently and verifiably accurate, so only change it when the page content changes.6 questions people ask next, answered from the sources on this page.
50MB uncompressed or 50,000 URLs per file, whichever you reach first. Use a sitemap index to group more files.
Google documents a maximum of 50,000 <loc> entries in a sitemap index, and sitemaps.org says an index file is also limited to 50MB. Each referenced sitemap has its own limit of 50,000 URLs or 50MB uncompressed.
No. Google says a sitemap helps discovery but doesn't guarantee that every item will be crawled and indexed.
No. Google's documentation says it ignores <priority> and <changefreq>. It uses <lastmod> only if it is consistently and verifiably accurate.
At the site root. Outside Search Console submission, a sitemap affects only the directory it sits in and below.
By default, use the same site and directory rules. Google waives the same-site requirement if you set up cross-site submission, which its sitemap documentation covers separately.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.