Sitemap Generator

Free tool

Sitemap Generator

Turn a list of URLs into a valid XML sitemap, or pull the list straight off a page or an existing sitemap. Copy the result or download sitemap.xml.

Reads <loc> entries from an XML sitemap, or same-domain links from an HTML page.

Your sitemap XML will appear here.

How it works

Get your URLs together

Paste them one per line, or point the fetcher at a page and let it pull every same-domain link it can find.

Set the optional hints

Change frequency, priority and last-modified are all optional. Leave them out if you cannot keep them honest.

Download and submit

Save sitemap.xml to the root of your site, then submit the address in Google Search Console and Bing Webmaster Tools.

What a sitemap is actually for

A sitemap does not make pages rank. It is a discovery aid: a plain list telling search engines which URLs you consider canonical and worth looking at. On a small site with clean internal linking it changes very little. On a large site, a new site, or one with pages that are not well linked internally, it is the difference between being found this week and being found next quarter.

The rules are simple. One file holds at most 50,000 URLs and must be under 50 MB uncompressed. Every URL must be absolute, must use the same protocol and hostname as the sitemap file itself, and should return a 200 status. If you need more than 50,000 URLs, split the list and reference each file from a sitemap index.

Be honest about lastmod

Google has said publicly that it uses the lastmod value only when it is consistently accurate. Sites that stamp today’s date on every URL at every rebuild teach crawlers to ignore the field entirely. If you cannot generate a real modification date, leave it out — an absent field is better than a misleading one.

priority and changefreq are largely ignored by Google these days. They do no harm, but do not expect them to move anything.

What to leave out

Keep noindexed pages, redirects, canonicalised duplicates, paginated archives and tag pages out of the file. A sitemap full of URLs that resolve to something else is a signal that your list is not maintained, and it wastes the crawl budget you were trying to direct.

Frequently asked questions

Where should sitemap.xml live?

Usually at the root of the domain, for example https://yoursite.com/sitemap.xml. A sitemap can only list URLs at or below its own location, so a file in a subfolder can only cover that subfolder.

How many URLs can one sitemap hold?

Fifty thousand URLs, and no more than 50 MB uncompressed. Beyond that you need several sitemap files listed in a sitemap index file.

Do I still need a sitemap if my site is small?

It rarely hurts and occasionally helps. If every page is reachable within a couple of clicks from your home page, a crawler will find everything anyway. A sitemap becomes genuinely useful once pages are orphaned, numerous, or brand new.

Does the fetcher crawl the whole site?

No. It reads a single address. If you give it an XML sitemap it extracts the loc entries; if you give it an HTML page it extracts the same-domain links on that page. It does not follow those links any further.

Should I set priority values?

You can, but Google ignores them. They were designed to express relative importance within your own site and were widely abused, so the major engines stopped acting on them.

How do I tell Google about the sitemap?

Submit the address in Google Search Console under Sitemaps, and add a Sitemap line to your robots.txt file so any crawler can discover it without being told.

Related tools

Related reading

The full guide to this tool, plus the background worth knowing.

Scroll to Top