ESC
Start typing to search 370+ free tools
Seo tools

What is an XML Sitemap and How to Create One for Free

S

SEO Stack Tools Editorial Team

06/28/2026 12:00 AM

4 min read
70 views

If you want Google to find and index all of your website's pages, an XML sitemap is not optional — it is essential. A sitemap is a file that tells search engine crawlers exactly which pages exist on your site, when they were last updated, and how important they are relative to each other. Without one, Google may miss pages entirely, especially on larger websites.

What is an XML Sitemap?

An XML sitemap is a structured file in XML format that lists the URLs on your website along with optional metadata about each URL — such as the last modified date, change frequency and priority. It acts as a roadmap for search engine crawlers, helping them discover content they might otherwise miss.

Example of a basic XML sitemap entry:


  https://example.com/about-us
  2026-06-01
  monthly
  0.8

Why Do You Need an XML Sitemap?

Google discovers pages primarily through links — both internal links on your site and external links from other sites. However, not every page gets linked to naturally. Sitemaps act as a safety net, ensuring Googlebot knows about every page you want indexed, including:

  • New pages that have not yet attracted any links
  • Deep pages buried several clicks away from the homepage
  • Pages with thin internal linking
  • Large e-commerce or blog sites with hundreds or thousands of pages

Google recommends submitting a sitemap for any site with more than a few pages. It is especially important when you publish new content frequently.

How to Create an XML Sitemap for Free

Our XML Sitemap Generator creates a complete, Google-ready XML sitemap in seconds. Here's how:

  1. Go to the XML Sitemap Generator
  2. Enter your website URL
  3. Configure options: change frequency (how often pages update), priority (relative importance 0.1–1.0) and last modified date
  4. Click Generate Sitemap
  5. Download the generated XML file
  6. Upload it to your website root directory so it is accessible at yourdomain.com/sitemap.xml

How to Submit Your Sitemap to Google

Creating the sitemap is only half the job — you also need to tell Google it exists:

  1. Log in to Google Search Console (search.google.com/search-console)
  2. Select your property (website)
  3. Go to Sitemaps in the left menu
  4. Enter your sitemap URL (e.g. https://yourdomain.com/sitemap.xml)
  5. Click Submit

Google will process the sitemap and show you how many pages were submitted versus how many were indexed. If indexed pages are significantly lower than submitted, it indicates indexing issues worth investigating.

Also add your sitemap URL to your robots.txt file so all crawlers can find it:

Sitemap: https://yourdomain.com/sitemap.xml

Sitemap Best Practices

  • Only include canonical URLs — do not include paginated, filtered or duplicate URLs
  • Exclude pages with noindex tags — do not submit pages you don't want indexed
  • Keep it updated — regenerate and resubmit whenever you publish new content
  • Split large sitemaps — Google recommends keeping sitemaps under 50,000 URLs or 50MB; use a sitemap index file for larger sites

An XML sitemap is free to create and takes minutes to set up. Once submitted to Google Search Console, you get the added benefit of indexing reports that show exactly what Google has crawled and indexed on your site.

XML Sitemap Structure Best Practices for Large Sites

For sites with more than 50,000 URLs or 50MB of sitemap data, the XML sitemap must be split into multiple sitemap files referenced by a sitemap index file. The sitemap index file lists all individual sitemap URLs with their last modification dates, allowing search engines to efficiently identify and process only updated sitemaps rather than re-processing the entire sitemap collection on every crawl cycle for large site management efficiency.

Frequently Asked Questions

Does Google prioritise URLs in my sitemap over others?

Submitting a URL in your sitemap signals that you consider it important, but does not guarantee Googlebot will crawl it or rank it highly. Google uses many signals beyond sitemap inclusion for crawl prioritisation, including pagerank, internal link structure, and historical crawl data. Your sitemap is one useful signal among many that Googlebot uses in its crawl scheduling decisions.

Should I include the date in my XML sitemap lastmod tag?

Yes, but only if the date is accurate. Google ignores lastmod values that are always today (indicating no effort to track actual update dates) or that never change (indicating no maintenance). Accurate lastmod dates that reflect genuine content updates help Google prioritise crawling recently updated pages efficiently across your sitemap collection.

Can I have multiple XML sitemaps for different content types?

Yes. You can create separate sitemaps for blog posts, products, images, and videos, all referenced from a sitemap index file. Image and video sitemaps use extended sitemap schemas that provide additional metadata helping Google understand and index rich media content effectively beyond standard text page indexing.

100+ Free SEO Tools — No Signup Needed

Keyword research, backlink checker, plagiarism detector, meta tags & more. All free, all instant.

Explore All Tools