An XML sitemap is a file that lists a siteâs webpages for search engines like Google to discover and add to their databases. It helps ensure your pages can appear in search resultsâtraditional organic listings and AI-powered search experiences like Googleâs AI Overviews and AI Mode.
A sitemapâs URL is typically âdomain.com/sitemap.xmlâ or âdomain.com/sitemap_index.xml.â
You can find a domainâs XML sitemap URL by Googling âsitemap site:domain.com filetype:xml.â Like this:

If your site doesnât have a sitemap, create one with a sitemap generator tool.
Google can find your XML sitemap on its own, but submitting the sitemap to Google ensures itâs found. From there, Google crawls your sitemap and (hopefully) makes your pages show up for users sooner.
Letâs walk through the process of submitting a sitemap to Google.Â
How to Submit a Sitemap to Google
To submit an XML sitemap to Google, follow the steps in our guide to Google Search Console to connect your site, and then continue with the steps below.Â
Step 1: Navigate to Your Domain in Google Search Console
Log in to your Google Search Console account and select your site from the drop-down in the top left corner if you have more than one.Â

Step 2: Go to the âSitemapsâ Report
Go to the âSitemapsâ report in Google Search Consoleâs âIndexingâ section in the left sidebar.

Step 3: Add Your Sitemap
To finish submitting your XML sitemap in Google Search Console, paste your sitemapâs URL into the âAdd a new sitemapâ section and click âSubmit.âÂ

Google crawls submitted sitemaps as soon as it can. Check the âSitemapsâ report again within a few hours or days to see if Google processed your sitemap successfully, which is indicated with the âSuccessâ status.

How to Remove and Resubmit Sitemaps
If your site architecture has changed or your sitemap has errors, remove and resubmit your sitemap using these steps:
- Log in to your Google Search Console account
- If you own multiple sites, use the drop-down menu in the top left corner to select the correct site
- Click âSitemapsâ under the left sidebarâs âIndexingâ section
- In the âSubmitted sitemapsâ section, click the line with the sitemap you want to remove
- Click the three-dot menu icon in the top right corner. Then, click âRemove sitemap.â
- Confirm the removal by clicking the âRemoveâ button in the pop-up window that appears
- Wait for Google to process your request
Alternatively, delete the sitemap file from your site. Google will eventually stop checking it if itâs unavailable for a certain period.
If your new sitemap has the same URL as the original sitemap, donât delete your original sitemap. Simply resubmit it using the steps above. Google will reprocess it.
If you donât have a sitemap (or donât resubmit it), crawlers can still find your siteâs pages. But it could take longer. And some pages could be overlooked.
Sitemap Best Practices
Follow these best practices to help Google process your sitemaps efficiently:
Include Only the Essential Information
Your sitemap should contain:
- The URLs you want to have indexed: Donât include pages that you donât want indexed
- The âlastmodâ value: This value says when a page was last meaningfully updated. Search engines refer to it to prioritize which pages to crawl.
- The âhreflangâ values for your pagesâ location-specific variants: If your pages have localized versions, indicate them in the sitemap to help search engines crawl each version
Donât include the following in your sitemap:
- The âchangefreqâ and âpriorityâ values: Google ignores these values
- Non-canonical URLs: Skip these URLs because theyâre alternative URLs to your preferred pages
- 3xx or 4xx URLs: You donât want Google to index or rank these URLs, as they redirect users to different pages (3xx status code) or return client-side errors (4xx status code)
Adhere to the Size Limit
Keep your sitemap within Googleâs size limitâmeaning 50MB (uncompressed) or 50,000 URLs.
If your sitemap exceeds Googleâs size limit, split it into multiple sitemaps.
Create Multiple Sitemaps If Needed
Create multiple sitemaps if your sitemap exceeds Googleâs size limit or to have separate sitemaps for different content types (e.g., a sitemap for pages, a sitemap for posts, and a sitemap for videos).
If you have multiple sitemaps, youâll need to create a sitemap index file that lists all your sitemaps. Like a table of contents.Â
Hereâs Semrushâs sitemap index, for instance:

Submit the sitemap index URL to Google just like you would a regular sitemap.
Common Sitemap Issues and How to Fix Them
Common sitemap issues include:
- Formatting errors: There are errors in your sitemap fileâs format, like missing XML tags
- Incorrect URLs: Your sitemap contains URLs that arenât supposed to be in a sitemap (e.g., redirects and non-canonical URLs)
- Too large: Your sitemap has exceeded Googleâs size limit
We analyzed 50,000 domains for our technical SEO checklist and found that about 31% of those domains had at least one issue with their sitemaps. In other words, sitemap-related issues are quite common. (We captured more data points in our analysis than what made it into the final checklist article.)Â
Find and fix your sitemap issues by navigating to the âSitemapsâ report in Google Search Console.
If your sitemap has a âCouldnât fetchâ or âSitemap has # errorsâ status, Google provides suggested solutions.
Or, run a free SEO check on your sitemap and load speeds. To detect sitemap errors, broken links, and other technical SEO issues across your full site, use Semrush Site Audit. Just, configure and run your audit.
Once Site Audit has finished, click the âIssuesâ tab and search for âsitemap.â A list of possible issues with your sitemap will appear.

If you have a sitemap issue, click the link with the number of affected pages.

Clicking the link next to the corresponding sitemap issue will open a new report with a full list of affected pages.

Then, click the âWhy and how to fix itâ link to get a detailed description of the sitemap issue and recommendations for fixing it.
After youâve fixed all the sitemap-related issues, run Site Audit again to ensure theyâre resolved.
Frequently Asked Questions
Find answers to some of the most common questions about sitemaps below.
Does Submitting a Sitemap Guarantee Pages Will Be Indexed?
No, submitting a sitemap doesn't guarantee that Google will index your pages. A sitemap helps search engines discover your content, but Google may choose not to index pages that are duplicates, low-quality, or marked with noindex tags.Â
If pages aren't being indexed (which you can check in Google Search Console) despite appearing in your sitemap, focus on improving content quality, fixing technical errors, and ensuring your pages provide unique value to users.
How Often Should You Update Your Sitemap?
You should update your sitemap whenever you add, remove, or significantly modify pages on your site.Â
Most content management systems (CMS) do this automatically when you publish new content. If yours doesn't, you'll need to manually update your XML file and resubmit it to Google Search Console.
Do You Need a Sitemap if Your Site is Small?
No, you donât necessarily need to have a sitemap if your website is small, but itâs still recommended because sitemaps become more valuable as your site grows, are helpful if your pages aren't well-connected through internal links, and are useful if you frequently add new content.
What Does the âCouldnât Fetch Sitemapâ Error Mean?
The "Couldn't fetch sitemap" error in Google Search Console means Google was unable to access your sitemap file, typically due to server issues (like downtime or slow response times), incorrect file paths, or access restrictions (such as blocked access in robots.txt or a password-protected path).
Do You Need to Submit a Sitemap to Other Search Engines Besides Google?
You donât necessarily need to submit your sitemap to other search engines given how widely used Google is, but you can optionally submit your sitemap to Bing (via Bing Webmaster Tools).Â
Bing and other smaller search engines will eventually discover your site through crawling, so you can skip submitting your sitemap to them.
Can a Bad Sitemap Hurt SEO?
Yes, a bad sitemap that includes broken URLs, redirected pages, or pages marked with noindex tags can negatively affect your SEO because it tells search engines to crawl content that shouldn't be prioritized or can't be indexed.
Regularly review your website with Semrush Site Audit tool to ensure your sitemap is free of errors. The tool lets you set up weekly or monthly audits that automatically scan your sitemap and alert you when issues are detected.
