Starting a Business - 1440x460

What is a Sitemap?

A sitemap is a list of pages on your website, helping visitors or search engines find their way around.

There are two main types: an HTML sitemap, which displays links on a webpage for visitors to explore, and an XML sitemap, a file to help search engines like Google discover your content.

 

What is an XML sitemap?

XML stands for Extensible Markup Language. Search engines can find pages without an XML sitemap, but having one makes it easier for them to discover important pages, especially if your website is new, growing or regularly updated.

As well as listing pages, a sitemap can include information about when they were last updated, giving search engines an extra clue about your website’s content.

Unlike the menus and links your visitors use to navigate your site, an XML sitemap is designed for search engines and their crawlers, the automated programs that explore websites and discover content.

Here’s what a simple XML sitemap might look like:

Example XML sitemap
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <url>
    <loc>https://www.example.com/</loc>
  </url>

  <url>
    <loc>https://www.example.com/shop/</loc>
  </url>

  <url>
    <loc>https://www.example.com/blog/</loc>
    <lastmod>2026-11-20</lastmod>
  </url>

</urlset>

<loc> tells search engines the address of a page.

<lastmod> is optional. It tells search engines when the page’s content was last meaningfully updated, provided the date is accurate.

You don’t need to understand or write this code yourself. Most modern website platforms can generate an XML sitemap for you.

 

Why are XML sitemaps important?

Search engines discover websites by following links from one page to another. This process is called crawling.

But what if you’ve just launched a website and hardly anyone links to it yet? Or you’ve published a new page that isn’t linked from anywhere else on your site?

An XML sitemap gives search engines another way to discover those URLs.

It can be particularly helpful when:

  • Your website is new. Search engines might not have discovered all your pages yet.
  • You have lots of pages. A sitemap helps search engines discover content across a larger website.
  • You regularly publish new content. New blog posts, products and other pages can be added to your sitemap.
  • Some pages are difficult to find. A sitemap can point search engines towards pages they might otherwise miss.

There’s one important distinction, though. A sitemap helps search engines discover pages, but it doesn’t guarantee they’ll appear in search results. Google still decides which pages to crawl, index and show to people.


XML sitemap vs HTML sitemap vs robots.txt

File or page What it does Main purpose
XML sitemap Lists important URLs in a format search engines can read. Helps search engines discover website content.
HTML sitemap Displays links to website pages in a format visitors can browse. Helps people navigate a website.
Robots.txt Gives search engine crawlers instructions about which parts of a site they can access. Controls crawler access to certain URLs.

See also: What is Robots.txt?

 

Where can I find my website’s XML sitemap?

Many websites have an XML sitemap at an address ending in /sitemap.xml.

Try typing your website address into your browser, followed by one of these:

  • yourwebsite.co.uk/sitemap.xml
  • yourwebsite.co.uk/sitemap_index.xml
  • yourwebsite.co.uk/wp-sitemap.xml

If you see a page full of URLs and code, you’ve probably found it!

Not all websites use the same address, though. Some have several XML sitemaps grouped together in a sitemap index, which is effectively a directory of other sitemap files.

 

Do I need to create an XML sitemap myself?

Probably not! Most people building a website today won’t need to write a single line of XML.

For example, WordPress includes built-in XML sitemap functionality. If you’re building with Managed Hosting for WordPress, your WordPress site can generate a sitemap without you writing the code yourself.

Popular SEO plugins such as Yoast SEO can also create and update XML sitemaps automatically as you add or change content.

If you’re using a website-building platform such as 123 Reg Website Builder, you won’t need to write XML to create your pages. You can check your published site’s sitemap address or SEO settings to see how your sitemap is handled.

Of course, you can create a sitemap manually if you prefer, particularly if you’re building your website from scratch.

 

How do I submit an XML sitemap to Google?

Once you have a sitemap, you can submit it through Google Search Console, Google’s free tool for monitoring how your website appears in search results.

Here’s how:

  1. Open Google Search Console and select your website.
  2. Find Sitemaps in the menu.
  3. Enter your XML sitemap’s address.
  4. Click Submit.

That’s it. Google can now use the sitemap to discover pages on your website.

You can also return to the Sitemaps report to check whether Google has successfully read your file or encountered any errors.

Submitting your sitemap isn’t compulsory. Google may discover it through other methods, including your robots.txt file. But Search Console is useful for checking its status and spotting problems.

See also: The Beginner’s Guide to Google Search Console

 

Does an XML sitemap improve SEO?

Yes and no. An XML sitemap can help search engines discover your content, which makes it a useful part of technical SEO.

But simply having one won’t make your website rank higher in Google.

Think of your sitemap as giving Google a list of pages to look at. It still needs to visit those pages, understand the content and decide whether they’re worth including in search results.

Good content, clear navigation, helpful internal links and a website that works well on different devices all matter too.

 

Does every website need an XML sitemap?

Not necessarily. Google can often discover the pages on a small website without one, provided they’re properly linked together.

That said, an XML sitemap is worth having, particularly as your website grows. And if your website platform generates one automatically, there’s little reason not to use it.

 

Should every page appear in my XML sitemap?

No. Your sitemap should focus on the pages you want search engines to find and potentially include in search results.

That might mean your homepage, service pages, product pages and blog posts.

You generally wouldn’t include duplicate pages, private account areas or pages you’ve deliberately marked as noindex, meaning you’ve asked search engines not to show them in search results.

And remember, leaving a page out of your sitemap doesn’t make it private or stop Google finding it through other links.

 

For more search engine optimisation (SEO) tips, check out: 7 Simple SEO Tips to Help Your Business Outrank the Competition

Find your perfect domain name today

Edit Template

In this article

Building a website and customising it to make it your own has never been easier. If you’ve been using the 123 Reg Website Builder to get your site online, you likely already know...

If you want your small business to thrive in 2021, it’s time to start planning your digital marketing strategy. But what should you focus on to attract, engage, and retain customers and generate...

The UK is one of the biggest domain markets on the planet, with thousands of new co.uk domains registered every year. From the corner pub to the national law firm, a website address...

The UK online marketplace continues to boom — there’s no time like now to start your own online business. But with so many different ways to sell, it can get a bit overwhelming....