Skip to content

Sitemap

Also called: sitemaps, XML sitemap, XML sitemaps, sitemap.xml

Published:

What is a sitemap for?

Google describes a sitemap as a file where you provide information about the pages, videos and other files on your site, which search engines read to crawl the site more efficiently [1]. Beyond listing important URLs, it can record when a page was last updated and point to alternate language versions [1].

Does every site need one?

Not every site. Google singles out two cases: on large sites it gets harder to make sure every page is linked from at least one other page, and on new sites with few external links crawlers may never find some pages, because they discover pages by following links [1]. Sites with a lot of video, image or news content also benefit. A sitemap does not, however, guarantee that everything in it will be crawled and indexed [1].

How is the XML format structured?

Under the sitemaps.org protocol, the file opens with a urlset tag, and each address sits in its own url entry with a loc child. lastmod, changefreq and priority are optional, and how much search engines use them varies [2]. A single file can list up to 50,000 URLs and be no larger than 50 MB uncompressed; bigger sites split their URLs across several files grouped by a sitemap index. Files must be UTF-8 encoded [2].

For example, a bilingual blog lists the Turkish and English URL of every post and fills lastmod with the date the post actually changed. A search engine reading the file can then see which pages were recently updated [1].

Frequently asked questions

Does a sitemap guarantee indexing?

No. Google says it does not guarantee that every item in a sitemap will be crawled and indexed.

How many URLs can one sitemap hold?

Up to 50,000 URLs and 50 MB uncompressed, per the sitemaps.org protocol.

Sources

  1. What Is a Sitemap — Google Search Central
  2. Protocol — sitemaps.org