← Back to Blog
Technical SEO

XML Sitemap: What It Is, How to Create, Submit, and Audit One

Learn what an XML sitemap is, how to create and submit one, which URLs to include, and how to audit sitemap health for technical SEO.

FixRank AI Team
November 7, 2026
20 min read
XML sitemap structure connecting website URLs with search engine crawlers

Learn what an XML sitemap is, how to create and submit one, which URLs to include, and how to audit sitemap health for technical SEO.

An XML sitemap helps search engines discover important URLs on your website. It is especially useful for large, new, frequently updated, or complex sites where some pages may be harder for crawlers to find through normal internal links.

This guide explains what an XML sitemap is, why it matters, how to create and submit one, which URLs to include, and how to audit it as part of a technical SEO maintenance process.

What Is an XML Sitemap?

An XML sitemap is a machine-readable file that lists important URLs on a website. It can provide search engines with information about pages that should be discovered and, where relevant, when those pages were last meaningfully modified.

Unlike an HTML sitemap, which is designed for website visitors, an XML sitemap is designed primarily for crawlers and search systems. It is a discovery aid, not a replacement for internal linking, crawlable navigation, or a sound site architecture.

Why Is an XML Sitemap Important for SEO?

An XML sitemap can help search engines:

  • Discover website URLs more efficiently.
  • Find new or recently updated pages.
  • Understand the set of preferred URLs a site owner wants considered.
  • Discover media and localized content through sitemap extensions.
  • Process large websites that have many sections or frequently changing URLs.

An XML sitemap cannot guarantee crawling, indexing, or higher rankings. A URL can be listed in a sitemap and still be excluded because it is blocked, low quality, duplicate, non-canonical, or otherwise not eligible for indexing.

How Does an XML Sitemap Work?

Search engines can discover a sitemap through robots.txt, webmaster tools, links from other systems, or common sitemap paths. After finding it, a crawler reads the listed URLs and may use them as additional discovery signals.

The usual relationship is:

  1. The sitemap makes a URL discoverable to a search engine.
  2. The search engine crawls the URL and evaluates its technical and content signals.
  3. The URL may be indexed if it meets the search engine’s requirements.
  4. The page may appear in search results when it is relevant and competitive.

Submitting a sitemap does not guarantee that every listed URL will be crawled or indexed.

What Does an XML Sitemap Look Like?

A basic sitemap uses a urlset root element and one url element for each URL. Common child elements include:

  • loc: The absolute URL of the page.
  • lastmod: The date the page was meaningfully modified.
  • changefreq: A historical hint about how often a page may change.
  • priority: A historical hint about relative URL importance.

Search engines primarily need valid URLs and may use accurate lastmod values when they are supported. changefreq and priority are not reliable ways to force crawling or rankings, so they should not be treated as guarantees.

A simplified valid entry looks like this:

<url><loc>https://example.com/guide</loc><lastmod>2026-11-07</lastmod></url>

In a production sitemap, use the required XML declaration, the correct sitemap namespace, a urlset root, and absolute URLs. Validate the final file before submitting it.

What Are the Different Types of XML Sitemaps?

Standard XML Sitemap

A standard sitemap lists regular web pages, such as articles, landing pages, product pages, and category pages.

XML Sitemap Index

A sitemap index lists multiple sitemap files. It is useful when a website has enough URLs to need separate files by content type, site section, language, or publishing system.

Image Sitemap

An image sitemap or image extension can provide additional image discovery information where it is relevant to the site and search experience.

Video Sitemap

A video sitemap can describe video content and associated metadata for websites where video discovery is important.

News Sitemap

A news sitemap is designed for eligible news content and has additional requirements. It should not be used as a general sitemap for every blog or marketing page.

Multilingual and Hreflang Sitemap

Localized URL information can be represented through sitemap extensions. Keep language and regional relationships consistent with the hreflang signals on the pages.

XML Sitemap vs. HTML Sitemap: What’s the Difference?

Sitemap typePrimary audienceMain purpose
XML sitemapSearch engines and crawlersHelp discover and process important URLs
HTML sitemapWebsite visitorsProvide a human-readable list of pages and navigation paths

An XML sitemap and an HTML sitemap solve different problems. A website may use both: the XML sitemap supports machine discovery, while an HTML sitemap can support visitors, accessibility, and additional internal linking.

Which URLs Should You Include in an XML Sitemap?

Include URLs that are important, canonical, accessible, and eligible for indexing, such as:

  • Canonical website pages.
  • Indexable articles and guides.
  • Important product and category pages.
  • Valuable blog posts and landing pages.
  • New and recently updated pages.
  • Relevant image, video, or localized URLs where applicable.

Sitemap URLs should generally return a successful response, resolve to the preferred canonical URL, and provide useful content for search users.

Which URLs Should You Exclude from an XML Sitemap?

Usually exclude:

  • URLs returning 404 or 5xx errors.
  • Redirected URLs.
  • Non-canonical URLs.
  • Pages with a noindex directive.
  • Duplicate URLs.
  • URLs containing unnecessary tracking parameters.
  • Low-value, private, temporary, or unwanted pages.

The sitemap, canonical tag, internal links, and robots directives should send consistent signals. Listing a non-canonical or non-indexable URL creates noise and makes sitemap reports harder to interpret.

How to Create an XML Sitemap

Generate an XML Sitemap Automatically

Many website platforms and CMS tools generate sitemaps automatically. Automatic generation is convenient, but it still needs review. Check that the output includes important canonical URLs and excludes drafts, duplicates, filtered URLs, and pages that should not be indexed.

Create an XML Sitemap Manually

To create one manually:

  1. Collect the preferred, indexable URLs from the website.
  2. Add each absolute URL to a valid XML sitemap structure.
  3. Add accurate lastmod values when pages change meaningfully.
  4. Save the file as an XML sitemap, commonly sitemap.xml.
  5. Upload it to the site’s public root or another accessible location.
  6. Validate the file and submit its URL to search engine webmaster tools.

XML sitemap generators can help assemble the file, but the generated output should still be audited against the real website.

How to Create an XML Sitemap in WordPress

WordPress has built-in sitemap functionality. SEO plugins such as Yoast SEO and Rank Math can also generate and manage sitemap files, often separating posts, pages, taxonomies, or other content types.

After enabling a sitemap, find its URL through the plugin settings or the site’s robots.txt file. Review the included content types and remove anything that should not be indexed.

How to Create an XML Sitemap for Shopify

Shopify automatically generates a sitemap for stores. The common path is /sitemap.xml, which may link to additional sitemap files for products, collections, pages, and blog content.

Because platform-generated files have customization limits, focus on controlling which pages are indexable, canonical, and linked internally. Then audit the generated sitemap to make sure it reflects the store’s intended search footprint.

How to Find an XML Sitemap of a Website

Check the robots.txt File

Open /robots.txt and look for a Sitemap: directive. A site may list one sitemap or a sitemap index.

Try a Common Sitemap URL

Try paths such as /sitemap.xml, /sitemap_index.xml, or a CMS-specific sitemap path. The correct path varies by platform.

Check the CMS or SEO Plugin

CMS settings and SEO plugin dashboards often show the generated sitemap location and the content types included in it.

Find the Sitemap Using Google Search Console

If you manage the property, the Sitemaps report shows sitemap URLs submitted for that property and their processing status.

How to Submit an XML Sitemap to Google Search Console

  1. Open Google Search Console and select the correct property.
  2. Navigate to the Sitemaps report.
  3. Enter the sitemap path or sitemap index URL.
  4. Submit the sitemap.
  5. Check the processing status and review any errors.

Submission tells Google where the sitemap is. It does not force every URL to be crawled or indexed. Continue to monitor URL inspection, coverage, indexing, and page-level quality signals.

How to Submit an XML Sitemap to Bing Webmaster Tools

Open Bing Webmaster Tools, choose the appropriate site, navigate to the sitemap submission area, enter the public sitemap URL, and submit it. Monitor the processing status and investigate any reported URL or XML errors.

How to Check and Audit an XML Sitemap

Check Whether the Sitemap Is Accessible

Open the sitemap URL in a browser or request it directly. Confirm that it returns the expected XML with a successful HTTP response and is not blocked by authentication, a firewall, or a server rule.

Validate XML Syntax and Formatting

Check that the file is well-formed XML, uses the correct namespace, has properly closed elements, and contains valid absolute URLs.

Check HTTP Status Codes

The sitemap itself should return a successful response. Each listed URL should also resolve successfully without unexpected server errors.

Identify Non-Indexable URLs

Check whether listed pages are blocked, marked noindex, redirected, duplicate, or otherwise not eligible for indexing.

Check Canonical URL Consistency

Compare each sitemap URL with its canonical tag. The sitemap should generally list the same preferred URL that the page declares as canonical.

Find Redirects and Broken URLs

Remove redirects and broken URLs from the sitemap. Replace them with the final destination only when that destination is the intended canonical, indexable page.

Identify Missing and Orphan Pages

Compare the sitemap against the site’s internal link graph, analytics, CMS inventory, and crawl data. A page may be listed in a sitemap but still be an orphan if no important page links to it.

Check Sitemap Size and URL Limits

Keep individual sitemap files within the applicable search engine limits. Use a sitemap index to divide large sites into multiple files and organize them by content type or site section.

Verify Last-Modified Dates

Use lastmod only when it reflects a meaningful content change. Do not update every date automatically just to encourage crawling; inaccurate dates reduce the value of the signal.

Website crawlers and technical SEO audit tools can automate many of these checks, but human review is still important for deciding which URLs are valuable and intended for indexing.

Common XML Sitemap Errors and How to Fix Them

Sitemap Could Not Be Fetched

Check the URL, HTTP status, DNS, robots rules, CDN, firewall, and server logs. Make sure the file is publicly accessible and does not require authentication.

Invalid XML or Formatting Errors

Validate the XML, correct malformed tags or encoding problems, and ensure that the sitemap uses the correct namespace and structure.

Sitemap Contains 404 URLs

Remove deleted URLs or replace them with the correct live canonical URL when one exists. Do not use the sitemap to preserve a deleted page.

Sitemap Contains Redirected URLs

Replace redirected entries with the final destination if it is canonical and indexable. Otherwise remove the entry.

Sitemap Contains Noindex Pages

Remove pages with a noindex directive unless the indexing strategy has intentionally changed. Sitemap and robots signals should not contradict the desired outcome.

Sitemap Contains Non-Canonical URLs

List the canonical URL instead, consolidate duplicate pages, or correct the page’s canonical signal if the listed URL is actually preferred.

Sitemap Exceeds URL or File-Size Limits

Split the sitemap into multiple files and create a sitemap index. Keep each file within the applicable limits for URLs and uncompressed file size.

Sitemap Submitted but URLs Are Not Indexed

Submission is only a discovery signal. Check crawlability, indexing directives, canonicalization, content quality, internal links, duplication, server performance, and whether the page is useful enough to be indexed.

XML Sitemap Best Practices

  • Include only preferred, indexable URLs.
  • Use absolute URLs.
  • Keep sitemap files within search engine URL and file-size limits.
  • Use a sitemap index for large websites.
  • Keep sitemap data updated.
  • Use accurate lastmod values.
  • Reference the sitemap in robots.txt.
  • Submit it through search engine webmaster tools.
  • Maintain consistent canonical signals.
  • Monitor sitemap processing and indexing reports.
  • Organize multiple sitemaps clearly by content type or site section.
  • Keep the sitemap generation process under version control or regular review where possible.

Frequently Asked Questions About XML Sitemaps

What is an XML sitemap used for?

It helps search engines discover important website URLs and understand which pages a site wants them to consider.

Is an XML sitemap necessary for SEO?

Not every small website needs one, but sitemaps are useful for large, new, frequently updated, or technically complex websites. They are also a practical way to communicate a site’s preferred URL inventory.

Does an XML sitemap improve Google rankings?

No. A sitemap is primarily a discovery and processing aid. It does not directly guarantee higher rankings.

How do I find the sitemap of a website?

Check robots.txt, try common sitemap paths, review CMS or SEO plugin settings, or use the Sitemaps report in a webmaster tools account you control.

How do I create an XML sitemap?

Use your CMS or SEO platform’s automatic generator, create a valid XML file manually, or use a sitemap generator and then audit its output.

How do I submit an XML sitemap to Google?

Open Google Search Console, select the property, go to Sitemaps, enter the sitemap URL, submit it, and monitor the processing status.

How often should an XML sitemap be updated?

Update it when URLs are added, removed, or meaningfully changed. The frequency depends on how often the site changes; accuracy is more important than updating it on a fixed schedule.

How many URLs can an XML sitemap contain?

Individual sitemap limits depend on the applicable search engine specification. When a site approaches the URL or file-size limit, split the files and use a sitemap index.

Can a website have multiple XML sitemaps?

Yes. Large sites commonly use multiple sitemaps organized by content type, language, site section, or update frequency, with a sitemap index connecting them.

Does every website need an XML sitemap?

No. A small, well-linked website may be easy for search engines to discover without one, but maintaining a sitemap is still useful for many sites and makes URL discovery easier to monitor.

What is the difference between an XML sitemap and an HTML sitemap?

An XML sitemap is intended for search engines and crawlers. An HTML sitemap is intended for visitors and provides a human-readable page list or navigation aid.

Why is my sitemap submitted but my pages are not indexed?

Submission does not guarantee indexing. Investigate crawlability, canonical tags, noindex, duplicate content, internal links, server errors, content quality, and whether the pages are valuable and eligible for search.

Conclusion

XML sitemaps are a practical part of technical SEO. They help search engines discover important URLs, especially on large, new, frequently updated, or complex websites.

The strongest sitemap is accurate, accessible, current, and consistent with your canonical, internal-linking, robots, and indexing signals. Create or generate the sitemap, submit it to the relevant webmaster tools, and audit it regularly as part of technical SEO maintenance.

[ Get Started ]

Ready to Fix Your SEO Automatically?

Discover technical issues, improve AI visibility, optimize internal links, and unlock measurable ranking growth with FixRank AI.

Start Free Audit