Snoika
Glossary·Technical SEO

What is a sitemap

Definition

A sitemap is a file that lists the pages on a website you want search engines to find, with optional dates for when each page last changed.

Crawlers read it to find URLs they miss when they follow links. A sitemap is a map of your site written for machines. The usual format is XML, saved at the site root as /sitemap.xml.

TermSitemap3 min read · reviewed by the Snoika team

XML sitemap defined for SEO

An XML sitemap is a structured text file that follows the sitemaps.org protocol and gives each URL its own entry. In SEO it helps search engines discover pages. It tells Google and Bing which canonical pages exist and when they changed, but it can't force either engine to index or rank a page. Google's documentation limits one file to 50,000 URLs or 50MB uncompressed, so larger sites split their URLs across several files.

Why sitemaps affect AI visibility

AI assistants can only cite pages that a search index has already found, and sitemaps help pages get found sooner. Bing's index feeds Copilot's answers. In a July 2025 Bing post, the Microsoft team wrote that "the lastmod field in your sitemap remains a key signal" for deciding which URLs to recrawl. An accurate sitemap gets updated pages into AI answers faster. Check that your lastmod dates change only when the content does.

How crawlers use sitemaps

A crawler fetches the sitemap and reads its URLs. It adds new or changed URLs to its crawl queue. Links are still the main way bots find pages. The sitemap catches what links miss, such as orphan pages and new posts that nothing links to yet. Google ignores priority and changefreq, so filling in those tags does nothing for you.

What a 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/pricing</loc>
    <lastmod>2025-06-04</lastmod>
  </url>
</urlset>

Each page sits inside its own `<url>` tag. The `<loc>` tag holds the full address and is the only required field. `<lastmod>` is optional and takes a date in the W3C format shown above. Save the file in UTF-8 and use absolute, canonical URLs.

Sitemap types compared

The two main types are XML sitemaps, which are written for crawlers, and HTML sitemaps, which are ordinary web pages written for people. Both describe the same site, but each has a different reader.

XML versus HTML sitemaps

An XML sitemap is a file that visitors never see. Search engines read its tags and dates. An HTML sitemap is a page of links, linked from the footer, that helps a lost visitor find a section. It passes internal links too, but it carries no lastmod data. Most sites today rely on the XML version and keep an HTML page only when their navigation is deep.

Specialized XML sitemaps

Image and video sitemaps add details about the media on a page, such as a video's duration. News sitemaps list recent articles for Google News. And a sitemap index is a file that points to other sitemaps. A site past the 50,000-URL limit needs one.

When your site needs one

Your site needs a sitemap when it's large or new. Sites with weak internal links or heavy media content also need one. Google says a site of about 500 pages or fewer that links to every important page from the home page doesn't need one. Most content management systems create a sitemap anyway, and leaving it switched on costs nothing. Check that it leaves out redirects and pages set to noindex.

How to submit to Google

You submit a sitemap in Google Search Console's Sitemaps report:

  1. 011Verify that you own your site in Google Search Console.
  2. 022Open Indexing, then Sitemaps.
  3. 033Enter the sitemap URL, for example sitemap.xml, and click Submit.
  4. 044Come back a few days later and confirm that the status reads "Success" and the number of discovered pages looks right.

Also add the line `Sitemap: https://example.com/sitemap.xml` to your robots.txt file. Bing and other crawlers will then find the sitemap without a separate submission.

Related SEO terms

Robots.txttells crawlers which paths to skip. A sitemap lists the paths you want crawled.
Crawl budgetthe number of URLs a search engine will crawl on your site. A clean sitemap keeps that budget on pages that matter.
Canonical URLthe preferred version of a duplicate page. Only canonical URLs belong in a sitemap.
IndexNowa protocol that alerts search engines the moment a URL changes. A sitemap waits for the crawler to come back and read it.

Now that you know what a sitemap is, open yourdomain.com/sitemap.xml in a browser and see what's listed. If the file is missing, look in your CMS settings. If it's there, audit its URLs against the pages you want in search results.

Look up more AI search and SEO terms in our glossary.

Related terms

All terms
Reverse proxyA reverse proxy is a server that sits in front of a website and gets every request before the site's own server does. It decides where each request goes, then sends the answer back to the visitor. A reverse proxy is a gatekeeper on the website's side of the connection. Visitors and crawlers only eveStructured dataStructured data is information arranged in fixed, labeled fields, so a machine can read it without guessing what it means. On a website, the term means schema markup. That's code in a format such as JSON-LD that tells search engines and AI assistants exactly what a page describes, such as a product SubdomainA subdomain is a label added to the left of a registered domain name. It creates a separate address under that domain, such as blog.example.com under example.com. The domain owner can create subdomains at no extra cost and point each one to its own server. A subdomain is a named branch of a domain tOrphan pageAn orphan page is a live page on a website that no other page on the same site links to. Visitors and search engine crawlers can reach it through a direct URL or a sitemap entry. A link from another domain provides the only other route. In SEO, orphan content sits outside the site's internal link structure.Robots.txtRobots.txt is a plain text file at the root of a website. It tells crawlers which URLs they may request. Search engines and AI bots fetch it before they crawl anything else, and the file uses it to ask them to skip certain paths. It can't force a bot to obey, and it doesn't remove pages from search results. Robots.txt contains crawl requests that well-behaved bots choose to follow.HreflangHreflang is an HTML attribute that tells search engines which language and region each version of a page is written for. If you're asking what is hreflang, you mean the hreflang tag in a page's head. It lists every translated or regional copy of a page so Google can show each searcher the copy in their language.

See how AI talks about your brand

Get free audit