XML Sitemap Generator
Paste your page URLs, one per line, and download a valid sitemap.xml for Google and Bing.
- Free
- No sign-up
- Runs in your browser
Your URLs
Paste from a spreadsheet, a crawl export or your CMS. Blank lines and duplicates are skipped.
Optional tags
Last modified (lastmod)
Google uses lastmod only if it is consistently accurate. Use the date the content really changed — not today’s date on every page.
Validation
- URLs in sitemap
- 7
- Lines skipped
- 0
- Duplicates removed
- 0
- File size
- 598 bytes
All URLs are on www.example.com.
Within the limits of 50,000 URLs and 50 MB per sitemap.
sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
</url>
<url>
<loc>https://www.example.com/about/</loc>
</url>
<url>
<loc>https://www.example.com/products/</loc>
</url>
<url>
<loc>https://www.example.com/products/blue-running-shoes/</loc>
</url>
<url>
<loc>https://www.example.com/blog/</loc>
</url>
<url>
<loc>https://www.example.com/blog/how-to-choose-running-shoes/</loc>
</url>
<url>
<loc>https://www.example.com/contact/</loc>
</url>
</urlset>
Upload it to your site root (e.g. https://www.example.com/sitemap.xml), add a Sitemap: line to robots.txt and submit it in Google Search Console.
How an XML sitemap works
An XML sitemap is a list of the pages you want search engines to find. Each page sits in a <url> entry with its full address in <loc>, plus an optional <lastmod> date. It doesn’t force anything into the index, but it helps crawlers discover new and deep pages faster — especially on new sites, large sites, or pages with few internal links.
This generator checks every line: it must be an absolute URL, on the same host as the first URL, without a #fragment, and it is escaped so characters like & become &. For example, pasting 10 lines where one is a duplicate, one is the relative path /contact and one is on a different host gives a sitemap of 7 URLs, with the two invalid lines listed so you can fix them. A single sitemap may hold up to 50,000 URLs and 50 MB uncompressed; beyond that, split it and use a sitemap index.
Which pages should go in a sitemap?
Only canonical, indexable pages that return a 200 status: your important content, product, category and article pages. Leave out redirects, 404s, pages with noindex, duplicate URLs with tracking parameters, and login or cart pages. A sitemap full of URLs that shouldn’t be indexed sends mixed signals.
Do lastmod, changefreq and priority matter?
Google says it ignores changefreq and priority. It does use lastmod when the dates are consistently accurate, so only set it when you know when each page last changed meaningfully.
Frequently asked questions
- Do sitemap URLs have to use https?
- They should match the protocol and host where the sitemap lives. If your site is on https://www.example.com, every <loc> should start with exactly that.
- What about URLs with spaces or accented letters?
- They are percent-encoded automatically, e.g. /café becomes /caf%C3%A9, which is the form search engines expect.
- I have more than 50,000 URLs. What now?
- Split them into several sitemap files (for example by section) and create a sitemap index that lists each file. Submit the index in Search Console.
- How do I tell Google about my sitemap?
- Submit it in the Sitemaps report in Google Search Console and add “Sitemap: https://…/sitemap.xml” to your robots.txt so other search engines find it too.