An XML sitemap is a file on your website that lists the pages you want search engines to find. Think of it as a delivery list you hand to Googlebot rather than hoping it discovers every page by following links.
Quick answer
An XML sitemap is a machine-readable list of your important URLs, often with the date each one last changed. It helps search engines discover pages, especially on new or large sites, but it does not guarantee they will be indexed.
What an XML sitemap looks like
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.ie/services/boiler-repair/</loc>
<lastmod>2026-11-20</lastmod>
</url>
</urlset> Each <url> entry holds one page address. Most websites never write this by hand: WordPress and SEO plugins such as Rank Math or Yoast create it automatically, usually at /sitemap_index.xml or /wp-sitemap.xml.
What to include, and what to leave out
- Include the canonical version of every page you want in Google.
- Leave out redirected URLs, pages marked noindex, duplicates and error pages. Our guide on checking a sitemap for incorrect URLs shows how.
- Keep it current, so new pages appear and deleted ones disappear.
How to submit a sitemap to Google
- Find your sitemap URLTry
/sitemap_index.xmlor/sitemap.xmlin your browser. - Open Search ConsoleGo to Sitemaps in Google Search Console.
- Submit and checkEnter the address, submit, then confirm the status says Success.
You can also point to it from your robots.txt file with a Sitemap: line, as the sitemaps protocol allows.
Common misconceptions
- A sitemap does not improve rankings on its own.
- Listing a page does not make Google index it. See Crawled - currently not indexed.
- Small, well-linked sites can be fine without one, though there is little downside to having it.
Related terms: canonical URL, crawl budget and orphan page. For the bigger picture, read crawling, indexing and ranking and the technical SEO guide. Our technical SEO service and website SEO audit both check sitemaps.
Frequently asked questions
Do I need an XML sitemap?
Google says small, well-linked sites may not need one, but most business sites benefit and plugins make it effortless.
How often should a sitemap update?
Whenever pages are added, removed or meaningfully changed. Plugins do this automatically.
What is the difference between an XML and an HTML sitemap?
An XML sitemap is for search engines. An HTML sitemap is a normal page listing links for visitors.
Should images have their own sitemap?
Only if images are important for search, such as a photography portfolio. Most sites do not need one.