Launch offer: 3-day trial for $1, then $39/mo. Cancel anytime.

Technical SEO

XML Sitemap

Last updated

What is XML Sitemap?

An XML sitemap is a file that lists the URLs of a website, along with optional metadata such as last modification date, change frequency, and priority, in a structured format readable by search engines. It serves as a roadmap that helps crawlers discover and understand the full scope of a site's content, especially pages that might not be easily discoverable through internal links alone.

Sitemaps are submitted to Google Search Console and Bing Webmaster Tools to accelerate indexing. While having a sitemap does not guarantee that all listed URLs will be indexed, it reduces the chance of important pages being missed. Best practices include keeping sitemaps under 50,000 URLs and 50 MB uncompressed (or splitting into multiple sitemaps with a sitemap index file), excluding noindex and redirected pages, and keeping `lastmod` dates accurate. Google ignores the `changefreq` and `priority` values.

Why it matters for SEO

An XML sitemap is a foundational technical SEO asset that ensures search engines can discover all important pages on a site, particularly deep pages or those without strong internal link paths. It is especially critical for large or newly launched sites where organic crawl discovery may be slow.

Example

A new recipe site lists its 120 recipe URLs in /sitemap.xml, each entry with a <loc> and an accurate <lastmod> date, and references the file in robots.txt with "Sitemap: https://example.com/sitemap.xml". After submitting it in Google Search Console, the owner can see how many of the submitted URLs are indexed and spot any that are excluded.

Put the theory to work

LazySEO researches keywords, writes SEO articles and publishes them to your site on a schedule.

Start $1 Trial$1 today, then $39/mo. Cancel anytime.