How do I create a sitemap.xml?
A sitemap generator builds a valid sitemap.xml from a list of URLs or the links on a page. This sitemap generator sets lastmod and splits large sites into several files, and gives you the robots.txt line that points to it.
A sitemap lists the URLs you want search engines to crawl, in the XML format defined at sitemaps.org. It helps crawlers find pages that are not well linked and can carry a last-modified date for each URL.
Paste a list of URLs, or import the internal links from one page, and the tool produces the XML with the options you choose. Sitemaps are limited to 50,000 URLs and 50 MB uncompressed per file, so larger sites are split into several files with a sitemap index. You also get the Sitemap line to add to robots.txt.
Importing links makes one request to the page you name through our SSRF-guarded fetcher; the XML is built in your browser. Google ignores priority and change frequency, so the lastmod date is the field that matters, and only if it is accurate.
Page updated .
How to use the Sitemap Generator
- Paste your URLs, or enter a page address to import its internal links.
- Set lastmod and optional fields.
- Download sitemap.xml, upload it to your site and add the Sitemap line to robots.txt.
Examples
https://example.com/, /about and /contact
A urlset with three url entries, each with loc and optional lastmod
120,000 URLs
Three sitemap files plus a sitemap index listing them
Tips
- Only list canonical, indexable URLs that return 200.
- Set lastmod only when a page content really changes.
- Submit the sitemap in Google Search Console and Bing Webmaster Tools.
Specs & limits
- Format
- sitemaps.org protocol 0.9
- Limits
- 50,000 URLs and 50 MB per file
- Input
- URL list or imported page links
- Fetch
- One server-side request when importing
- XML built
- In your browser
Troubleshooting
›Search Console reports errors
Cause: URLs redirect, are blocked or are not canonical.
Fix: Remove them from the sitemap.
›Import finds no links
Cause: The page builds links with JavaScript.
Fix: Paste the URLs instead.
›File too large
Cause: More than 50,000 URLs.
Fix: Let the tool split into several files.
Frequently asked questions
›Do I need a sitemap?
Small, well-linked sites often do not, but it helps discovery for large or new sites.
›Does Google use priority and changefreq?
No. Google ignores them. Use an accurate lastmod instead.
›What is the size limit?
50,000 URLs or 50 MB uncompressed per file. Larger sets use a sitemap index.
›Where do I put the sitemap?
At the site root, then reference it in robots.txt and submit it in Search Console.
›Can it crawl my whole site?
It imports the links on one page you name. For a full crawl list your URLs or use a crawler.
›Which pages should be included?
Only canonical pages that you want indexed and that return a 200 status.