SEO

XML Sitemap Generator

Build a valid sitemap.xml for any website. Add URLs one at a time or bulk import a list, configure priority, changefreq, and lastmod per page — then download or copy in one click.

Default Settings Applied to bulk-imported URLs
Add URLs

What This Tool Does

Build a complete, valid XML sitemap without writing a single line of code.

🔗
Manual or bulk entry
Add URLs one by one with individual settings, or bulk-paste a list of URLs to import them all at once using your default settings.
🎛️
Per-URL configuration
Set priority (0.1–1.0), changefreq (always to never), and lastmod date individually per URL. Edit any entry after import with the inline edit modal.
💾
Download sitemap.xml
One-click download generates the complete sitemap.xml file ready to upload to your web server root. Or copy the XML to paste into your CMS.
Syntax-highlighted output
The generated XML is syntax-highlighted for easy reading. Toggle between pretty-printed (human-readable) and minified (compact) output.
🔍
Valid sitemap format
Output follows the official Sitemaps Protocol (sitemaps.org). All required fields are included, special characters are XML-escaped, and the schema namespace is correct.
📊
Smart sorting
Sort your URL list by priority (highest first) or alphabetically by URL. Useful for reviewing large sitemaps before generating the final output.

How to Use This Tool

1
Set default settings
In the Default Settings card, choose the changefreq, priority, and lastmod date you want applied to bulk-imported URLs. You can always override these per URL later.
2
Add URLs
Use Manual mode to add one URL at a time with individual settings. Use Bulk Import to paste a list of URLs (one per line) — they'll all use your default settings.
3
Edit entries if needed
Click the pencil icon on any URL row to open the edit modal and update its URL, changefreq, priority, or lastmod date individually.
4
Generate the sitemap
Click Generate Sitemap. The XML output panel appears with syntax highlighting. Toggle between Pretty and Minified output format.
5
Download or copy
Click Download sitemap.xml to save the file, or Copy XML to copy the raw XML to your clipboard. Upload the file to your website root directory.
6
Submit to Google
Go to Google Search Console → Indexing → Sitemaps. Enter your sitemap URL (yourdomain.com/sitemap.xml) and click Submit. Google will start crawling your pages.

Logic Behind the Tool

How the sitemap XML is built and what each field actually does.

Sitemaps Protocol
The output follows the Sitemaps Protocol 0.9. Every URL is wrapped in a <url> element inside a <urlset> root with the correct namespace declaration. Google, Bing, and other major search engines all support this standard format.
Priority field
The <priority> tag accepts a float from 0.1 to 1.0. It tells crawlers the relative importance of a page within your own site — not compared to other sites. The homepage and key landing pages should be 1.0 or 0.9. Blog posts and inner pages are typically 0.6–0.8. Low-value pages like paginated archives go as low as 0.3.
changefreq hint
The <changefreq> tag is a hint — search engines may ignore it and crawl based on their own signals. Use daily for news/blog, weekly for regularly updated pages, monthly for stable pages, and yearly for policies or static content. never is useful for archived content.
XML escaping
URLs containing &, <, or > characters must be XML-escaped (e.g., &amp;, &lt;). This tool automatically escapes all special characters in URLs so the generated file is valid XML that parsers won't choke on.

Frequently Asked Questions

A sitemap.xml is a file at your website root that lists all the URLs you want search engines to index. It helps Google and Bing discover your content faster, understand how often it changes, and which pages are most important. Sitemaps are especially valuable for new sites with few backlinks, large sites where crawlers might miss pages, and sites with content that changes frequently.

Priority (0.1–1.0) signals the relative importance of a URL compared to other URLs on your same site — it has no effect on how you rank compared to other sites. Changefreq is a hint about how often the content changes. Both are advisory — search engines may ignore them if their own crawl signals disagree. Still worth setting correctly, as they can influence crawl frequency on well-established sites.

Upload sitemap.xml to your website's root directory so it's accessible at yourdomain.com/sitemap.xml. Then: (1) In Google Search Console, go to Indexing → Sitemaps, enter the sitemap URL, and click Submit. (2) In Bing Webmaster Tools, go to Sitemaps, add the URL. You can also add a line to your robots.txt: Sitemap: https://yourdomain.com/sitemap.xml — crawlers will find it automatically.

A single sitemap file supports up to 50,000 URLs and must be under 50MB uncompressed. If your site exceeds either limit, you'll need a sitemap index file — an XML file that lists multiple sitemap files. For most sites this tool targets, a single sitemap is sufficient. Very large e-commerce or news sites may need sitemap index files plus separate sitemaps for images and videos.

No — only include pages you want indexed and that provide real value to users. Exclude: admin and login pages, pages blocked by robots.txt, URLs with noindex tags, near-duplicate or paginated pages beyond page 1, and thin or low-quality content. Including low-quality pages can waste crawl budget and signal poor site quality. The sitemap should be your curated "best of" — not every URL that exists.

Report an Issue
Found a bug or have a suggestion? Contact us or open an issue and we'll look into it.

Related Tools

View all →

Related Reading