How to Create an XML Sitemap and Submit It to Google

How to Create an XML Sitemap and Submit It to Google

To create an XML sitemap, enter your homepage URL in the XML Sitemap Generator on pdfseotools.com and download the file. Upload it to your site root as sitemap.xml, add it to robots.txt and submit it in Google Search Console under Sitemaps. WordPress and most CMSs can also create one automatically.

How to Create an XML Sitemap and Submit It to Google

Key facts

  • Generator crawls your homepage plus pages linked from it (1 level)
  • Respects robots.txt and skips nofollow links
  • Output: a standard XML sitemap file to download
  • Submit in Google Search Console → Sitemaps, and in Bing Webmaster Tools

Do you need a sitemap?

Do you need a sitemap?

🛠️ Google can find pages through links, but a sitemap helps when your site is new, has few backlinks, or has pages that are not well linked internally. It also helps Bing and other search engines discover new content faster.

How to create a sitemap – step by step

How to create a sitemap – step by step

Step 1: Enter your homepage URL

Open the XML Sitemap Generator and paste your full homepage address, including https://.

Step 2: Generate

The tool visits your homepage and the pages it links to, and builds the sitemap. Larger sites take longer.

Step 3: Download and review

Open the file and make sure the important pages are listed and no private pages are included.

Step 4: Upload to your site root

Upload the file so it opens at https://yourdomain.com/sitemap.xml.

Submit it to Google and Bing

Submit it to Google and Bing
  1. Open Google Search Console and select your verified property.
  2. Go to Sitemaps, type sitemap.xml and press Submit.
  3. Check the status after a few days – it should say "Success" with the number of discovered URLs.
  4. Repeat in Bing Webmaster Tools, which can also import your Google settings.
  5. Add Sitemap: https://yourdomain.com/sitemap.xml to your robots.txt file.
💡 Want to try it right now? Open the free XML Sitemap Generator – it takes less than a minute, works on phone and computer and needs no sign-up. Open XML Sitemap Generator →

Using a CMS? You may already have one

PlatformBuilt-in sitemap
WordPress (5.5+)/wp-sitemap.xml – or the one from Yoast / Rank Math
Blogger/sitemap.xml
Shopify/sitemap.xml
Laravel / custom sitesUse a sitemap package or this generator

CMS sitemaps update themselves when you publish, so they are the best choice for large or frequently updated sites. Use the generator for small static sites, or to compare what a crawler can actually reach from your homepage.

Common mistakes

  • Listing pages that are blocked by robots.txt or marked noindex – it sends mixed signals.
  • Including login, cart or thank-you pages that should not appear in search.
  • Forgetting to update the file after adding new pages.
  • Submitting http:// URLs when the site uses https://.
Try the free XML Sitemap Generator now

Open the XML Sitemap Generator on pdfseotools.com – free, no sign-up and it works on any device.

Open XML Sitemap Generator →

Frequently Asked Questions

What is an XML sitemap?

A file that lists the important URLs of your website so search engines like Google and Bing can find and crawl them more easily.

How many pages does the generator include?

It crawls your homepage and the pages linked directly from it (one level deep), skipping nofollow links and anything blocked by robots.txt. That suits small sites; larger sites should use a sitemap built into their CMS.

Does a sitemap guarantee indexing?

No. It helps Google discover pages, but Google still decides what to index based on quality and usefulness.

Where do I put the sitemap file?

Upload it to your site root so it opens at yourdomain.com/sitemap.xml, then submit that URL in Google Search Console.

How often should I update it?

Whenever you add or remove important pages. CMS-generated sitemaps update automatically.

Should I list my sitemap in robots.txt?

Yes. Add a line such as "Sitemap: https://yourdomain.com/sitemap.xml" so all search engines can find it.

Summary

Generate, review, upload to the root, submit in Search Console – four steps that help search engines find your pages. Pair it with the .htaccess Redirect Generator to keep one clean https version of every URL, and explore more free webmaster tools.


Share on Social Media: