XML Sitemap Snippet Generator

Generate XML sitemap url blocks — enter one or more page URLs with optional priority, changefreq, and lastmod values to get ready-to-paste sitemap snippets or a complete urlset wrapper.






Use URL blocks to append to an existing sitemap, or full urlset for a standalone sitemap.xml file.

Enter URLs above to generate sitemap XML.

Frequently Asked Questions

What is a sitemap url block?

Each url entry in a sitemap contains a loc (URL) and optional lastmod, changefreq, and priority tags that help search engines understand your pages.

Do I need priority and changefreq?

They are optional. Google largely ignores priority and changefreq, but lastmod can help signal when content was updated.

How do I validate my sitemap?

Paste the full XML into the Sitemap Validator to check structure and URL formatting before submitting to Search Console.

Can I extract URLs from an existing sitemap?

Yes. Use the Sitemap URL Extractor to pull loc values from existing sitemap XML.

Is this tool free and does it work on mobile?

Yes on both counts. The XML Sitemap Snippet Generator on draft21 is completely free with no sign-up required and works on all devices.