XML Sitemap Generator
Create valid XML sitemaps from a list of URLs. Supports lastmod, changefreq, priority. Validates URLs and escapes XML. Preview, copy, and download.
One URL per line. Optional: url|lastmod|changefreq|priority (e.g., https://example.com/page|2024-01-15|weekly|0.8)
Generated XML Sitemap
How to generate an XML sitemap
- Enter URLs. Paste one URL per line. Optionally add fields separated by pipes:
url|lastmod|changefreq|priority - Optional fields:
lastmod- Last modified date (YYYY-MM-DD or ISO 8601)changefreq- Change frequency (always, hourly, daily, weekly, monthly, yearly, never)priority- Priority 0.0 to 1.0
- Click Generate. The tool outputs valid XML sitemap.
- Copy or download. Use Copy to copy to clipboard or Download to save as
sitemap.xml.
All generation happens locally in your browser. Your data never leaves your device.
XML Sitemap Best Practices & Limits
Protocol limits: A single sitemap file can contain up to 50,000 URLs and must not exceed 50MB uncompressed. For larger sites, split URLs across multiple sitemap files and reference them in a sitemap index file.
Submitting to search engines: After generating your sitemap.xml, upload it to your site root (e.g., https://example.com/sitemap.xml). Then submit it to:
- Google Search Console: Go to Indexing › Sitemaps, enter your sitemap URL, and click Submit.
- Bing Webmaster Tools: Go to Sitemaps, enter your sitemap URL, and click Submit.
Keep your sitemap updated whenever you add, remove, or change pages to help search engines discover your content efficiently.
Frequently Asked Questions
- No. All generation happens entirely in your browser. Your data never leaves your device.
- The generator supports <url>, <lastmod>, <changefreq>, and <priority> for each URL entry. All fields except the URL are optional.
- A single sitemap can contain up to 50,000 URLs and must not exceed 50MB (uncompressed). For larger sites, use a sitemap index file.
- Enter one URL per line. Optionally add lastmod, changefreq, and priority separated by pipes: https://example.com/page|2024-01-15|weekly|0.8
- Modern search engines primarily rely on the lastmod tag to discover updated content. While changefreq and priority are valid sitemap protocol tags, search engines like Google largely treat them as advisory hints rather than strict crawl directives.
- Once the page is loaded, the tool works offline because all logic runs client-side.
Use Cases
An XML sitemap tells search engines which pages exist on your site, when each URL was last modified, and how pages relate to one another. Use the XML Sitemap Generator when launching a new website so Google and Bing can discover your content quickly, without waiting for external links to surface it.
E-commerce sites benefit from listing product and category pages with accurate lastmod dates, helping search engines refresh inventory and pricing changes faster. Blogs and news publishers use sitemaps to surface recent articles for timely indexing. Large sites with deep pagination rely on sitemaps to make sure crawlers reach buried pages that internal linking alone might miss.
Developers building JavaScript single-page applications use sitemaps to expose routes that crawlers cannot render dynamically. Site owners migrating domains or restructuring URLs submit updated sitemaps to signal page moves and reduce crawl errors. International sites generate hreflang-aware sitemaps to serve the correct language version to users in each region.
How-To
- Enter your website root URL and confirm the protocol matches your live site, http or https.
- Pick an update frequency matching your content schedule, such as daily for news or weekly for mostly static pages.
- Assign priority to important pages like the homepage or flagship products, keeping archive and tag pages lower.
- Click Generate to crawl your links and build the XML file in seconds.
- Download sitemap.xml and upload it to your site's root directory.
- Submit the sitemap URL through Google Search Console and Bing Webmaster Tools.
- Resubmit after major changes, new launches, or URL restructuring to keep indexes current.
Keep your sitemap under 50,000 URLs or split it across multiple files using a sitemap index. Validate the XML before submission to catch syntax errors that block processing. Pair the sitemap with a robots.txt file that points to its location, and monitor coverage reports to fix excluded or errored pages.