What is an XML sitemap?
An XML sitemap is a file that lists all the important URLs on your website. It acts as a roadmap for search engines — telling Google exactly which pages exist, when they were last updated, and how often they change.
Without a sitemap, Google has to discover your pages by following links. With a sitemap, you give Google a direct list of every page you want indexed — which means faster discovery, especially for new or recently updated content.
Generate and validate your XML sitemap for free — no software needed.
What does an XML sitemap look like?
An XML sitemap is a structured file that follows the sitemap protocol. Here is a basic example:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://yoursite.com/</loc>
<lastmod>2026-04-01</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://yoursite.com/blog/</loc>
<lastmod>2026-04-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
The four key tags explained:
<loc>The full URL of the page — required<lastmod>Date the page was last updated (YYYY-MM-DD format)<changefreq>How often the page changes: daily, weekly, monthly<priority>Relative importance 0.0–1.0 (homepage = 1.0)Step-by-step: Create and submit your sitemap
Use our XML Sitemap Generator. Paste all your important URLs — one per line. Set changefreq to weekly and priority to 0.8 for most pages, 1.0 for your homepage.
Use our Sitemap Validator to check for errors before uploading. It checks for missing <urlset> tags, duplicate URLs, and invalid structure.
Save the file as sitemap.xml and upload it to your site root so it's accessible at https://yoursite.com/sitemap.xml.
Add Sitemap: https://yoursite.com/sitemap.xml to the bottom of your robots.txt file. This lets all crawlers find it automatically.
Go to Google Search Console → Sitemaps → Add a new sitemap. Enter your sitemap URL and click Submit. Google will crawl it within a few days.
What pages should you include?
Priority values guide
Key takeaways
Create your XML sitemap now
Free tool — paste your URLs and download a valid sitemap.xml in seconds.
Open XML Sitemap Generator →