Free sitemap.xml Generator Online
Generate a valid sitemap.xml file to help search engines discover and index your website pages efficiently. 100% client-side — your URLs stay private.
How to Use the Sitemap Generator
- Add URLs you want included in your sitemap.
- Set priority (0.0–1.0) to indicate page importance.
- Choose change frequency to tell crawlers how often pages update.
- Pick a last modified date for each URL.
- Optionally enable sitemap index for large sites with multiple sitemaps.
- Click "Generate", then copy or download the sitemap.xml file.
Why Use This Sitemap Generator
A sitemap.xml file is essential for SEO. It tells search engines about all the pages on your site, helping them crawl and index your content more efficiently — especially for large sites or new pages with few backlinks.
This generator creates standards-compliant sitemap.xml files with proper XML escaping, priority values, and change frequency hints. It also supports sitemap indexes for sites with thousands of URLs.
How It Works
A sitemap.xml file follows the protocol defined by sitemaps.org. It is an XML document that lists URLs on your site along with metadata about each page. Search engine crawlers like Googlebot read this file to discover pages they might otherwise miss during normal crawling.
The XML structure uses a root <urlset> element containing <url> entries for each page. Each entry specifies the page location and optional metadata. The file is encoded in UTF-8 and should be served with the application/xml content type. Sitemaps have a maximum size of 50,000 URLs or 50MB uncompressed; larger sites must use a sitemap index file that references multiple sitemaps.
Sitemap Tags Reference
| Tag | Required? | Description |
|---|---|---|
<loc> |
Yes | The full URL of the page. Must be under 2,048 characters and use the same protocol as your site (http or https). |
<lastmod> |
No | The date the page was last modified in W3C Datetime format (YYYY-MM-DD). Helps crawlers prioritize recently updated content. |
<changefreq> |
No | How often the page changes. Values: always, hourly, daily, weekly, monthly, yearly, never. A hint to crawlers, not a directive. |
<priority> |
No | Relative importance of this URL (0.0 to 1.0). Default is 0.5. Only affects crawl priority between your own pages, not against other sites. |
Tips for Effective Sitemaps
- Keep URLs canonical — list only the preferred version of each page. Redirect duplicates with 301 redirects instead.
- Use absolute URLs — every
<loc>must include the full URL with protocol and domain. - Update lastmod honestly — only change the date when content actually changes. False updates reduce crawler trust.
- Submit to Search Console — after creating your sitemap, submit it to Google Search Console and Bing Webmaster Tools for faster indexing.
- Reference in robots.txt — add
Sitemap: https://example.com/sitemap.xmlto your robots.txt so crawlers find it automatically. - Don't overdo priority — marking everything as 1.0 tells crawlers nothing. Use priority to differentiate between high-value landing pages and lower-priority archives.
Frequently Asked Questions
A sitemap index is a sitemap that points to other sitemaps. It's used when your site has more than 50,000 URLs or when you want to organize URLs into separate sitemap files by category.
The sitemap.xml file should be placed at the root of your website (e.g., https://example.com/sitemap.xml). You should also reference it in your robots.txt file.
Priority is a hint to search engines about which pages you consider most important relative to others on your site. It does not directly affect rankings but can influence crawl budget allocation.
Yes. The output follows the sitemaps.org protocol. You can use the "Validate XML" button to check syntax before using the file.
Use Cases
New Website Sitemap
Create sitemap.xml for new websites to help search engines discover and index your pages quickly from launch.
E-Commerce Site Maps
Generate sitemaps for large e-commerce sites with thousands of product pages to improve crawl efficiency.
Post-URL-Change Updates
Update sitemaps after URL changes, site migrations, or content restructuring to maintain search engine rankings.
Search Console Submission
Submit sitemaps to Google Search Console to request indexing and monitor your site's crawl status and coverage.
SPA Sitemap Generation
Generate sitemaps for single-page applications that use client-side routing to ensure all routes are discoverable.