Free XML Sitemap Generator
Paste your URLs or pull links from a domain, then copy or download a valid sitemap.xml. No URL limit, no sign-up, and the file is built in your browser.
Optional fields
Google ignores changefreq and priority, and has said so publicly. They are off by default and only worth adding for other crawlers that still read them. lastmod is the one Google does use, so keep it accurate or leave it out.
How to generate a sitemap in three steps
Nothing to install and no account to create:
1. Add your URLs
Paste a list, one per line, or enter a domain and let the tool collect the links it finds on the homepage.
2. Choose the optional fields
lastmod is on by default because Google uses it. changefreq and priority are off, because Google does not.
3. Copy or download
You get a valid sitemap.xml straight away. Save it to your site root, then declare and submit it.
What is an XML sitemap?
An XML sitemap is a file at the root of your site listing the pages you want search engines to know about. Crawlers normally find pages by following links, so a sitemap matters most where that fails: a new site nothing links to yet, pages buried deep in the navigation, or a large site where crawlers will not reach everything on their own.
It is worth being clear about what it does not do. A sitemap is a discovery aid, not a ranking factor. Listing a page does not guarantee it gets indexed, and it certainly does not make it rank. If a page is thin or duplicated, adding it to a sitemap changes nothing.
What the sitemap fields actually do
Most generators present all four as though they carry equal weight. They do not, and Google has been explicit about it:
| Field | Required | What it is | |
|---|---|---|---|
| loc | Required | Used | The full URL of the page, including https. Every entry needs one. |
| lastmod | Optional | Used | When the page last meaningfully changed. Google uses it when it is consistently accurate, and ignores it when it is not. |
| changefreq | Optional | Ignored | A hint about how often the page changes. Google has stated it does not use this. Some other crawlers still read it. |
| priority | Optional | Ignored | A 0.0 to 1.0 hint about relative importance. Google has stated it does not use this either. |
That is why changefreq and priority are switched off by default here. They are not harmful, and some non-Google crawlers still read them, but presenting them as important would be misleading. lastmod is the one Google does use, and only while the dates stay honest: set every page to today and the field stops being believed.
How to submit your sitemap to Google
Generating the file is the easy half. It does nothing until crawlers know where it is:
- 1Upload it to your site root, so it is reachable at yoursite.com/sitemap.xml.
- 2Declare it in robots.txt with a line reading Sitemap: https://yoursite.com/sitemap.xml. Every crawler reads that file, not just Google.
- 3Submit it in Search Console, under Sitemaps. It will report how many URLs it discovered and flag any it could not process.
To add the declaration line, our robots.txt generator builds the file with a sitemap entry included, and the robots.txt checker confirms an existing file declares yours and is not blocking the pages you just listed.
When a sitemap actually helps
A small, well-linked site often gains little from one. These are the cases where it earns its place:
A new site with no internal links yet
Crawlers find pages by following links. A brand new site has few, so a sitemap is the fastest way to tell Google what exists.
Pages buried deep in the structure
Anything more than a few clicks from the homepage gets crawled less often. Listing it explicitly helps.
A large site where crawl budget matters
An accurate sitemap with honest lastmod dates helps crawlers spend their time on the pages that actually changed.
After a migration or a bulk publish
When a lot of URLs change at once, a fresh sitemap is the clearest signal of what the new set of pages is.
Sitemap mistakes worth avoiding
Six that quietly reduce how much a sitemap is trusted:
Listing URLs that redirect, 404 or are blocked in robots.txt. A sitemap should only contain pages you want indexed and that return 200.
Setting every lastmod to today. If the dates are obviously not real, Google stops trusting the field entirely.
Including non-canonical URLs. List the canonical version of each page, not every parameter variant of it.
Mixing http and https, or www and non-www. Use exactly the form your site actually serves.
Going over 50,000 URLs in one file. Split into several sitemaps and reference them from a sitemap index.
Creating the file and never declaring it. Add a Sitemap line to robots.txt and submit it in Search Console.
Frequently asked questions
How to generate an XML sitemap?
How do I generate a sitemap?
What is an XML sitemap?
What does an XML sitemap do?
What is sitemap used for?
What is a sitemap for a website?
How can I create a sitemap online?
How can I create a free sitemap?
Is a sitemap generator free to use?
Is sitemap free?
What is the best free XML sitemap generator?
How do I submit an XML sitemap to Google?
How can I find the Sitemap XML file on a website?
Can you provide an example of an XML sitemap?
Does this tool crawl my whole site?
Millions of people will ask AI about your category this week
RankSpot researches, writes and publishes daily, and sends you the short list of what's left. Free for 3 days.
Start free trial
