Create a free account Sign in

Audit

SEO audit Crawler AI Visibility Site vs Site

Research

Keyword Explorer Is it down? All SEO tools86

Tools

What do you want to do?

Get my pages into GoogleImprove a page that does not rankMake my website fasterFind keywords and write contentGet found in AI searchCheck if my site is downSecure my domain and emailFind a domain nameSet up a new website
On-page SEO11
Meta Tags AnalyzerSERP Snippet PreviewHeading Structure CheckerImage Alt Text CheckerOpen Graph & Social Preview CheckerStructured Data ValidatorCanonical Tag CheckerLink AnalyzerHreflang CheckerFavicon CheckerAccessibility Checker
Technical SEO11
Full Site Audit (Crawler)Robots.txt TesterXML Sitemap CheckerRedirect CheckerBulk HTTP Status CheckerHTTP Headers CheckerBroken Link CheckerIndexability CheckerMobile-Friendly CheckerJavaScript SEO CheckerCookie & Tracker Scanner
Speed & performance11
Page Speed TestCore Web Vitals CheckerServer Response Time (TTFB) TestPage Size CheckerGzip & Brotli Compression TestHTTP/2 & HTTP/3 CheckerCSS MinifierJavaScript MinifierImage Compressor & WebP ConverterHTML MinifierWebsite Carbon Calculator
Content & keywords8
Keyword Density CheckerKeyword Suggestion ToolWord CounterReadability CheckerText to HTML Ratio CheckerURL Slug GeneratorCase ConverterDuplicate Content Checker
Generators10
Meta Tag GeneratorRobots.txt GeneratorSchema Markup GeneratorOpen Graph GeneratorXML Sitemap GeneratorRedirect Generator (.htaccess & Nginx)Hreflang Tag GeneratorUTM Campaign URL Builderllms.txt GeneratorFavicon Generator
Domain names10
Domain Name GeneratorDomain Availability CheckerBulk Domain CheckerDomain Name Quality CheckerDomain Pronunciation CheckerSocial Media Username CheckerBrand Name CheckerDomain Expiry CheckerDomain Name Variations GeneratorDomain Extension Comparison
Domain & security14
SSL Certificate CheckerSecurity Headers CheckerDNS LookupWHOIS / Domain LookupDomain Age CheckerMixed Content CheckerWebsite IP & Hosting LookupPing Test – Is the Website Up?Website Technology CheckerSPF, DKIM & DMARC CheckerDNS Propagation CheckerBlacklist CheckerWebsite Uptime MonitorOpen Port Checker
AI search & AI writing11
AI Search Readiness CheckerAI Title & Meta Description GeneratorAI FAQ & Schema GeneratorAI Content Brief GeneratorAI Content OptimizerAI SEO Page ReviewerAI Search Intent & Page MatchAI Competitor Content GapAI Content DetectorAI Alt Text GeneratorAI Headline Generator

Learn

SEO guides SEO issue guide Pricing

Preferences

Theme
Technical SEO

XML Sitemaps: What They Are and How to Create One

An XML sitemap lists the pages you want search engines to find. Learn what to include, what to leave out, how to create one on any platform and how to submit it.

An XML sitemap is a file that lists the URLs on your site you want search engines to discover and index. Think of it as a directory you hand to crawlers: “here are my important pages, and here is when each one last changed.”

Search engines can find most pages by following links, so a sitemap is not mandatory. But it is cheap insurance, and for some sites it makes a real difference.

Who benefits most from a sitemap?

  • Large sites, where crawlers may miss deep or poorly linked pages
  • New sites with few external links pointing to them
  • Sites that change often, such as news, marketplaces and blogs
  • Sites with rich media that benefit from image or video sitemap extensions

Even small sites gain from a sitemap: it gives Search Console a reference list, so you can see how many submitted pages are actually indexed.

What an XML sitemap looks like

<?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-09-28</lastmod>
  </url>
  <url>
    <loc>https://example.com/guides/composting-at-home</loc>
    <lastmod>2026-09-14</lastmod>
  </url>
</urlset>
  • <loc> – the full, absolute URL (required)
  • <lastmod> – when the page’s content last meaningfully changed (optional but useful)

You may see <priority> and <changefreq> in older sitemaps. Google ignores both, so there is no need to maintain them. Google does use lastmod – as long as it is consistently accurate.

Which URLs belong in your sitemap?

Include only canonical, indexable pages that return 200 OK. In practice, leave out:

  • Redirected URLs (3xx)
  • Error pages (4xx, 5xx)
  • Pages with noindex
  • Pages whose canonical points elsewhere
  • Parameter variations, internal search results, cart and account pages
  • Duplicate versions (http, non-www, trailing-slash variants)

A sitemap full of redirects and errors sends mixed signals and makes it harder to spot real indexing problems.

XML Sitemap Checker

Find and validate an XML sitemap, count its URLs and test a sample for errors.

Open the XML Sitemap Checker

Size limits and sitemap index files

Each sitemap can contain up to 50,000 URLs and must be no larger than 50 MB uncompressed. Larger sites split URLs across several sitemaps and list them in a sitemap index:

<?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-products-1.xml</loc></sitemap>
  <sitemap><loc>https://example.com/sitemap-blog.xml</loc></sitemap>
</sitemapindex>

Splitting sitemaps by type (pages, products, blog posts) also makes it easy to see indexing rates for each section in Search Console.

How to create a sitemap

WordPress

WordPress has generated a basic sitemap at /wp-sitemap.xml since version 5.5. SEO plugins such as Yoast SEO, Rank Math and All in One SEO replace it with more configurable sitemaps, usually at /sitemap_index.xml.

Shopify

Shopify generates a sitemap automatically at /sitemap.xml, covering products, collections, pages and blog posts.

Wix, Squarespace and Webflow

All three generate sitemaps automatically. Webflow lets you exclude pages and set a custom sitemap.

Custom or static sites

Many frameworks have sitemap plugins (Next.js, Nuxt, Astro, Hugo, Jekyll). For small static sites, you can crawl the site and generate a sitemap from the pages found.

XML Sitemap Generator

Crawl your site and generate a ready-to-upload sitemap.xml.

Open the XML Sitemap Generator

Dynamic sitemaps that update automatically whenever content changes are better than static files that someone has to remember to regenerate.

How to submit your sitemap

  1. Add it to robots.txt so every search engine can find it:
    Sitemap: https://example.com/sitemap.xml
    
  2. Submit it in Google Search Console under Indexing → Sitemaps.
  3. Submit it in Bing Webmaster Tools, which also powers results for several other search engines.

After submission, check the Sitemaps report for errors and compare the number of discovered URLs with the number indexed in the Page indexing report.

Getting lastmod right

lastmod is only useful if it is trustworthy. Update it when the main content of a page changes – not when a sidebar widget or copyright year changes. If every URL shows today’s date on every crawl, search engines learn to ignore the field.

Special sitemaps

  • Image sitemaps list images on each page, helpful for image-heavy sites
  • Video sitemaps provide details such as title, thumbnail and duration
  • News sitemaps are for publishers in Google News and include only articles from the last two days
  • Hreflang in sitemaps – multilingual sites can list alternate language versions of each URL in the sitemap instead of in HTML

Common sitemap problems

  1. URLs that redirect or return 404
  2. Non-canonical or noindexed URLs
  3. The wrong protocol or host (http instead of https, missing www)
  4. A sitemap that is not referenced anywhere and never submitted
  5. Stale sitemaps that are not updated when content changes
  6. Sitemaps blocked by robots.txt

Sitemaps for different kinds of sites

Small business sites (under 100 pages). One sitemap is plenty. Make sure it includes your service, location and key content pages, and that it updates when you add pages.

Blogs. Include posts and important category pages. Exclude thin tag archives, date archives and author pages unless they offer real value.

Online shops. Split sitemaps into products, categories and content. Exclude out-of-stock products that have been permanently discontinued and redirected, filter and sort URLs, and cart or account pages. Keep lastmod accurate when prices or availability change.

News sites. Use a separate news sitemap for articles from the last two days, plus regular sitemaps for the archive.

Multilingual sites. Either include every language version in the sitemap with hreflang annotations, or provide a sitemap per language.

Using sitemaps to diagnose indexing

Sitemaps are one of the best diagnostic tools in Search Console. Because you have told Google exactly which URLs you care about, the Page indexing report can be filtered to show only those URLs. If a large share of submitted URLs are not indexed, look at the reasons given:

  • “Crawled – currently not indexed” across many submitted pages suggests content quality or duplication issues
  • “Discovered – currently not indexed” suggests Google has not prioritised crawling them – improve internal links and site speed
  • “Excluded by noindex tag” or “Page with redirect” means your sitemap contains URLs that should not be there

Splitting sitemaps by section makes these patterns obvious: if your blog sitemap is 95% indexed but your product sitemap is 40% indexed, you know where to focus.

Compressing and hosting sitemaps

Sitemaps can be gzip-compressed (sitemap.xml.gz) to save bandwidth; the 50 MB limit applies to the uncompressed size. A sitemap can be hosted on a different path or even a different host if you declare it in robots.txt or verify both properties in Search Console, but keeping it on the same host is simplest.

Sitemap checklist

  • Includes only canonical, indexable, 200-status URLs
  • Uses absolute URLs with the correct protocol and host
  • Updates automatically when content changes
  • lastmod reflects real content changes
  • Under 50,000 URLs and 50 MB per file, with an index for larger sites
  • Listed in robots.txt
  • Submitted to Google Search Console and Bing Webmaster Tools
  • Monitored for errors and indexing rate

Key takeaways

  • An XML sitemap lists the canonical, indexable URLs you want search engines to find.
  • Leave out redirects, errors, noindexed pages and parameter duplicates.
  • Google ignores priority and changefreq but uses accurate lastmod dates.
  • Each sitemap can hold 50,000 URLs and 50 MB; larger sites use a sitemap index.
  • Reference your sitemap in robots.txt and submit it to Google and Bing.
  • Split sitemaps by section to diagnose indexing problems in Search Console.

Frequently asked questions

Does a sitemap improve rankings?

Not directly. It helps search engines discover and recrawl pages, which is a prerequisite for ranking – but it does not make a page rank higher.

Should every page be in my sitemap?

Every page you want indexed should be. Pages you do not want indexed should not be.

Do I need an HTML sitemap too?

An HTML sitemap (a page listing links to your sections) can help users and crawlers on large sites, but good navigation usually makes it unnecessary.

How often should I update my sitemap?

Whenever pages are added, removed or meaningfully changed. Automatically generated sitemaps handle this for you.

sitemapindexingtechnical seo

Check your own site

Run a free audit with 80+ checks and get a fix for every issue.

Run free audit

Keep reading