SSAYF & CO.TOOLS
Free audit

How to Create an XML Sitemap and Submit It to Google

What an XML sitemap does, which pages belong in it, how to create one for free and how to submit it in Google Search Console.

SEO · 2 min read · · By Saifullah Ghanghro

How to Create an XML Sitemap and Submit It to Google

An XML sitemap is a file that lists the pages on your website you want search engines to find. It does not guarantee rankings, but it helps Google discover new and updated pages faster, especially on newer sites with few links.

Do you already have one?

Many platforms create a sitemap automatically. Try yoursite.com/sitemap.xml or yoursite.com/sitemap_index.xml, or run the sitemap checker. WordPress SEO plugins, Shopify and most website builders generate one for you.

Which pages belong in it

  • Include pages you want to appear in search: home, services, products, blog posts.
  • Leave out thank-you pages, login pages, duplicates and anything marked noindex.
  • Every URL should load normally, not redirect or show an error.

Create one for free

If your site has no sitemap, the XML sitemap generator builds one from your page list. Save it as sitemap.xml and upload it to the root folder of your website.

Tell search engines where it is

  1. Add a line to your robots.txt file: Sitemap: followed by the full sitemap URL. Check the file with the robots.txt checker.
  2. In Google Search Console, open Sitemaps, paste the sitemap address and press Submit.
  3. Come back after a few days to see how many pages were discovered and whether there were errors.

Sitemap messages in Search Console

After you submit a sitemap, Search Console shows its status. Success means it was read. Couldn't fetch usually means the address is wrong, the file is blocked by robots.txt or the server returned an error; open the sitemap URL in your browser to check. Has errors often points to invalid URLs, pages that redirect or pages blocked from indexing. Fix the listed URLs, then resubmit.

Size limits

A single sitemap file can list up to 50,000 URLs and be up to 50 MB uncompressed. Larger sites split their URLs across several sitemaps and list them in a sitemap index file. Most small business sites are nowhere near these limits.

Keep it up to date

Automatic sitemaps update themselves. If you made yours manually, regenerate it whenever you add or remove important pages.

Sayf & Co.

Tools find the problems. We fix them.

Get a free audit of your website, search presence and social channels — with a clear, prioritised plan to grow.

Get your free audit