What is a sitemap? A file listing your site's important pages so search engines can find them. Here's what an XML sitemap does and how to use one.
What Is a Sitemap?
A sitemap is a file that lists the important pages of your website so search engines can find and crawl them more easily. The most common type, an XML sitemap, is a machine-readable list of your URLs submitted to search engines. It doesn’t guarantee ranking, but it helps ensure search engines discover all your key pages — especially on larger or newer sites.
Here’s what a sitemap does, who needs one, and how it fits with crawling.
What a sitemap does
An XML sitemap is essentially a roadmap of your site handed to search engines. It lists the URLs you want crawled and can include extra hints like when a page was last updated. Search engines use it as one input for discovering pages — alongside following links. It’s especially valuable for pages that might be hard to reach through internal links alone, ensuring nothing important gets missed during crawling.
XML vs. HTML sitemaps
Two different things share the name:
- XML sitemap — machine-readable, for search engines. This is the one that matters for SEO; you submit it to search-engine tools.
- HTML sitemap — a human-readable page listing your site’s pages, for visitors. Less common now, occasionally useful for navigation and internal linking.
When people talk about a sitemap for SEO, they almost always mean the XML sitemap.
Who needs a sitemap
A sitemap helps most for:
- Large sites with many pages that are hard to crawl fully.
- New sites with few external links pointing to them yet.
- Sites with pages not well-connected by internal links.
- Sites with rich media or news that benefit from specialized sitemaps.
Small, well-linked sites may be crawled fine without one — but a sitemap rarely hurts and is generally recommended as good technical SEO hygiene.
Sitemaps and crawling: what to expect
An honest expectation: a sitemap helps discovery; it doesn’t force crawling, indexing, or ranking. Listing a page in your sitemap tells search engines it exists and you consider it important, but they still decide whether to crawl and index it based on quality and other signals. So a sitemap is a helpful signal, not a magic “index my pages” button — a common misunderstanding.
How to use a sitemap
Most website platforms generate an XML sitemap automatically; you then submit it in search-engine webmaster tools and reference it in your robots.txt. Keep it current (it should update as you add pages), include only canonical, indexable URLs (not duplicates or noindex pages), and make sure it’s accessible. Done right, it’s a low-effort way to help search engines find everything that matters. (SEO consulting covers sitemaps as part of the technical setup.)
Frequently asked questions
What is a sitemap in simple terms? A sitemap is a file that lists the important pages of your website so search engines can find and crawl them more easily. The main type for SEO is an XML sitemap, a machine-readable list of your URLs that you submit to search engines. It helps ensure your key pages are discovered, especially on large or new sites.
What is an XML sitemap? An XML sitemap is a machine-readable file listing the URLs on your site that you want search engines to know about, sometimes with details like when each page was last updated. You submit it to search-engine tools, and engines use it to help discover your pages. It’s the type of sitemap that matters for SEO, as opposed to an HTML sitemap for visitors.
Do I need a sitemap for SEO? It depends on your site. Large sites, new sites with few backlinks, and sites with poorly linked pages benefit most, since a sitemap helps search engines find pages they might otherwise miss. Small, well-linked sites may be crawled fine without one, but a sitemap rarely hurts and is generally recommended as good technical SEO practice.
Does a sitemap improve rankings? Not directly. A sitemap helps search engines discover your pages, but it doesn’t force crawling, indexing, or ranking, and it’s not a ranking factor itself. Its value is ensuring your important pages get found. Whether they’re then indexed and how they rank still depends on content quality and other signals, so a sitemap is a discovery aid, not a ranking boost.
What is the difference between an XML and HTML sitemap? An XML sitemap is machine-readable and made for search engines, listing your URLs so they can be discovered — this is the one that matters for SEO. An HTML sitemap is a human-readable page listing your site’s pages for visitors to navigate. When people mention a sitemap for SEO, they almost always mean the XML sitemap.
How do I submit a sitemap to Google? Generate an XML sitemap (most platforms do this automatically), then submit its URL in Google Search Console under the sitemaps section, and reference it in your robots.txt file. Keep the sitemap current and include only canonical, indexable URLs. Submitting it helps Google discover your pages, though it still decides what to crawl and index.
What should a sitemap include? A sitemap should include your canonical, indexable URLs — the important pages you want search engines to find — and exclude duplicates, noindex pages, and redirects. Keep it current so it reflects new and removed pages, and make sure it’s accessible. A clean sitemap listing only pages you want indexed sends the clearest signal to search engines.
Written by Bryan Collins, SEO & AEO strategist. Want search engines finding every key page? See hands-on SEO help or run a free local SEO audit.