What Is a Sitemap
A sitemap is a file that lists a website's important URLs and related metadata to help search engines discover and crawl the site more efficiently.

Key takeaways
- A sitemap helps search engines discover and crawl your site's important pages.
- It is a crawl hint, not a ranking factor or indexing guarantee.
- XML sitemaps are for search engines; HTML sitemaps are for users.
- Include only indexable, canonical URLs in your sitemap.
- Submit your sitemap via Google Search Console and monitor for errors.
Sitemaps are a fundamental part of technical SEO, helping search engines find and understand your site's content.
Example of a Sitemap
A typical XML sitemap looks like this:
```xml <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://example.com/</loc> <lastmod>2024-01-01</lastmod> <changefreq>monthly</changefreq> <priority>1.0</priority> </url> <url> <loc>https://example.com/about</loc> <lastmod>2023-12-15</lastmod> <changefreq>yearly</changefreq> <priority>0.8</priority> </url> </urlset> ```
Each `<url>` entry includes the page location (`<loc>`), optional last modification date (`<lastmod>`), how often it changes (`<changefreq>`), and its relative importance (`<priority>`).
When Should You Use a Sitemap?
Use a sitemap when:
- Your site has many pages (e.g., hundreds or thousands).
- Your site is new and has few external links.
- Your site has deep or isolated pages that are hard to reach through internal links.
- Your site uses rich media (videos, images) that you want indexed.
- Your site is large and you want to prioritize certain pages for crawling.
- Your site has frequent updates (e.g., news, blog posts).
If your site is small and well-linked internally, a sitemap may not be necessary but can still help.
What a Sitemap Is Not
- A ranking factor: A sitemap does not improve rankings; it only helps with discovery and crawling.
- A guarantee of indexing: Search engines may ignore URLs in a sitemap if they are low-quality or blocked.
- The same as an HTML sitemap: XML sitemaps are for search engines; HTML sitemaps are for users.
- A replacement for good internal linking: Sitemaps supplement, not replace, a solid site structure.
- A command: It is a hint, not an instruction. Search engines decide what to crawl.
Quick Start: How to Create and Submit a Sitemap
- Generate your sitemap using a CMS plugin (e.g., Yoast SEO for WordPress) or an online generator.
- Validate the sitemap using a tool like Google's Sitemap Validator.
- Upload the sitemap to your site's root directory (e.g., `https://example.com/sitemap.xml`).
- Submit to Google Search Console: Go to 'Sitemaps' in Search Console, enter your sitemap URL, and click 'Submit'.
- Monitor coverage: Check for errors, warnings, and indexed URLs in Search Console.
Common Sitemap Mistakes to Avoid
- Including noindexed pages: URLs with `noindex` tags should not be in your sitemap.
- Including blocked pages: Pages blocked by `robots.txt` or `X-Robots-Tag` will not be crawled.
- Including redirected or canonicalized URLs: Use the final, canonical URL only.
- Using an HTML sitemap instead of XML: HTML sitemaps are for users, not search engines.
- Ignoring sitemap errors: Check Search Console regularly for crawl errors or warnings.
- Not updating the sitemap: Keep it current as you add or remove pages.
Next step
FAQ
What is a sitemap in SEO?
A sitemap is a file that lists a website's important URLs to help search engines discover and crawl them. It is a crawl hint, not a ranking factor.
What is the difference between an XML sitemap and an HTML sitemap?
An XML sitemap is designed for search engines to crawl, while an HTML sitemap is a user-facing page that lists links for navigation.
Do I need a sitemap for a small website?
If your site has strong internal linking and few pages, a sitemap may not be necessary. However, it can still help with discovery.
How do I create a sitemap?
You can create a sitemap using a generator tool, a CMS plugin (e.g., Yoast SEO for WordPress), or manually with a text editor.
Related topics
Sources
- Google Search Central: Sitemaps overview — Primary source for Google's definition, use cases, and metadata supported in sitemaps.
- sitemaps.org — Official sitemap protocol reference describing sitemap files and metadata fields.
- Google Search Central: Sitemaps documentation — Best source for submission, discovery, and practical SEO guidance.
Reviewed by Lucía Marín, Founding editor.