XML Sitemap Generator
Create sitemap.xml files for better SEO and search engine indexing.
Configuration
Enter page paths (e.g., /about, /contact) one per line to add them quickly.
URLs (2)
Generated Sitemap
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-02-23</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-02-23</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Statistics
How to Use the Sitemap Generator
Create an XML sitemap for your website in a few easy steps:
- Enter your website's base URL (e.g., https://example.com)
- Add your page URLs manually or use bulk import to add multiple URLs at once
- Configure priority and change frequency for each URL (optional but recommended)
- Copy or download the generated sitemap.xml file and upload it to your website's root directory
What is an XML Sitemap?
An XML sitemap is a file that lists all important pages on your website, helping search engines like Google, Bing, and Yahoo discover and crawl your content more efficiently. It provides metadata about each URL, including when it was last updated, how often it changes, and its relative priority.
Sitemaps help search engines discover your pages faster, especially new or recently updated content. They're particularly useful for large websites or sites with complex navigation.
Sitemap Elements Explained
Each URL entry in your sitemap can include several optional elements:
- loc: The full URL of the page. This is the only required element and must be a valid, absolute URL.
- lastmod: The date when the page was last modified. Use W3C Datetime format (YYYY-MM-DD). Helps search engines know when to recrawl.
- changefreq: How frequently the page content typically changes. This is a hint to search engines, not a command. Options: always, hourly, daily, weekly, monthly, yearly, never.
- priority: The relative importance of this URL compared to other URLs on your site. Values range from 0.0 to 1.0. Default is 0.5. This doesn't affect ranking in search results.
Sitemap Best Practices
Follow these guidelines to create an effective sitemap:
- Keep your sitemap under 50,000 URLs and 50MB uncompressed. Use sitemap index files for larger sites.
- Update lastmod dates only when page content actually changes. Don't set all dates to today.
- Submit your sitemap to Google Search Console and Bing Webmaster Tools for faster indexing.
- Use priority values meaningfully. Your homepage might be 1.0, main sections 0.8, and individual pages 0.5-0.6.
- Only include canonical URLs. Don't include duplicate pages, redirects, or pages blocked by robots.txt.
Where to Place Your Sitemap
Upload your sitemap.xml file to the root directory of your website (e.g., https://example.com/sitemap.xml). Then reference it in your robots.txt file to help search engines find it automatically.
# robots.txt User-agent: * Allow: / Sitemap: https://example.com/sitemap.xml