How to Submit a Sitemap to Google — A Complete Guide

What Is a Sitemap and Why Does It Matter?
A sitemap is a file that lists all the important URLs on your website so search engines like Google can discover, crawl, and index your content efficiently. Think of it as a table of contents that you hand directly to Google’s crawlers. Without a sitemap, Googlebot has to discover your pages purely through internal links — a process that can leave newer or less-linked pages undiscovered for weeks or even months.
Sitemaps are especially critical for large websites (more than a few hundred pages), new websites with few inbound links, sites with rich media like video or images, and sites that update content frequently such as news sites or e-commerce stores. Even for smaller sites, submitting a sitemap is a zero-cost way to give Google a head start on understanding your content structure.
According to Google’s own documentation, a sitemap is not a ranking factor — but it directly affects how quickly and completely Google indexes your pages. If a page is not indexed, it cannot rank. That alone makes sitemaps worth setting up correctly.
Types of Sitemaps
Not all sitemaps are the same. Google supports several specialized sitemap formats, each suited to a different type of content:
1. XML Sitemaps
The standard sitemap format. An XML sitemap lists your page URLs along with optional metadata including when each page was last modified (<lastmod>), how frequently the page changes (<changefreq>), and the relative priority of the page compared to other pages on your site (<priority>). Here is what a minimal XML sitemap looks like:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
<lastmod>2025-05-01</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://www.example.com/about</loc>
<lastmod>2025-04-10</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
A single XML sitemap can contain up to 50,000 URLs and must not exceed 50 MB in size. For larger sites, you use a sitemap index file that points to multiple individual sitemaps.
2. Image Sitemaps
Image sitemaps help Google discover images that may not be crawlable through standard page crawling — for example, images loaded by JavaScript. You add image-specific markup inside your existing <url> blocks using the image: namespace. This is particularly important for photography sites, e-commerce product pages, and any site where images carry significant content value.
3. Video Sitemaps
If your site hosts video content, a video sitemap lets you provide Google with metadata such as the video title, description, thumbnail URL, duration, and publication date. This information helps Google surface your videos in video search results and the video carousel in regular search results. Without a video sitemap, Google may miss your videos entirely or fail to associate the correct metadata with them.
4. News Sitemaps
If your site is approved as a Google News publisher, a news sitemap is mandatory. News sitemaps should only contain articles published within the last 48 hours and must include the publication name and article publication date. This ensures Google News can index your stories quickly enough to appear in real-time news results.
How to Generate a Sitemap
The method you use to generate your sitemap depends on your website platform. Here are the most common approaches:
WordPress: Yoast SEO Plugin
Yoast SEO is the most widely used WordPress SEO plugin and generates a sitemap automatically. After installing and activating Yoast SEO, navigate to SEO → General → Features and make sure "XML sitemaps" is toggled on. Your sitemap will be accessible at https://yoursite.com/sitemap_index.xml. Yoast creates separate sitemaps for posts, pages, categories, tags, and authors, then links them all from a sitemap index file. You can exclude specific post types or individual pages from the sitemap directly in the Yoast settings panel.
WordPress: Rank Math Plugin
Rank Math is a popular Yoast alternative that also generates sitemaps automatically. Go to Rank Math → Sitemap Settings to configure which content types to include. Rank Math supports HTML sitemaps in addition to XML sitemaps, and it integrates directly with Google Search Console through its built-in connection feature.
WordPress: Google XML Sitemaps Plugin
The Google XML Sitemaps plugin by Arne Brachhold is a dedicated, lightweight option if you only need sitemap functionality without a full SEO suite. It generates a comprehensive sitemap and automatically notifies Google and Bing whenever you publish or update content.
Shopify
Shopify automatically generates a sitemap for every store at https://yourstore.myshopify.com/sitemap.xml. This sitemap includes your products, collections, blog posts, and pages. There is no configuration needed — Shopify maintains it automatically as you add or remove content. You just need to submit the URL to Google Search Console.
Static Sites and Custom Websites: Screaming Frog
Screaming Frog SEO Spider is a desktop crawling tool that can generate XML sitemaps for any website, regardless of the platform. Crawl your site, then go to Sitemaps → XML Sitemap to export. The free version handles up to 500 URLs; paid licenses handle unlimited URLs. This is particularly useful for HTML websites, custom CMS platforms, or any site where a plugin-based approach is not available.
Other tools for generating sitemaps include xml-sitemaps.com (free, web-based, up to 500 pages) and the sitemap NPM package for Node.js-based static site generators like Next.js or Gatsby.
How to Add Your Sitemap to robots.txt
Before submitting your sitemap to Google Search Console, you should also reference it in your robots.txt file. This allows all search engines — not just Google — to discover your sitemap automatically without requiring a manual submission to each one. Add the following line at the bottom of your robots.txt file:
Sitemap: https://www.yoursite.com/sitemap.xml
Replace the URL with the actual URL of your sitemap. If you are using a sitemap index file, point to the index. Save the file and ensure it is accessible at https://yoursite.com/robots.txt. You can verify this by visiting that URL directly in your browser.
Step-by-Step: Submitting Your Sitemap via Google Search Console
Google Search Console (formerly Google Webmaster Tools) is the official and recommended way to submit your sitemap to Google. Follow these steps:
Sign in to Google Search Console at search.google.com/search-console. If you have not verified your website yet, you will need to do so first. Google offers several verification methods including adding an HTML tag to your site’s
<head>, uploading an HTML file, using Google Analytics, or adding a DNS TXT record through your domain registrar.Select your property from the left-hand dropdown at the top of the screen. Make sure you select the correct property (domain vs. URL prefix can behave differently in Search Console).
Navigate to Sitemaps in the left sidebar under the "Indexing" section.
Enter your sitemap URL in the "Add a new sitemap" text field. You only need to enter the path after your domain — for example, if your sitemap is at
https://yoursite.com/sitemap.xml, you would typesitemap.xmlinto the field (Search Console already knows your domain).Click Submit. Google will immediately attempt to fetch your sitemap. If successful, you will see the sitemap appear in the "Submitted sitemaps" list with a status of "Success" and the number of URLs discovered.
Check back after 24–48 hours. The Sitemaps report will update to show how many URLs were discovered, how many were indexed, and any errors encountered.
How to Check Coverage and Fix Errors
After submitting your sitemap, the Coverage report in Google Search Console is your primary diagnostic tool. Navigate to Indexing → Pages to see a breakdown of your URLs across four categories:
Error — Pages Google tried to index but could not (e.g., server errors, redirects to dead ends). These need immediate attention.
Valid with warnings — Pages that are indexed but have issues such as being marked noindex while appearing in the sitemap, or being a duplicate that Google chose not to index.
Valid — Pages that are successfully indexed. This is what you want.
Excluded — Pages not indexed, usually intentionally (noindex tag, canonical pointing elsewhere, blocked by robots.txt). Review these carefully — some may be unintentionally excluded.
Common errors to watch for include "Submitted URL blocked by robots.txt" (your sitemap contains a URL that your robots.txt is blocking — fix by either removing it from the sitemap or updating robots.txt), "Submitted URL returns soft 404" (a page returns a 200 OK status but actually shows a "not found" message — fix the page or return a proper 404 status), and "Redirect error" (a URL in your sitemap redirects rather than resolving directly — update the sitemap to use the final destination URL).
How Often Does Google Recrawl Your Sitemap?
Google does not recrawl your sitemap on a fixed schedule. The frequency depends on how often your site is updated, how much crawl budget Google has allocated to your site, and how authoritative your site is perceived to be. Generally, high-traffic sites with fresh content may be recrawled daily or even multiple times per day. Smaller or less active sites may see crawls weekly or monthly.
You do not need to resubmit your sitemap every time you update your site — once it is submitted, Google will refetch it periodically on its own. However, if you have made major structural changes (adding dozens of new pages, reorganizing your URL structure), it is a good practice to resubmit manually to speed up the discovery process. You can do this by clicking on your submitted sitemap in Search Console and using the "Resubmit" option.
Some platforms like WordPress with Yoast SEO automatically ping Google when you publish new content. This is separate from the sitemap itself but helps trigger faster recrawling of new URLs.
Common Sitemap Mistakes to Avoid
Even experienced developers make mistakes with sitemaps. Here are the most common ones and how to avoid them:
Including URLs blocked by robots.txt. This is arguably the most confusing mistake. If a URL appears in your sitemap but your robots.txt file disallows crawling of that URL, Google will see the URL in the sitemap but be unable to fetch and index it. The sitemap and robots.txt must not contradict each other. Always audit your robots.txt alongside your sitemap.
Including non-canonical URLs. If your site has duplicate pages (e.g.,
https://example.com/pageandhttps://example.com/page/), only include the canonical version in your sitemap. Similarly, never include URLs with tracking parameters like?utm_source=newsletterin your sitemap — only include the clean, canonical URL.Including noindex pages. Pages that have a
<meta name="robots" content="noindex">tag should not appear in your sitemap. It sends a contradictory signal to Google — you are simultaneously telling Google to include the page in the sitemap (index it) and to not index it.Listing redirect URLs. Your sitemap should only contain URLs that resolve with a 200 OK response. If a URL redirects to another URL, include the final destination URL instead.
Skipping sitemaps for large sites. Some site owners assume that if their internal linking is good enough, a sitemap is unnecessary. For sites with hundreds or thousands of pages, a sitemap is critical for ensuring full crawl coverage — especially for newer pages that have fewer inbound links.
Using incorrect absolute URLs. Every URL in your sitemap must be a complete absolute URL including the protocol (
https://) and the full domain. Relative paths like/aboutare not valid in sitemaps.Forgetting to update the sitemap. If you use a manually created or static sitemap, remember to update it whenever you add, remove, or significantly change pages. Stale sitemaps that include deleted pages or omit important new pages create unnecessary confusion for crawlers.