What is an XML Sitemap?
An XML sitemap lists your site URLs so search engines can discover and crawl them. It supports lastmod (last modification date), changefreq (how often the page might change), and priority (relative importance). Submit your sitemap in Google Search Console and add the Sitemap line to your robots.txt.
Try more free SEO tools
Browse All SEO Tools →How to Use the XML Sitemap Generator
- Enter your URLs: Add each page URL to the table, or use Bulk import / Upload file to import URLs from a text, CSV, or existing
sitemap.xmlfile. - Set defaults: Choose a default
changefreqandpriorityat the top. These values are applied to new rows and can be adjusted per URL if needed. - Adjust individual rows: For important pages (like your homepage or key landing pages), increase priority or change frequency based on how often they update.
- Review validation messages: Use the inline warnings to fix invalid, duplicate, or out‑of‑domain URLs before you generate your final sitemap.
- Copy or download: When the preview looks correct, click Copy to copy the XML or Download to save
sitemap.xml(orsitemap-index.xmlin index mode) to your computer. - Deploy and submit: Upload the file to your site (for example at
/sitemap.xml), reference it inrobots.txt, and submit the URL in Google Search Console and Bing Webmaster Tools.
XML Sitemap Examples
Example 1 – Simple sitemap.xml with 3 URLs
A small site with a homepage, about page, and contact page might use:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>https://example.com/contact</loc>
<changefreq>yearly</changefreq>
<priority>0.4</priority>
</url>
</urlset>Example 2 – Sitemap index for large sites
A larger site can use a sitemap index that points to multiple sitemap files:
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-pages.xml</loc>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-blog.xml</loc>
</sitemap>
</sitemapindex>When to Use the XML Sitemap Generator
- Launching a new site: Create a clean, complete sitemap so search engines can discover all important pages from day one.
- Managing large websites: Use sitemap index mode to split tens of thousands of URLs into multiple sitemap files while staying within the 50,000‑URL and 50 MB limits.
- After a redesign or migration: Regenerate your sitemap from a URL export to help search engines crawl your new structure and retire old URLs safely.
- SEO housekeeping: Audit and rebuild sitemaps when you remove outdated content, consolidate sections, or change canonical URLs.
- Static or headless sites: Quickly create sitemaps for static sites, marketing pages, or headless CMS deployments where a backend sitemap generator is not available.