What Is a Sitemap and How Do You Create One?

You have published a new website, but Google does not seem to know it exists. One of the first things an SEO expert will ask is: "Have you submitted a sitemap?" If you are not sure what is a sitemap or why it matters, this guide explains it in plain language and shows you how to create and submit one in a few minutes.

Screenshot of the Sitemap Generator on Assen Tools
The Sitemap Generator in use. Open the Sitemap Generator – free, no sign-up.

A sitemap in simple terms

A sitemap is a list of the pages on your website that you want search engines to find. The most common type is an XML sitemap – a file, usually at yoursite.com/sitemap.xml, that looks something like this:

<url>
  <loc>https://example.com/services</loc>
  <lastmod>2026-10-01</lastmod>
</url>

Each entry gives the page address and, optionally, when it was last updated. Search engines read the file to discover pages and to know which ones have changed.

There are also HTML sitemaps – ordinary pages listing links for human visitors. They can help navigation on large sites, but the XML version is what search engines use.

Does your website need a sitemap?

Google can find pages by following links, so a small, well-linked site can be indexed without one. But a sitemap is free, quick and helps in many situations:

  • New websites with few links from other sites
  • Large sites with hundreds or thousands of pages
  • Online shops where products are added and removed often
  • Pages that are not well linked from your navigation
  • Sites with lots of fresh content, such as blogs and news

In short: almost every site benefits from one.

How to create a sitemap

If you use WordPress, Shopify, Wix or similar, a sitemap is usually generated automatically. On WordPress, SEO plugins such as Yoast or Rank Math create one at /sitemap_index.xml.

If you have a custom or static site, use the Sitemap Generator. Enter your page addresses, set optional dates and priorities, and download the finished sitemap.xml. Upload it to the main folder of your website.

A few rules for a healthy sitemap:

  • Only include pages you want indexed – not login pages, thank-you pages or duplicates.
  • Use the full, final URL (with https and without redirects). The Canonical URL Generator helps you decide which version is the main one.
  • Keep each file under 50,000 URLs.
  • Update it when you add or remove pages.

Point to it from robots.txt

Your robots.txt file tells search engine crawlers which parts of the site to avoid. Adding one line pointing to your sitemap helps every search engine find it:

Sitemap: https://example.com/sitemap.xml

The Robots.txt Generator builds a correct file for you, including the sitemap line.

Submit it to Google Search Console

  1. Open Google Search Console and add your site (DNS verification is easiest).
  2. Go to Sitemaps.
  3. Enter the full sitemap URL and click Submit.
  4. Check back in a day or two – the status should say "Success" with the number of URLs discovered.

Do the same in Bing Webmaster Tools, which can import your settings directly from Search Console.

A sitemap does not guarantee indexing

Submitting a sitemap tells Google that pages exist – it does not force them into search results. Google still judges whether each page is useful and unique. Thin or duplicate pages may be "discovered – currently not indexed". Improve those pages with genuine, helpful content, write clear titles and descriptions (see how to write a meta description), and make sure your site loads quickly – our guide on how to improve website speed shows how.

Summary

So, what is a sitemap? A simple list of your important pages that helps search engines find and update them. Create one with your CMS or the free Sitemap Generator, reference it in robots.txt, and submit it to Google Search Console and Bing. It takes minutes and gives every page a better chance of being found.

Jonathan Nwachukwu, founder of Assen Tools

Written by

Jonathan Nwachukwu · Founder & developer

Jonathan is a freelance web developer and web development teacher who builds Laravel, WordPress and WooCommerce sites for clients. He built AssenTools to put the everyday file, photo and calculation jobs he kept doing for clients and students into one free, private toolbox, and he maintains every tool and guide on the site.