Free online tool
XML Sitemap Generator
Paste your URLs, pick settings, and get a valid sitemap.xml you can upload to your site's root.
<?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-08-03</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-08-03</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog</loc>
<lastmod>2026-08-03</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Why you need a sitemap
A sitemap.xml file tells search engines which URLs on your site are important and how often they change. While Google will still find most pages via crawling and internal links, a sitemap is the fastest way to signal new pages, ensure orphaned pages are discovered, and share metadata like last-modified dates and change frequency.
Where to put it
Upload the generated file to your site's root (for example https://yoursite.com/sitemap.xml) and add a Sitemap: directive to your robots.txt. Then submit the URL in Google Search Console so it gets picked up on Google's next crawl.
+How many URLs can a sitemap contain?
A single sitemap.xml can hold up to 50,000 URLs and must be under 50 MB. For larger sites, use a sitemap index that links to multiple sitemap files.
+Does priority affect ranking?
No. Priority is a hint about relative importance within your own site, not a ranking signal. Google largely ignores it.
Giving crawlers a direct list instead of hoping they find every page
An XML sitemap is a plain manifest of URLs you want search engines to know about, submitted through Search Console or referenced in robots.txt, and it matters most for sites where internal linking alone won't surface every page quickly, such as large catalogs, archives, or newly launched sites with few inbound links yet.
This generator formats a list of URLs into valid sitemap XML, complete with the optional lastmod, changefreq, and priority fields, so you don't have to hand-write the markup or risk a malformed tag that gets the whole file rejected.
What belongs in it and what doesn't
Only include canonical, indexable URLs that return a 200 status; listing pages that redirect, 404, or carry a noindex tag sends mixed signals and wastes crawl budget. A single sitemap file is capped at 50,000 URLs or 50MB uncompressed, so larger sites need a sitemap index file that links out to multiple child sitemaps.
lastmod is more useful than most people think
Setting an accurate lastmod date, tied to when the content actually changed rather than a build timestamp that updates on every deploy, helps crawlers prioritize re-fetching pages that genuinely need it. If every URL shows the same lastmod because it's generated at build time regardless of content changes, crawlers learn to distrust the field and it stops influencing crawl priority.
changefreq and priority are mostly ignored now
Google has said for years that it largely disregards changefreq and priority values, treating them as unreliable since site owners tend to mark everything as daily and priority 1.0. It's fine to include them for compatibility with other search engines and tools, but don't spend time tuning them expecting a ranking effect; put that effort into accurate lastmod values instead.
Submitting and monitoring the sitemap after generation
Once generated, submit the sitemap URL through Google Search Console and Bing Webmaster Tools rather than only referencing it in robots.txt, since Search Console gives you direct feedback on how many submitted URLs were actually indexed versus excluded, which is the fastest way to catch a systemic issue like an accidentally included noindex template.
Keeping the sitemap in sync as content changes
A sitemap generated once at launch and never regenerated becomes a liability rather than a help, since it starts listing removed pages and omitting new ones, which can actively mislead crawlers about what currently exists on the site. Regenerating it as part of your build or publish pipeline, rather than as an occasional manual task, keeps it accurate without relying on anyone remembering to update it.
Separate sitemaps for images, video, and news
Beyond the standard URL sitemap, Google supports dedicated sitemap extensions for image and video content that carry extra metadata like captions, titles, and duration, which can help those assets surface in image search or video results even when the surrounding page ranks modestly for its main query. Sites with a large media library often see more incremental value from adding an image sitemap than from further polishing the primary one.
People also search for
- xml sitemap generator
- sitemap.xml creator online
- submit sitemap to google search console
- sitemap index file for large sites
- lastmod changefreq priority explained
- how to generate a sitemap for seo
- sitemap 50000 url limit
- sitemap not indexing pages