An XML sitemap is a file that lists the pages on your website in a structured format that search engines can read easily. Think of it as a contents page for your site — one written not for human visitors, but for Google, Bing, and other search engine crawlers.
Whether you need one depends on the size and complexity of your site. Small sites with clear internal linking may not need a sitemap at all. For larger sites, e-commerce stores, or any site that publishes new content frequently, an XML sitemap is one of the simplest ways to make sure search engines can find and index all your pages.
What an XML Sitemap Contains
At its most basic, an XML sitemap is a list of URLs. Each URL entry can also include optional metadata: how often the page changes (daily, weekly, monthly), the date it was last modified, and a priority value between 0 and 1 indicating its relative importance compared to other pages on the site.
Beyond standard page sitemaps, there are specialised sitemap types for images, videos, and news content. If your site publishes a lot of photography or product images, an image sitemap helps Google index those images for Google Images search. News sitemaps are used by publishers eligible for Google News to flag recent articles.
Sitemaps follow the Sitemap Protocol standard (sitemaps.org), which both Google and Bing support. The file is usually located at yourwebsite.com/sitemap.xml, though you can place it anywhere as long as you tell Google where to find it.
How to Create and Submit Your Sitemap
If you use WordPress, plugins like Yoast SEO, Rank Math, or All in One SEO generate and update your sitemap automatically. You’ll find the sitemap URL in your plugin settings — it’s usually yoursite.com/sitemap_index.xml. Shopify and Squarespace create sitemaps automatically at yoursite.com/sitemap.xml.
For custom-built sites, you can generate a sitemap using free tools like XML-Sitemaps.com, which crawls your site and produces a downloadable file you then upload to your server. For larger sites with thousands of pages, server-side generation is better — the sitemap can be built programmatically and updated whenever new content is published.
Once your sitemap is ready, submit it in Google Search Console. Go to Sitemaps under the Index menu, paste in your sitemap URL, and hit Submit. Google will crawl the sitemap and report back on how many URLs it found and any errors. Bing has an equivalent submission tool in Bing Webmaster Tools.
Common Sitemap Mistakes to Avoid
Including non-canonical URLs is one of the most frequent errors. If you have duplicate pages (for example, a page accessible with and without www, or with different URL parameters), only include the canonical version in your sitemap. Including duplicate URLs can confuse crawlers and dilute your crawl budget.
Listing noindex pages in your sitemap contradicts your own instructions to Google — you’re saying ‘don’t index this’ in the page’s meta tag while simultaneously telling Google to crawl it via the sitemap. Audit your sitemap periodically to ensure every URL in it is one you actually want indexed.
Common questions.
Does having a sitemap guarantee Google will index my pages?
How large can an XML sitemap be?
Do I need to update my sitemap every time I publish new content?
More on web design & ux.
Want a hand putting this into practice?
Book a free, no-obligation consultation with a Norwich-based specialist.
Let's put your business in a better light.
Book a free, no-pressure consultation. We'll talk through your goals and tell you honestly what we'd do — whether you work with us or not.