Live tool

XML sitemap generator

Enter your website. We follow its links, list every page and hand you a sitemap.xml that is ready for Google.

Up to 200 pagesReady for GoogleNo signup

01

What a sitemap is and why it matters

A sitemap is a file that lists the pages on your website, so search engines can find them without guessing. Google describes it as "a file where you provide information about the pages, videos, and other files on your site" in its sitemaps overview.

  • It helps Google discover pages it might miss by following links alone.
  • It tells Google which version of a page you prefer, when the same content lives at more than one address.
  • It can say when a page last changed, so Google knows what is worth a fresh look.

02

When you need a sitemap, and when you do not

You need a sitemap most when your site is large, new, or hard to crawl. Google's overview names three cases where a sitemap helps:

  • Your site is large. The more pages you have, the easier it is for some to sit with no links pointing at them.
  • Your site is new and has few links from other sites. Crawlers find pages by following links, so a new site can go unnoticed for a while.
  • Your site has a lot of video, images or news. A sitemap can carry extra details about that media.

03

How this sitemap.xml generator works

This online sitemap XML generator visits your home page, follows the links it finds, and lists every working page on your site. It is honest about its limits, so you know exactly what you are getting.

  • Same site only. It follows links on your own domain and skips links to other websites.
  • Up to 200 pages. It stops at 200 pages and tells you when it does, with the pages closest to your home page first.
  • Up to four clicks deep. Pages more than four clicks from your home page are left for a bigger crawl.
  • It respects robots.txt. If your robots.txt file asks crawlers to stay out of a folder, we stay out.
  • It skips pages that should not be listed. Pages set to noindex, missing pages, redirects and files such as PDFs and images are counted as skipped, not added.
  • It drops tracking codes. Addresses with session or campaign codes on the end are cleaned, so each page is listed once.
  • What goes into each entry

    Like any good XML sitemaps generator, we give every page in the file its full address, as Google asks for in its guide to building a sitemap. When your server reports when a page last changed, and that date looks real, we add it as the last modified date. Google says it uses that date only if it is "consistently and verifiably" accurate, so we leave it out rather than guess.
  • Why the limits are there

    A crawl uses your server's time, so we keep ours short and polite. We send a few requests at a time, name ourselves clearly, and stop within about 45 seconds. For most small business sites, that is plenty to list every page.

04

How to add your sitemap to Google Search Console, step by step

Adding a sitemap takes about five minutes. You upload one file, add one line to robots.txt, and submit it in Search Console. Google's Sitemaps report guide covers the same steps.

  1. 1Download your sitemap. Use the Download sitemap.xml button above. Keep the name sitemap.xml.
  2. 2Upload it to the root of your site. It should open at yourbusiness.com/sitemap.xml. Google recommends the root because a sitemap there can cover every page on the site.
  3. 3Check that it opens. Visit the address in your browser. You should see the list of pages, not an error.
  4. 4Add it to robots.txt. Add one line to your robots.txt file: Sitemap: followed by the full address of your sitemap. This helps every search engine find it, as Google's build guide explains.
  5. 5Open Google Search Console. You need owner access to the site. If you do not have it yet, verify the site first, or rely on the robots.txt line for now.
  6. 6Go to Sitemaps. In the left menu, choose Sitemaps under Indexing.
  7. 7Paste the address and submit. Enter sitemap.xml in the Add a new sitemap box and press Submit.
  8. 8Check the status. Success means Google read the file. If it says it could not fetch the file, check the address opens and that robots.txt does not block it.
  9. 9Update it when your site changes. Run this sitemap XML generator again after adding or removing pages, then upload the new file over the old one.

05

XML vs HTML sitemaps

An XML sitemap is for search engines and an HTML sitemap is for people. Most sites only need the XML one. Here is how they compare.

Who reads it
Visitors looking for a pageSearch engines
What it looks like
A normal web page of linksA plain list of addresses in tags
Helps Google find pages
A little, through linksYes, it is built for this
Can show last changed dates
NoYes
Submitted in Search Console
NoYes
Worth having for a small site
OptionalYes

06

Common sitemap mistakes

Most sitemap problems come from listing pages that should not be there, or from a file that goes stale. Avoid these.

  • Listing pages you do not want in Google. Google's build guide says to include the pages you want to see in search results. Leave out thank-you pages, logins and test pages.
  • Listing the same page twice. One page with and without tracking codes, or with and without www, is still one page. List the main version only.
  • Including noindex or redirected pages. It sends mixed signals. Our generator skips both.
  • Blocking the sitemap in robots.txt. If robots.txt blocks the folder where your sitemap lives, Google cannot read it.
  • Using relative addresses. Google asks for full addresses that start with https.
  • Setting it and forgetting it. A sitemap from two years ago may list pages that no longer exist. Refresh it with an XML sitemap generator tool after big changes.
  • Treating robots.txt as a way to hide pages. Google's robots.txt guide says it is "not a mechanism for keeping a web page out of Google". Use noindex for that.

07

Who this sitemap generator is for

This sitemap generator XML tool is for anyone who needs a clean sitemap quickly, without installing anything or making an account.

  • Small business owners who want Google to find every page on their site.
  • Web designers handing over a new site and setting up Search Console for the client.
  • Freelancers and agencies checking a prospect's site before a first call, to see how many pages it really has.
  • Marketers who need a quick list of every page on a site for a content review.
  • Developers on a custom or hand-built site with no sitemap plugin.

08

From a sitemap to a full website audit

A sitemap tells Google where your pages are. It does not tell you why those pages are not winning customers. If you build or market websites for local businesses, that second question is where the work is.

Questions

Sitemap questions, answered.

Is this sitemap generator really free?

Yes. You can make up to 5 sitemaps an hour with no signup and no email. Download the file and use it however you like.

How many pages can it find?

Up to 200 pages on the same site, up to four clicks from your home page, within about 45 seconds. If your site is bigger, we tell you, and list the pages closest to your home page first.

Where do I put the sitemap.xml file?

Upload it to the root of your website so it opens at yourbusiness.com/sitemap.xml. Then add a Sitemap: line to robots.txt and submit the address in Google Search Console.

Does a sitemap guarantee my pages get into Google?

No. Google says a sitemap helps it find pages but does not guarantee they are crawled or indexed. Pages still need to be useful, load well and link to each other.

Why are some of my pages missing?

We skip pages set to noindex, pages blocked by robots.txt, redirects, missing pages and files such as PDFs. Pages built only by scripts, with no normal links, can also be missed.

What is the difference between an XML sitemap builder and a generator?

There is no real difference. Both make the same sitemap.xml file in the format search engines read. Some builders ask you to type or edit each address by hand, while a generator like this one finds your pages by following your links.

Is an online sitemap XML generator safe to use?

Yes, when it only reads public pages. This one opens the same pages any visitor can see, respects robots.txt, never asks for a password and changes nothing on your site. You download the file and decide whether to upload it.